Archived
1
0
Fork 0
This repository has been archived on 2024-04-05. You can view files and clone it, but cannot push or open issues or pull requests.
ethanreece.com/src/components/content/index/Socials.astro
2023-06-04 19:43:10 -05:00

68 lines
1.6 KiB
Text

---
import ButtonSecondary from '../../ButtonSecondary.astro'
interface SocialExtra {
name: string
url: string
external?: boolean
}
interface Social {
name?: string
profile: string
url: string
extra?: SocialExtra[]
icon?: string
}
const socials: Social[] = [
{
name: 'Email',
profile: 'contact@ethanreece.com',
url: 'mailto:contact@ethanreece.com',
extra: [
{
name: 'PGP key',
url: '',
},
],
},
{
name: 'GitHub',
profile: 'Sudoer777',
url: 'https://github.com/sudoer777',
},
{
name: 'Forgejo',
profile: 'sudoer777@git.sudoer.ch',
url: 'https://git.sudoer.ch/sudoer777',
},
{
name: 'Devpost',
profile: 'sudoer777',
url: 'https://devpost.com/sudoer777',
},
{
name: 'LinkedIn',
profile: '-ethanreece-',
url: 'https://www.linkedin.com/in/-ethanreece-/',
},
]
---
<div class="flex flex-col">
{
socials.map((s) => (
<div class="flex">
<ButtonSecondary link={s.url} external={true}>
<b class="font-extrabold">{s.name}:</b>
{s.profile}
</ButtonSecondary>
{s.extra &&
s.extra.map((e) => (
<ButtonSecondary link={e.url} external={e.external}>
[{e.name}]
</ButtonSecondary>
))}
</div>
))
}
</div>