adding completed project

This commit is contained in:
James Perkins
2022-02-15 09:17:52 -05:00
parent 855f2f75bb
commit 4e97734a1a
31 changed files with 3159 additions and 80 deletions

23
components/Layout.js Normal file
View File

@@ -0,0 +1,23 @@
import Header from "./Header";
import Meta from './Meta'
import styles from '../styles/Layout.module.css'
export default function Layout(props) {
const pathname = props.pathname
return (
<section
className={styles.layout}
style={{
backgroundColor: `${props.bgColor && props.bgColor}`,
color: `${props.pathname == "info" && 'white'}`
}}
>
<Meta
siteTitle={props.siteTitle}
siteDescription={props.siteDescription}
/>
<Header siteTitle={props.siteTitle} />
<div className={styles.content}>{props.children}</div>
</section>
);
}