refactor: move footer links to constants/links

This commit is contained in:
Ayo Ayco 2024-11-10 00:11:22 +01:00
parent a4af54943a
commit 8d5a56bd77
2 changed files with 44 additions and 42 deletions

View file

@ -1,47 +1,6 @@
---
import {footerLinks as links} from '../constants/links';
const year = new Date().getFullYear();
const links = [
{
text: 'GitHub',
url: 'https://github.com/ayoayco'
},
{
text: 'SourceHut',
url: 'https://sr.ht/~ayoayco'
},
{
text: 'LinkedIn',
url: 'https://www.linkedin.com/in/ayoayco'
},
{
text: 'Pixelfed',
url: 'https://metapixl.com/@ayo'
},
{
text: 'SoundCloud',
url: 'https://SoundCloud.com/ayoayco'
},
{
text: 'NPM',
url: 'https://www.npmjs.com/~aayco'
},
{
text: 'Instagram',
url: 'https://instagram.com/ayoayco'
},
{
text: 'Web Tools',
url: 'https://m.webtoo.ls/@ayo'
},
{
text: 'Ayco Social',
url: 'https://social.ayco.io'
},
{
text: 'Bluesky',
url: 'https://bsky.app/profile/ayco.io'
}
]
---
<footer>

View file

@ -42,3 +42,46 @@ export const links: Link[] = [
];
export default links;
export const footerLinks = [
{
text: 'GitHub',
url: 'https://github.com/ayoayco'
},
{
text: 'SourceHut',
url: 'https://sr.ht/~ayoayco'
},
{
text: 'LinkedIn',
url: 'https://www.linkedin.com/in/ayoayco'
},
{
text: 'Pixelfed',
url: 'https://metapixl.com/@ayo'
},
{
text: 'SoundCloud',
url: 'https://SoundCloud.com/ayoayco'
},
{
text: 'NPM',
url: 'https://www.npmjs.com/~aayco'
},
{
text: 'Instagram',
url: 'https://instagram.com/ayoayco'
},
{
text: 'Web Tools',
url: 'https://m.webtoo.ls/@ayo'
},
{
text: 'Ayco Social',
url: 'https://social.ayco.io'
},
{
text: 'Bluesky',
url: 'https://bsky.app/profile/ayco.io'
}
]