Refactoring sidebar and adding footer
This commit is contained in:
29
web/src/components/footer.astro
Normal file
29
web/src/components/footer.astro
Normal 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>
|
||||||
@@ -1,12 +1,35 @@
|
|||||||
|
---
|
||||||
|
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>
|
||||||
|
|
||||||
<a href="/posts">posts</a>
|
<a href="/posts">posts</a>
|
||||||
|
|
||||||
<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>
|
||||||
@@ -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/>
|
|
||||||
</div>
|
<slot/>
|
||||||
|
|
||||||
|
<Footer/>
|
||||||
</div>
|
</div>
|
||||||
@@ -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>
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user