1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-01-10 15:42:58 -05:00

update meta theme-color config

This commit is contained in:
2022-01-08 09:15:27 -05:00
parent dc7b2a88bb
commit 0954c78104
2 changed files with 4 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import Head from "next/head";
import { useTheme } from "next-themes";
import Header from "./page-header/Header";
import Footer from "./page-footer/Footer";
import { themeColorLight, themeColorDark } from "../lib/config";
import styles from "./Layout.module.css";
@@ -11,7 +12,7 @@ const Layout = ({ children }) => {
return (
<>
<Head>
<meta name="theme-color" content={resolvedTheme === "dark" ? "#252525" : "#fcfcfc"} />
<meta name="theme-color" content={resolvedTheme === "dark" ? themeColorDark : themeColorLight} />
</Head>
<Header />