various changes
This commit is contained in:
parent
95f29085b7
commit
65ae7b58d5
26
public/global.css
Normal file
26
public/global.css
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
html, body{
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height:100%;
|
||||||
|
min-height: 100%;
|
||||||
|
min-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#__next{
|
||||||
|
min-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
html{
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pp{
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.root{
|
||||||
|
display:flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
height:100vh;
|
||||||
|
}
|
||||||
BIN
public/logo.png
Normal file
BIN
public/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
@ -1,3 +1,12 @@
|
|||||||
|
import styles from "./styles.header.module.css"
|
||||||
|
|
||||||
export default function Header() {
|
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;
|
||||||
|
}
|
||||||
@ -1,11 +1,15 @@
|
|||||||
import Header from "@/components/header";
|
import Header from "@/components/header";
|
||||||
|
import PageContainer from "@/components/page-container";
|
||||||
|
import Navbar from "@/components/navbar";
|
||||||
import ReactDOM from "react";
|
import ReactDOM from "react";
|
||||||
|
import "public/global.css"
|
||||||
|
|
||||||
export default function Test() {
|
export default function Test() {
|
||||||
return <div>
|
return <div className={`root`}>
|
||||||
<Header />
|
<Header/>
|
||||||
<div>
|
<Navbar/>
|
||||||
|
<PageContainer>
|
||||||
Content Goes Here
|
Content Goes Here
|
||||||
</div>
|
</PageContainer>
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user