From 4d9092ae3d6e461f7587236693ae2942c98a7ee7 Mon Sep 17 00:00:00 2001 From: rei Date: Fri, 30 Dec 2022 15:01:25 +0100 Subject: [PATCH] dark mode and light mode support --- components/Logo.tsx | 2 +- components/Navbar.tsx | 6 +- components/PostHeader.tsx | 10 ++-- components/StyledMarkdown.tsx | 110 ++++++++++++++++++++++++++++++++++ pages/blog/[slug].tsx | 21 +------ pages/blog/index.tsx | 13 ++-- pages/project/[slug].tsx | 22 ++----- pages/projects/index.tsx | 10 ++-- styles/globals.css | 13 ++-- utils/reactmarkdown.tsx | 87 --------------------------- 10 files changed, 148 insertions(+), 146 deletions(-) create mode 100644 components/StyledMarkdown.tsx delete mode 100644 utils/reactmarkdown.tsx diff --git a/components/Logo.tsx b/components/Logo.tsx index da362f1..1370f57 100644 --- a/components/Logo.tsx +++ b/components/Logo.tsx @@ -4,7 +4,7 @@ export const Logo = () => { xmlns="http://www.w3.org/2000/svg" id="svg166" version="1.1" - className="fill-action group-hover:fill-secondary transition-all ease-in duration-100 flex-no-shrink xl:w-12 xl:h-12 w-8 h-8" + className="fill-action group-hover:fill-primary dark:group-hover:fill-secondar transition-all ease-in duration-100 flex-no-shrink xl:w-12 xl:h-12 w-8 h-8" viewBox="0 0 100 100" > diff --git a/components/Navbar.tsx b/components/Navbar.tsx index ab85b2e..6604a5d 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -13,14 +13,14 @@ export const Navbar = () => { const [showMenu, setShowMenu] = useState(false); return ( -