a11y: footer spacing

This commit is contained in:
Ayo Ayco 2024-08-30 09:21:08 +02:00
parent 690cc37ee2
commit 08599cc7d5

View file

@ -1,14 +1,6 @@
--- ---
const year = new Date().getFullYear(); const year = new Date().getFullYear();
const leftLinks = [ const links = [
{
text: 'Ayo\'s Blog',
url: 'https://ayos.blog'
},
{
text: 'Ayco Social',
url: 'https://social.ayco.io'
},
{ {
text: 'GitHub', text: 'GitHub',
url: 'https://github.com/ayoayco' url: 'https://github.com/ayoayco'
@ -17,9 +9,6 @@ const leftLinks = [
text: 'SourceHut', text: 'SourceHut',
url: 'https://sr.ht/~ayoayco' url: 'https://sr.ht/~ayoayco'
}, },
]
const rightLinks = [
{ {
text: 'LinkedIn', text: 'LinkedIn',
url: 'https://www.linkedin.com/in/ayoayco' url: 'https://www.linkedin.com/in/ayoayco'
@ -44,47 +33,42 @@ const rightLinks = [
text: 'Web Tools', text: 'Web Tools',
url: 'https://m.webtoo.ls/@ayo' url: 'https://m.webtoo.ls/@ayo'
}, },
{
text: 'Ayco Social',
url: 'https://social.ayco.io'
},
] ]
--- ---
<footer> <footer>
<div class="left-section">
<p><strong>Elsewhere</strong></p>
{
rightLinks.map((linkObj) => <p><a href={linkObj.url}>{linkObj.text}</a></p>)
}
</div>
<div class="right-section">
<p> <p>
This website <a href="https://ayos.blog/stopped-tracking-on-my-sites"
>does not track users</a>
</p>
<p>&#169; 2022-{year} <a href="/">Ayo Ayco</a></p>
<p>
See the <a href="https://sr.ht/~ayoayco/personal-site">source code</a>
</p>
{ {
leftLinks.map((linkObj) => <p><a href={linkObj.url}>{linkObj.text}</a></p>) links.map((linkObj) => <span class="link-item"><a href={linkObj.url}>{linkObj.text}</a></span>)
} }
</div> </p>
<p>
&#169; 2022-{year} <a href="/">Ayo Ayco</a>. This website <a href="https://ayos.blog/stopped-tracking-on-my-sites">does not track users</a>. See the <a href="https://sr.ht/~ayoayco/personal-site">source code</a>.
</p>
</footer> </footer>
<style> <style>
footer { footer {
margin-top: 1em; margin-top: 2em;
grid-template-columns: auto auto; /* grid-template-columns: auto auto;
display: grid; display: grid;
gap: 1rem; gap: 1rem; */
padding: 0; padding: 0;
& .right-section { .link-item:not(:last-child)::after {
text-align: right; content: ' • '
}
} }
footer p { p {
margin: 0 0 1em;
font-size: var(--font-size-sm); font-size: var(--font-size-sm);
margin: 0; line-height: 2em;
} }
}
</style> </style>