diff --git a/src/components/layout/footer.tsx b/src/components/layout/footer.tsx index f80dfb1c..7007ecf9 100644 --- a/src/components/layout/footer.tsx +++ b/src/components/layout/footer.tsx @@ -1,6 +1,7 @@ import { Box, Group, Stack, createStyles } from "@mantine/core"; import Link from "next/link"; import { cmlDiscordInviteUrl } from "~/consts/cmlDiscordInviteUrl"; +import { COMING_SOON_PATHNAME } from "~/consts/pathnames"; @@ -43,8 +44,8 @@ export const Footer = () => { align="start" spacing="1px" > - My Account - Settings + My Account + Settings { align="end" spacing="1px" > - Cookie Policy - Privacy Policy + Cookie Policy + Privacy Policy diff --git a/src/components/layout/layout.tsx b/src/components/layout/layout.tsx index a319ab3a..c800c4b8 100644 --- a/src/components/layout/layout.tsx +++ b/src/components/layout/layout.tsx @@ -5,13 +5,14 @@ import { Header } from "./header"; import { Navbar } from "./navbar/navbar"; import { Footer } from "./footer"; import { getNonEmptyArray } from "~/utils/getNonEmptyArray"; +import { MODS_PAGE_PATHNAME } from "~/consts/pathnames"; const PAGES = getNonEmptyArray([ { label: "Home", pathname: "/" }, - { label: "Mods", pathname: "/mods" }, + { label: "Mods", pathname: MODS_PAGE_PATHNAME }, ]); diff --git a/src/components/mods/expandedMod.tsx b/src/components/mods/expandedMod.tsx index c8cd01cd..6013cc03 100644 --- a/src/components/mods/expandedMod.tsx +++ b/src/components/mods/expandedMod.tsx @@ -6,6 +6,7 @@ import PublicationDate from "./publicationDate"; import ModDownloadButton from "./modDownloadButton/modDownloadButton"; import Link from "next/link"; import ModCarousel from "./modCarousel"; +import { COMING_SOON_PATHNAME } from "~/consts/pathnames"; @@ -63,8 +64,7 @@ const ExpandedMod = ({ isLoading, mod }: ExpandedModProps) => { diff --git a/src/consts/pathnames.ts b/src/consts/pathnames.ts new file mode 100644 index 00000000..0c6c91b2 --- /dev/null +++ b/src/consts/pathnames.ts @@ -0,0 +1,3 @@ +export const MODS_PAGE_PATHNAME = "/mods"; + +export const COMING_SOON_PATHNAME = "/coming-soon"; \ No newline at end of file diff --git a/src/pages/comingSoon.tsx b/src/pages/comingSoon.tsx new file mode 100644 index 00000000..955c4d4d --- /dev/null +++ b/src/pages/comingSoon.tsx @@ -0,0 +1,17 @@ +import { type NextPage } from "next"; +import { Layout } from "~/components/layout/layout"; +import { COMING_SOON_PATHNAME } from "~/consts/pathnames"; + + + + +const ComingSoon: NextPage = () => { + return ( + +

Coming soon

+

The site is currently in early beta. This feature has not been completed yet.

+
+ ); +}; + +export default ComingSoon; \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 19d06e72..d601ec3b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -4,6 +4,10 @@ import { signIn, signOut, useSession } from "next-auth/react"; import { api } from "~/utils/api"; import { Layout } from "~/components/layout/layout"; +import { MODS_PAGE_PATHNAME } from "~/consts/pathnames"; + + + const Home: NextPage = () => { @@ -12,7 +16,7 @@ const Home: NextPage = () => {

Celeste Mods List

Welcome! The site is currently in early beta.

You can only browse mods for now. diff --git a/src/pages/mods/index.tsx b/src/pages/mods/index.tsx index a4514a1f..470534d5 100644 --- a/src/pages/mods/index.tsx +++ b/src/pages/mods/index.tsx @@ -7,6 +7,7 @@ import { noRatingsFoundMessage } from "~/consts/noRatingsFoundMessage"; import { Layout } from "~/components/layout/layout"; import { ModsTable } from "~/components/mods/modsTable"; import type { ModWithInfo } from "~/components/mods/types"; +import { MODS_PAGE_PATHNAME } from "~/consts/pathnames"; @@ -254,7 +255,7 @@ const Mods: NextPage = () => { return ( - + Mods List