Refactoring sidebar and adding footer

This commit is contained in:
2025-11-13 22:12:26 +13:00
parent 2812939ed3
commit b4cf4e88bc
6 changed files with 67 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
---
const links = [
{
text: "src",
href: "https://github.com/breadone/breadone.net"
},
{
text: "bsky",
href: "https://bsky.app/profile/breadone.xyz"
},
{
text: "email",
href: "mailto:contact@breadone.net"
},
]
---
<footer class="text-xl mt-auto">
{
links.map(l => (
<a
class="ps-2"
href={l.href}
>
{l.text}
</a>
))
}
</footer>

View File

@@ -1,12 +1,35 @@
---
const links = [
{
txt: 'now',
lnk: '/now'
},
{
txt: 'posts',
lnk: '/posts'
},
{
txt: 'photos',
lnk: '/photos'
},
]
---
<div class="text-2xl">
<a href="/now">now</a>
{
links.map(l => (
<a href={l.lnk}>{l.txt}</a>
)).join(<span class="text-(--accent)">•</span>)
}
<!-- <a href="/now">now</a>
<span class="text-(--accent)">•</span>
<a href="/posts">posts</a>
<span class="text-(--accent)">•</span>
<a href="/photos">photos</a>
<a href="/photos">photos</a> -->
<!-- • <a href="/software">software</a> -->
</div>

View File

@@ -1,12 +1,15 @@
---
import Navbar from "src/components/index/navbar.astro"
import Footer from "./footer.astro"
---
<div class="w-[32%] text-center">
<div class="flex flex-col">
<p class="text-4xl">breadone dot net</p>
<Navbar/>
<div class="mt-8"/>
<slot/>
</div>
<div class="w-[32%] py-14 h-screen text-center flex flex-col">
<p class="text-4xl">breadone dot net</p>
<Navbar/>
<!-- Lil spacer -->
<div class="mt-8"/>
<slot/>
<Footer/>
</div>

View File

@@ -12,6 +12,5 @@ import BaseHead from "./BaseHead.astro"
<main id="main" class="flex-1">
<slot />
</main>
<!-- <Footer /> -->
</body>
</html>

View File

@@ -5,10 +5,9 @@ import Sidebar from "src/components/sidebar.astro"
<Base>
<div class="flex flex-row">
<!-- HeaderSection -->
<Sidebar/>
<div class="content-panel bg-amber-200">
<div class="content-panel">
content
</div>
</div>

View File

@@ -16,7 +16,7 @@
html body {
@apply font-[Barnum];
@apply w-[68%] mx-auto mt-14 h-full;
@apply w-[68%] mx-auto h-full;
@apply bg-(--bg-light);
}