dark mode + .... some form of toggle :)

This commit is contained in:
2022-09-11 00:00:31 +02:00
parent c22687de6d
commit 31c106c58e
20 changed files with 291 additions and 20 deletions

View File

@@ -4,6 +4,6 @@
@import "../../../assets/scss/mixins";
.copyright {
color: color.adjust($color-gray, $whiteness: 18%);
color: $color-gray;
font-size: $typographic-small-font-size;
}

View File

@@ -7,6 +7,7 @@ import { Menu } from "./Menu";
import * as styles from "./Sidebar.module.scss";
import { useSiteMetadata } from "@/hooks";
import ThemeSwitcher from "../DarkmodeSwitch/ThemeSwitcher";
type Props = {
isIndex?: boolean;
@@ -23,6 +24,7 @@ const Sidebar = ({ isIndex }: Props) => {
<Contacts contacts={author.contacts} />
<Copyright copyright={copyright} />
<Menu menu={legalMenu} />
<ThemeSwitcher />
</div>
</div>
);

View File

@@ -141,6 +141,12 @@ exports[`Sidebar renders correctly 1`] = `
<nav>
<ul />
</nav>
<a
href="#"
onClick={[Function]}
>
Switch to light mode
</a>
</div>
</div>
`;