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,5 +1,28 @@
---
const links = [
{
txt: 'now',
lnk: '/now'
},
{
txt: 'posts',
lnk: '/posts'
},
{
txt: 'photos',
lnk: '/photos'
},
]
---
<div class="text-2xl"> <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> <span class="text-(--accent)">•</span>
@@ -7,6 +30,6 @@
<span class="text-(--accent)">•</span> <span class="text-(--accent)">•</span>
<a href="/photos">photos</a> <a href="/photos">photos</a> -->
<!-- • <a href="/software">software</a> --> <!-- • <a href="/software">software</a> -->
</div> </div>

View File

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

View File

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

View File

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

View File

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