mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 16:16:21 -04:00
27 lines
601 B
TypeScript
27 lines
601 B
TypeScript
import Head from "next/head";
|
|
import { useTheme } from "next-themes";
|
|
import Header from "./page-header/Header";
|
|
import Footer from "./page-footer/Footer";
|
|
|
|
import styles from "./Layout.module.css";
|
|
|
|
const Layout = ({ children }) => {
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<meta name="theme-color" content={resolvedTheme === "dark" ? "#252525" : "#fcfcfc"} />
|
|
</Head>
|
|
|
|
<Header />
|
|
<main className={styles.main}>
|
|
<div className={styles.container}>{children}</div>
|
|
</main>
|
|
<Footer />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|