theme-toggle (#52)

* default to system preferred theme

* theme svg in footer

* accounted for undefined window
This commit is contained in:
Owen Rees
2023-07-04 22:40:39 +02:00
committed by GitHub
parent 8a4f5f08d2
commit 96fda01929
4 changed files with 39 additions and 27 deletions
+4
View File
@@ -1,6 +1,7 @@
import Link from "next-intl/link";
import { FaGithub, FaRegEnvelope } from "react-icons/fa";
import { useTranslations } from "next-intl";
import ThemeSwitcher from "@/app/[lang]/components/ThemeSwitcher";
export default function Footer() {
const t = useTranslations("Footer");
@@ -34,6 +35,9 @@ export default function Footer() {
EN
</Link>
</div>
<div className="text-xs">
<ThemeSwitcher />
</div>
</div>
</footer>
);