mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-20 05:32:07 +00:00
Remove Github and Twitter links
remove twitter in about
This commit is contained in:
parent
ab6da8f162
commit
b5fe319539
5 changed files with 2 additions and 74 deletions
|
|
@ -164,11 +164,6 @@ export function LinksDropdown(props: { children: React.ReactNode }) {
|
|||
href={conf().DISCORD_LINK}
|
||||
icon={Icons.DISCORD}
|
||||
/>
|
||||
<CircleDropdownLink href={conf().GITHUB_LINK} icon={Icons.GITHUB} />
|
||||
<CircleDropdownLink
|
||||
href={conf().TWITTER_LINK}
|
||||
icon={Icons.TWITTER}
|
||||
/>
|
||||
<CircleDropdownLink href="/support" icon={Icons.MAIL} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -75,15 +75,9 @@ export function Footer() {
|
|||
<p className="mt-3">{t("footer.legal.disclaimerText")}</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap gap-[0.5rem] -ml-3">
|
||||
<FooterLink icon={Icons.GITHUB} href={conf().GITHUB_LINK}>
|
||||
{t("footer.links.github")}
|
||||
</FooterLink>
|
||||
<FooterLink icon={Icons.DISCORD} href={conf().DISCORD_LINK}>
|
||||
{t("footer.links.discord")}
|
||||
</FooterLink>
|
||||
<FooterLink icon={Icons.TWITTER} href={conf().TWITTER_LINK}>
|
||||
{t("footer.links.twitter")}
|
||||
</FooterLink>
|
||||
<div className="inline md:hidden">
|
||||
<Dmca />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -101,14 +101,6 @@ export function Navigation(props: NavigationProps) {
|
|||
>
|
||||
<IconPatch icon={Icons.DISCORD} clickable downsized />
|
||||
</a>
|
||||
<a
|
||||
href={conf().GITHUB_LINK}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="text-xl text-white tabbable rounded-full"
|
||||
>
|
||||
<IconPatch icon={Icons.GITHUB} clickable downsized />
|
||||
</a>
|
||||
<a
|
||||
onClick={() => handleClick("/discover")}
|
||||
rel="noreferrer"
|
||||
|
|
|
|||
|
|
@ -64,9 +64,6 @@ export function AboutPage() {
|
|||
<Question title={t("about.q4.title")}>
|
||||
{t("about.q4.body")}
|
||||
</Question>,
|
||||
<Question title={t("about.q5.title")}>
|
||||
{t("about.q5.body")}
|
||||
</Question>,
|
||||
]}
|
||||
/>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
import classNames from "classnames";
|
||||
import React, { useState } from "react";
|
||||
import React from "react";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
|
||||
import { Icon, Icons } from "@/components/Icon";
|
||||
import { ThinContainer } from "@/components/layout/ThinContainer";
|
||||
import { MwLink } from "@/components/text/Link";
|
||||
import { Heading1, Paragraph } from "@/components/utils/Text";
|
||||
|
|
@ -11,27 +10,6 @@ import { conf } from "@/setup/config";
|
|||
|
||||
import { SubPageLayout } from "./layouts/SubPageLayout";
|
||||
|
||||
function Button(props: {
|
||||
className: string;
|
||||
onClick?: () => void;
|
||||
children: React.ReactNode;
|
||||
disabled?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<button
|
||||
className={classNames(
|
||||
"font-bold rounded h-10 w-40 scale-90 hover:scale-95 transition-all duration-200",
|
||||
props.className,
|
||||
)}
|
||||
type="button"
|
||||
onClick={props.onClick}
|
||||
disabled={props.disabled}
|
||||
>
|
||||
{props.children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
// From about just removed the numbers
|
||||
export function Ol(props: { items: React.ReactNode[] }) {
|
||||
return (
|
||||
|
|
@ -77,7 +55,6 @@ function Item(props: { title: string; children: React.ReactNode }) {
|
|||
|
||||
export function SupportPage() {
|
||||
const { t } = useTranslation();
|
||||
const [isHovered, setIsHovered] = useState(false);
|
||||
|
||||
return (
|
||||
<SubPageLayout>
|
||||
|
|
@ -91,43 +68,16 @@ export function SupportPage() {
|
|||
bold: <span className="font-bold" style={{ color: "#cfcfcf" }} />,
|
||||
}}
|
||||
/>
|
||||
<div className="pt-6">
|
||||
<Button
|
||||
className="py px-4 box-content bg-buttons-secondary hover:bg-buttons-secondaryHover bg-opacity-90 text-buttons-secondaryText justify-center items-center inline-block"
|
||||
onClick={() => window.open("https://docs.undi.rest", "_blank")}
|
||||
>
|
||||
Sudo-Flix Docs
|
||||
</Button>
|
||||
</div>
|
||||
</Paragraph>
|
||||
<Ol
|
||||
items={[
|
||||
<Item title={t("support.q1.title")}>
|
||||
<Trans i18nKey="support.q1.body">
|
||||
<MwLink to="https://docs.undi.rest/links/discord" />
|
||||
</Trans>
|
||||
</Item>,
|
||||
<Item title={t("support.q2.title")}>
|
||||
<Trans i18nKey="support.q2.body">
|
||||
<MwLink to="https://github.com/sussy-code/smov" />
|
||||
<MwLink to={conf().DISCORD_LINK} />
|
||||
</Trans>
|
||||
</Item>,
|
||||
]}
|
||||
/>
|
||||
<Paragraph className="flex space-x-3 items-center">
|
||||
<Icon icon={Icons.MAIL} />
|
||||
<a
|
||||
href={`mailto:${conf().DMCA_EMAIL}`}
|
||||
style={{
|
||||
transition: "color 0.3s ease",
|
||||
color: isHovered ? "#cfcfcf" : "inherit",
|
||||
}}
|
||||
onMouseEnter={() => setIsHovered(true)}
|
||||
onMouseLeave={() => setIsHovered(false)}
|
||||
>
|
||||
{conf().DMCA_EMAIL ?? ""}
|
||||
</a>
|
||||
</Paragraph>
|
||||
</ThinContainer>
|
||||
</SubPageLayout>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue