Skip to content

Commit

Permalink
feat: add Twitter and Patreon links to footers across multiple languages
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaJi committed Oct 7, 2024
1 parent 22ac7bc commit 336bfa2
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/[lang]/(genshin)/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import Link from "next/link";
import { AiOutlineTwitter } from "react-icons/ai";
import { RiPatreonFill } from "react-icons/ri";


import LanguageSelector from "@components/ui/LanguageSelector";
import useIntl from "@hooks/use-intl";
Expand Down Expand Up @@ -41,14 +43,23 @@ export default function GenshinFooter() {
Changelog
</Link>
<a
href="https://twitter.com/genshin_builds"
href="https://twitter.com/earlyggcom"
target="_blank"
rel="noopener noreferrer"
className="group my-1 text-lg"
>
<AiOutlineTwitter className="inline group-hover:text-blue-400" />{" "}
<span className="text-base">Twitter</span>
</a>
<a
href="https://www.patreon.com/GenshinBuilds"
target="_blank"
rel="noopener noreferrer"
className="group my-1 text-lg"
>
<RiPatreonFill className="inline group-hover:text-red-400" />{" "}
<span className="text-base">Patreon</span>
</a>
</div>

<div className="flex flex-1 flex-col">
Expand Down
20 changes: 20 additions & 0 deletions app/[lang]/hsr/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import Link from "next/link";
import { usePathname } from "next/navigation";
import { AiOutlineTwitter } from "react-icons/ai";
import { RiPatreonFill } from "react-icons/ri";

import useIntl from "@hooks/use-intl";

Expand Down Expand Up @@ -33,6 +35,24 @@ export default function HSRFooter() {
<Link href={`/${locale}/contact`} className="my-2" prefetch={false}>
{t({ id: "contact", defaultMessage: "Contact" })}
</Link>
<a
href="https://twitter.com/earlyggcom"
target="_blank"
rel="noopener noreferrer"
className="rounded-3xl px-3 py-1 text-lg font-semibold transition-colors hover:bg-white hover:text-black"
>
<AiOutlineTwitter className="inline" />{" "}
<span className="text-base">Twitter</span>
</a>
<a
href="https://www.patreon.com/GenshinBuilds"
target="_blank"
rel="noopener noreferrer"
className="group my-1 text-lg"
>
<RiPatreonFill className="inline group-hover:text-red-400" />{" "}
<span className="text-base">Patreon</span>
</a>
</div>
<div className="flex flex-1 flex-col">
<button onClick={redirectedPathName("en")} className="my-2">
Expand Down
20 changes: 20 additions & 0 deletions app/[lang]/tof/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Link from "next/link";
import { AiOutlineTwitter } from "react-icons/ai";
import { RiPatreonFill } from "react-icons/ri";

export default function Footer() {
return (
Expand All @@ -13,6 +15,24 @@ export default function Footer() {
<Link href="/contact" className="my-2" prefetch={false}>
Contact
</Link>
<a
href="https://twitter.com/earlyggcom"
target="_blank"
rel="noopener noreferrer"
className="rounded-3xl px-3 py-1 text-lg font-semibold transition-colors hover:bg-white hover:text-black"
>
<AiOutlineTwitter className="inline" />{" "}
<span className="text-base">Twitter</span>
</a>
<a
href="https://www.patreon.com/GenshinBuilds"
target="_blank"
rel="noopener noreferrer"
className="group my-1 text-lg"
>
<RiPatreonFill className="inline group-hover:text-red-400" />{" "}
<span className="text-base">Patreon</span>
</a>
</div>
<div className="flex flex-1 flex-col"></div>
<div className="flex-1">
Expand Down
20 changes: 20 additions & 0 deletions app/[lang]/wuthering-waves/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Link from "next/link";
import { AiOutlineTwitter } from "react-icons/ai";
import { RiPatreonFill } from "react-icons/ri";

import Logo from "@components/wuthering-waves/Logo";

Expand All @@ -17,6 +19,24 @@ export default function HSRFooter() {
<Link href={`/en/contact`} className="my-2" prefetch={false}>
Contact
</Link>
<a
href="https://twitter.com/earlyggcom"
target="_blank"
rel="noopener noreferrer"
className="rounded-3xl px-3 py-1 text-lg font-semibold transition-colors hover:bg-white hover:text-black"
>
<AiOutlineTwitter className="inline" />{" "}
<span className="text-base">Twitter</span>
</a>
<a
href="https://www.patreon.com/GenshinBuilds"
target="_blank"
rel="noopener noreferrer"
className="group my-1 text-lg"
>
<RiPatreonFill className="inline group-hover:text-red-400" />{" "}
<span className="text-base">Patreon</span>
</a>
</div>
<div className="flex flex-1 flex-col"></div>
<div className="flex flex-1 flex-col"></div>
Expand Down
10 changes: 10 additions & 0 deletions app/[lang]/zenless/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { GA_TRACKING_ID } from "@lib/gtag";
import "../../../styles/globals.css";
import "./globals.css";
import ZenlessHeader from "./header";
import { RiPatreonFill } from "react-icons/ri";

const nunito = Nunito({
weight: ["400", "600", "700"],
Expand Down Expand Up @@ -130,6 +131,15 @@ export default function ZenlessLayout({ children, params }: Props) {
<AiOutlineTwitter className="inline" />{" "}
<span className="text-base">Twitter</span>
</a>
<a
href="https://www.patreon.com/GenshinBuilds"
target="_blank"
rel="noopener noreferrer"
className="group my-1 text-lg"
>
<RiPatreonFill className="inline group-hover:text-red-400" />{" "}
<span className="text-base">Patreon</span>
</a>
<LanguageSelector />
</div>

Expand Down

0 comments on commit 336bfa2

Please sign in to comment.