From 6550fbd54b01935fa615bbec9a08d6988e714e9e Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:07:11 -0600 Subject: [PATCH] migrate 404 page --- packages/website/src/pages/404.astro | 58 +++++++++++++++++++ .../src/pages/[...chunk_default]/_404.astro | 34 ----------- 2 files changed, 58 insertions(+), 34 deletions(-) create mode 100644 packages/website/src/pages/404.astro delete mode 100644 packages/website/src/pages/[...chunk_default]/_404.astro diff --git a/packages/website/src/pages/404.astro b/packages/website/src/pages/404.astro new file mode 100644 index 000000000..2329b7a11 --- /dev/null +++ b/packages/website/src/pages/404.astro @@ -0,0 +1,58 @@ +--- +import locales from "@blitzkit/i18n/locales.json"; +import { DiscordLogoIcon, HomeIcon } from "@radix-ui/react-icons"; +import { Button } from "../components/Button"; +import { Heading } from "../components/Heading"; +import { Link } from "../components/Link"; +import { LinkI18n } from "../components/LinkI18n"; +import { Text } from "../components/Text"; +import { discordLink } from "../config/socials"; +import BaseLayout from "../layouts/BaseLayout.astro"; + +// the 404 page is not locale-scoped, so it always renders in the default locale +const locale = locales.default; +--- + + +
+ 404: page not found + Where would you like to go? + +
+ + + + + + + +
+
+
+ + diff --git a/packages/website/src/pages/[...chunk_default]/_404.astro b/packages/website/src/pages/[...chunk_default]/_404.astro deleted file mode 100644 index de0712305..000000000 --- a/packages/website/src/pages/[...chunk_default]/_404.astro +++ /dev/null @@ -1,34 +0,0 @@ ---- -import { DiscordLogoIcon, HomeIcon } from "@radix-ui/react-icons"; -import { Button, Flex, Heading, Link, Text } from "@radix-ui/themes"; -import { LinkI18n } from "../../components/LinkI18n"; -import { PageWrapper } from "../../components/PageWrapper"; -import { discordLink } from "../../config/socials"; -import BaseLayout from "../../layouts/BaseLayout.astro"; - -export { getStaticPaths } from "./_index"; - -const { locale } = Astro.props; ---- - - - - 404: page not found - Where would you like to go? - - - - - - - - - - -