feat: initial icons for social links
This commit is contained in:
parent
ad982fcdae
commit
db710d5d9a
2 changed files with 24 additions and 9 deletions
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
|
import Icon from 'astro-iconify'
|
||||||
import { footerLinks as links } from '../constants/links'
|
import { footerLinks as links } from '../constants/links'
|
||||||
const year = new Date().getFullYear()
|
const year = new Date().getFullYear()
|
||||||
---
|
---
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<ul>
|
<ul id="internal-links">
|
||||||
<li>
|
<li>
|
||||||
<a href="/about">About me</a>
|
<a href="/about">About me</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -28,7 +29,9 @@ const year = new Date().getFullYear()
|
||||||
{
|
{
|
||||||
links.map((linkObj) => (
|
links.map((linkObj) => (
|
||||||
<li>
|
<li>
|
||||||
<a href={linkObj.url}>{linkObj.text}</a>
|
<a href={linkObj.url}>
|
||||||
|
<Icon pack={linkObj.set ?? 'mdi'} name={linkObj.icon} />
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
@ -45,9 +48,6 @@ const year = new Date().getFullYear()
|
||||||
<style>
|
<style>
|
||||||
footer {
|
footer {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
/* grid-template-columns: auto auto;
|
|
||||||
display: grid;
|
|
||||||
gap: 1rem; */
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
@ -55,14 +55,21 @@ const year = new Date().getFullYear()
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
display: inline;
|
display: inline-block;
|
||||||
|
|
||||||
&:not(:last-child)::after {
|
a svg {
|
||||||
content: ' • ';
|
width: 1.5rem;
|
||||||
|
margin-right: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#internal-links li {
|
||||||
|
&:not(:last-child)::after {
|
||||||
|
content: ' • ';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
p,
|
p,
|
||||||
ul {
|
ul {
|
||||||
margin: 0 0 1em;
|
margin: 0 0 1em;
|
||||||
|
|
|
@ -35,37 +35,45 @@ export const links: Link[] = [
|
||||||
|
|
||||||
export default links
|
export default links
|
||||||
|
|
||||||
export const footerLinks = [
|
export const footerLinks: Link[] = [
|
||||||
{
|
{
|
||||||
text: 'SourceHut',
|
text: 'SourceHut',
|
||||||
url: 'https://sr.ht/~ayoayco',
|
url: 'https://sr.ht/~ayoayco',
|
||||||
|
icon: 'sourcehut',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'GitHub',
|
text: 'GitHub',
|
||||||
url: 'https://github.com/ayoayco',
|
url: 'https://github.com/ayoayco',
|
||||||
|
icon: 'github',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'LinkedIn',
|
text: 'LinkedIn',
|
||||||
url: 'https://www.linkedin.com/in/ayoayco',
|
url: 'https://www.linkedin.com/in/ayoayco',
|
||||||
|
icon: 'linkedin',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Pixelfed',
|
text: 'Pixelfed',
|
||||||
url: 'https://metapixl.com/@ayo',
|
url: 'https://metapixl.com/@ayo',
|
||||||
|
icon: 'pixelfed',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'SoundCloud',
|
text: 'SoundCloud',
|
||||||
url: 'https://SoundCloud.com/ayoayco',
|
url: 'https://SoundCloud.com/ayoayco',
|
||||||
|
icon: 'soundcloud',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'NPM',
|
text: 'NPM',
|
||||||
url: 'https://www.npmjs.com/~aayco',
|
url: 'https://www.npmjs.com/~aayco',
|
||||||
|
icon: 'npm',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Instagram',
|
text: 'Instagram',
|
||||||
url: 'https://instagram.com/ayoayco',
|
url: 'https://instagram.com/ayoayco',
|
||||||
|
icon: 'instagram',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Mastodon',
|
text: 'Mastodon',
|
||||||
url: 'https://main.elk.zone/social.ayco.io/@ayo',
|
url: 'https://main.elk.zone/social.ayco.io/@ayo',
|
||||||
|
icon: 'mastodon',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue