From e9af0bc7b60b24462853d23dadb60ab9704c7457 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Tue, 21 Oct 2025 23:43:12 +0200 Subject: [PATCH 1/3] Bring 404 page closer to the designs --- src/app/not-found.tsx | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index d40af4652a..b73d9d7331 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -3,6 +3,11 @@ import { usePathname } from "next/navigation" import { useMounted } from "nextra/hooks" +import { Button } from "./conf/_design-system/button" + +import "@/globals.css" +import "@/app/colors.css" + export default function Page() { const pathname = usePathname() const mounted = useMounted() @@ -22,16 +27,34 @@ export default function Page() { }/issues/new?title=${encodeURIComponent(title)}&labels=${labels}` return ( -
-

404: Page Not Found

- - Submit an issue about broken link → - +
+ +

Page not found

+
+ + +
) } + +function FourOhFourIcon() { + return ( + + 404 + + + + + ) +} From 295d44c451b1f9c9745d002c3a2649e31e3a3cf7 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Tue, 21 Oct 2025 23:47:19 +0200 Subject: [PATCH 2/3] Support dark mode --- src/app/colors.css | 6 ++++++ src/app/not-found.tsx | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/app/colors.css b/src/app/colors.css index 95ec008b24..5b09e3b8b1 100644 --- a/src/app/colors.css +++ b/src/app/colors.css @@ -38,3 +38,9 @@ --color-neu-50: 77 14% 20%; --color-neu-0: 75 15% 5%; } + +@media (prefers-color-scheme: dark) { + .dark-if-preferred { + @apply dark; + } +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index b73d9d7331..366d9e2449 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -7,6 +7,7 @@ import { Button } from "./conf/_design-system/button" import "@/globals.css" import "@/app/colors.css" +import { useEffect } from "react" export default function Page() { const pathname = usePathname() @@ -27,8 +28,8 @@ export default function Page() { }/issues/new?title=${encodeURIComponent(title)}&labels=${labels}` return ( -
- +
+

Page not found

- + +
+ + +

Page not found

+
+ + +
-
+ ) }