From c115aa8abc12ba1ced13bec9298473c5a2ef244f Mon Sep 17 00:00:00 2001 From: qhan Date: Tue, 8 Oct 2024 18:42:55 +0800 Subject: [PATCH] feat(site/blog): add dark theme --- site/blog/app/(web)/components/Copyright.tsx | 2 +- site/blog/app/(web)/components/Footer.tsx | 2 +- site/blog/app/(web)/components/Header.tsx | 10 +++++-- site/blog/app/(web)/components/Theme.tsx | 20 ++++++++++++++ .../app/(web)/posts/[slug]/MDXContent.tsx | 8 ++++-- site/blog/app/(web)/posts/[slug]/styles.scss | 12 +++++++-- site/blog/app/layout.tsx | 23 +++++++++------- site/blog/app/styles/globals.scss | 27 ++++++++++++++----- site/blog/package.json | 1 + site/blog/pnpm-lock.yaml | 14 ++++++++++ 10 files changed, 95 insertions(+), 24 deletions(-) create mode 100644 site/blog/app/(web)/components/Theme.tsx diff --git a/site/blog/app/(web)/components/Copyright.tsx b/site/blog/app/(web)/components/Copyright.tsx index 0ec76e6..f0b7b3f 100644 --- a/site/blog/app/(web)/components/Copyright.tsx +++ b/site/blog/app/(web)/components/Copyright.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; export default () => ( -
+
©2022-{new Date().getFullYear()} Qhan W. All Rights Reserved. (