1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-21 15:44:31 +00:00

the birdsite is gone

This commit is contained in:
Steffo 2023-01-16 16:50:50 +01:00
parent 7aa1902569
commit 3ef31cab0c
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 14 additions and 10 deletions

View file

@ -17,21 +17,25 @@ export type LinkPanelProps = {
export const LinkPanel = ({href, icon, text, me, fade}: LinkPanelProps) => {
const panel = (
<a className={cn({panel: true, [style.linkPanel]: true, fade: fade})} rel={me ? "me" : ""}>
<span>
<FontAwesomeIcon icon={icon}/>&nbsp;{text}
</span>
</a>
<span>
<FontAwesomeIcon icon={icon}/>&nbsp;{text}
</span>
)
if(href) {
return (
<Link href={href}>
{panel}
</Link>
<a className={cn({panel: true, [style.linkPanel]: true, fade: fade})} rel={me ? "me" : ""}>
<Link href={href}>
{panel}
</Link>
</a>
)
}
else {
return panel
return (
<div className={cn({panel: true, fade: fade})}>
{panel}
</div>
)
}
}

View file

@ -37,7 +37,7 @@ const Index: NextPage = () => {
<LinkPanel me href={"https://github.com/Steffo99"} icon={faGithub} text={"Steffo99"}/>
<LinkPanel me href={"https://old.reddit.com/user/steffo99"} icon={faRedditAlien} text={<span><small>/u/</small>Steffo99</span>}/>
<LinkPanel me href={"https://fosstodon.org/@steffo"} icon={faMastodon} text={<span>@steffo<small>@fosstodon.org</small></span>}/>
<LinkPanel me href={"https://twitter.com/CaptSteffo/"} icon={faTwitter} text={"@CaptSteffo"}/>
<LinkPanel fade icon={faTwitter} text={""}/>
<LinkPanel me href={"https://stackoverflow.com/users/4334568/steffo"} icon={faStackOverflow} text={"Steffo"}/>
<LinkPanel me href={"https://www.linkedin.com/in/steffo45/"} icon={faLinkedin} text={"Stefano Pigozzi"}/>
<LinkPanel me href={"https://steamcommunity.com/profiles/76561198034314260/"} icon={faSteam} text={"Steffo"}/>