a11y: footer spacing
This commit is contained in:
parent
690cc37ee2
commit
08599cc7d5
1 changed files with 22 additions and 38 deletions
|
@ -1,15 +1,7 @@
|
||||||
---
|
---
|
||||||
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>
|
links.map((linkObj) => <span class="link-item"><a href={linkObj.url}>{linkObj.text}</a></span>)
|
||||||
|
}
|
||||||
</p>
|
</p>
|
||||||
<p>© 2022-{year} <a href="/">Ayo Ayco</a></p>
|
|
||||||
<p>
|
<p>
|
||||||
See the <a href="https://sr.ht/~ayoayco/personal-site">source code</a>
|
© 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>
|
</p>
|
||||||
{
|
|
||||||
leftLinks.map((linkObj) => <p><a href={linkObj.url}>{linkObj.text}</a></p>)
|
|
||||||
}
|
|
||||||
</div>
|
|
||||||
</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 {
|
||||||
font-size: var(--font-size-sm);
|
margin: 0 0 1em;
|
||||||
margin: 0;
|
font-size: var(--font-size-sm);
|
||||||
}
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue