Adding routing and stub about page

This commit is contained in:
April Eaton 2026-01-11 19:51:08 +01:00
parent 61b1b3372b
commit c78c61ac49
Signed by: AprilEaton
GPG key ID: 0BCF829D48AE5C9D
11 changed files with 3331 additions and 3183 deletions

View file

@ -0,0 +1,27 @@
header {
border-color: #c6a0f6;
border-width: 2px;
border-style: solid;
position: sticky top;
}
nav {
padding: 0.25rem;
li {
display: inline-block;
list-style-type: none;
padding: 0.25rem;
}
ul {
margin: 0;
padding: 0.25rem;
}
a {
color: #cad3f5;
text-decoration: none;
font-weight: bold;
}
}

View file

@ -0,0 +1,14 @@
import "./header.css";
import { Nav } from "./nav";
export function Header() {
return (
<header>
<div id="hd-left" className="header-section">
<Nav />
</div>
<div id="hd-middle" className="header-section"></div>
<div id="hd-right" className="header-section"></div>
</header>
);
}

View file

@ -0,0 +1,17 @@
import { Link } from "react-router";
import "./header.css";
export function Nav() {
return (
<nav>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/about">About</Link>
</li>
</ul>
</nav>
);
}