various changes
This commit is contained in:
@@ -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
11
src/components/navbar.tsx
Normal 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>
|
||||
}
|
||||
12
src/components/page-container.tsx
Normal file
12
src/components/page-container.tsx
Normal 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>;
|
||||
}
|
||||
10
src/components/styles.header.module.css
Normal file
10
src/components/styles.header.module.css
Normal file
@@ -0,0 +1,10 @@
|
||||
.header{
|
||||
display: flex;
|
||||
background-color: green;
|
||||
flex-direction: row;
|
||||
flex-grow: 0;
|
||||
}
|
||||
.headertitle{
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
7
src/components/styles.navbar.module.css
Normal file
7
src/components/styles.navbar.module.css
Normal file
@@ -0,0 +1,7 @@
|
||||
.navbar{
|
||||
background-color: pink;
|
||||
flex-grow: 0;
|
||||
}
|
||||
.navItem{
|
||||
margin: 8px;
|
||||
}
|
||||
4
src/components/styles.page-container.module.css
Normal file
4
src/components/styles.page-container.module.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.pagecontainer{
|
||||
background-color: yellow;
|
||||
flex-grow: 1;
|
||||
}
|
||||
Reference in New Issue
Block a user