various changes

This commit is contained in:
2023-05-19 19:08:54 +02:00
parent 95f29085b7
commit 65ae7b58d5
9 changed files with 88 additions and 5 deletions

View File

@@ -1,3 +1,12 @@
import styles from "./styles.header.module.css"
export default function Header() {
return <div>This will be the header</div>
return <div className={`${styles.header} pp`}>
<img src="/logo.png" width="64px" height="auto" alt="" />
<div className={styles.headertitle}>
<div style={{flexGrow:1}}>Andreas<br/>Schaafsma</div>
<div>>Software Developer</div>
</div>
</div>
}

11
src/components/navbar.tsx Normal file
View File

@@ -0,0 +1,11 @@
import styles from "./styles.navbar.module.css"
const navItems = ["News", "Projects", "About Me"];
export default function Navbar() {
return <div className={`${styles.navbar}`}>
{navItems.map((value, i) => {
return (<a className={styles.navItem}>{value}</a>)
})}
</div>
}

View File

@@ -0,0 +1,12 @@
import { ReactNode } from "react"
import styles from "./styles.page-container.module.css"
interface Props {
children: ReactNode;
}
export default function PageContainer(props:Props) {
return <div className={`${styles.pagecontainer}`}>
{props.children}
</div>;
}

View File

@@ -0,0 +1,10 @@
.header{
display: flex;
background-color: green;
flex-direction: row;
flex-grow: 0;
}
.headertitle{
display:flex;
flex-direction: column;
}

View File

@@ -0,0 +1,7 @@
.navbar{
background-color: pink;
flex-grow: 0;
}
.navItem{
margin: 8px;
}

View File

@@ -0,0 +1,4 @@
.pagecontainer{
background-color: yellow;
flex-grow: 1;
}