Mirror of my GitHub Pages site
0

Configure Feed

Select the types of activity you want to include in your feed.

Add header

authored by

Spenser Black and committed by
GitHub
(Jun 25, 2026, 6:55 PM UTC) 927bf45d f7c957d5

+20
+18
src/components/Header.astro
··· 1 + --- 2 + --- 3 + <header> 4 + <nav> 5 + <a href="/">Homepage</a> 6 + </nav> 7 + <div class="controls"> 8 + <!-- TODO Add dark/light button --> 9 + </div> 10 + </header> 11 + 12 + <style> 13 + header { 14 + display: flex; 15 + flex-direction: row;; 16 + justify-content: space-around; 17 + } 18 + </style>
+2
src/layouts/BaseLayout.astro
··· 1 1 --- 2 + import Header from "../components/Header.astro"; 2 3 import Footer from "../components/Footer.astro"; 3 4 import "../styles/global.css"; 4 5 const { title } = Astro.props; ··· 14 15 </head> 15 16 16 17 <body> 18 + <Header /> 17 19 <h1>{title}</h1> 18 20 <slot /> 19 21 <Footer />