From c7b9ec1d039ebe4e9b998fa8dffe5e38d6aa727c Mon Sep 17 00:00:00 2001 From: Tenemo Date: Fri, 17 Oct 2025 22:49:13 +0200 Subject: [PATCH 1/2] netlify.toml redirects for 404; sticky header --- netlify.toml | 23 +++++++++++++++++++---- src/components/Header/header.module.scss | 3 +++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index aeaf567..9e1c984 100644 --- a/netlify.toml +++ b/netlify.toml @@ -62,8 +62,23 @@ from = "/discord" to = "https://discord.com/users/297930621760831488" status = 301 -# Redirect unknown paths to home +# 404 redirects [[redirects]] -from = "/*" -to = "/index.html" -status = 200 +from = "/:path" +to = "/" +status = 301 + +[[redirects]] +from = "/:path/" +to = "/" +status = 301 + +[[redirects]] +from = "/:path/*" +to = "/" +status = 301 + +[[redirects]] +from = "/index.html" +to = "/" +status = 301 diff --git a/src/components/Header/header.module.scss b/src/components/Header/header.module.scss index 1d493e4..72647b6 100644 --- a/src/components/Header/header.module.scss +++ b/src/components/Header/header.module.scss @@ -8,6 +8,9 @@ background-color: var(--header-color); padding: 0.5rem 1rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); + position: sticky; + top: 0; + z-index: 10; a h1 { text-decoration: none; } From ecb7d9802e8cf2d6c3edad31197de2e54891f6d6 Mon Sep 17 00:00:00 2001 From: Tenemo Date: Fri, 17 Oct 2025 22:55:10 +0200 Subject: [PATCH 2/2] color-scheme: dark --- src/root.tsx | 1 + src/styles/global.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/src/root.tsx b/src/root.tsx index 768cf35..732ea8a 100644 --- a/src/root.tsx +++ b/src/root.tsx @@ -34,6 +34,7 @@ export const Layout = ({ name="viewport" /> + diff --git a/src/styles/global.scss b/src/styles/global.scss index 8fdc42a..3fa9150 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -3,6 +3,7 @@ html, #root, body { + color-scheme: dark; font-size: 1rem; background-color: var(--background-color); color: var(--text-color);