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">
|
||||
<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>
|
||||
@@ -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>
|
||||
@@ -12,6 +12,5 @@ import BaseHead from "./BaseHead.astro"
|
||||
<main id="main" class="flex-1">
|
||||
<slot />
|
||||
</main>
|
||||
<!-- <Footer /> -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user