unified structure of navbar and footer
This commit is contained in:
@@ -1,29 +1,27 @@
|
||||
---
|
||||
const links = [
|
||||
{
|
||||
text: "src",
|
||||
href: "https://github.com/breadone/breadone.net"
|
||||
txt: "src",
|
||||
lnk: "https://github.com/breadone/breadone.net"
|
||||
},
|
||||
{
|
||||
text: "bsky",
|
||||
href: "https://bsky.app/profile/breadone.xyz"
|
||||
txt: "bsky",
|
||||
lnk: "https://bsky.app/profile/breadone.xyz"
|
||||
},
|
||||
{
|
||||
text: "email",
|
||||
href: "mailto:contact@breadone.net"
|
||||
txt: "email",
|
||||
lnk: "mailto:contact@breadone.net"
|
||||
},
|
||||
]
|
||||
---
|
||||
|
||||
<footer class="text-xl mt-auto">
|
||||
{
|
||||
links.map(l => (
|
||||
<a
|
||||
class="ps-2"
|
||||
href={l.href}
|
||||
>
|
||||
{l.text}
|
||||
</a>
|
||||
links.map((l, i) => (
|
||||
<>
|
||||
<a href={l.lnk}>{l.txt}</a>
|
||||
{i < links.length - 1 && <span class="text-(--accent)"> | </span>}
|
||||
</>
|
||||
))
|
||||
}
|
||||
</footer>
|
||||
@@ -17,19 +17,11 @@ const links = [
|
||||
|
||||
<div class="text-2xl">
|
||||
{
|
||||
links.map(l => (
|
||||
links.map((l, i) => (
|
||||
<>
|
||||
<a href={l.lnk}>{l.txt}</a>
|
||||
)).join(<span class="text-(--accent)">•</span>)
|
||||
{i < links.length - 1 && <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="/software">software</a> -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user