fix(links): migrate gitlab -> forgejo

This commit is contained in:
Saibotk 2025-01-20 00:11:36 +01:00
parent b64ae4bb82
commit ab31b11407
Signed by: saibotk
GPG key ID: 67585F0065E261D5
4 changed files with 32 additions and 34 deletions

View file

@ -18,7 +18,7 @@ const today = new Date()
Made with <a href="https://astro.build/" target="_blank" rel="noopener" class="inline-block hover:scale-105 transition duration-150 active:scale-95 active:text-pink-300">Astro</a>
</div>
<span> &#183; </span>
<a href="https://git.saibotk.de/saibotk.de/saiblog" target="_blank" rel="noopener" class="inline-block hover:scale-105 transition duration-150 active:scale-95 active:text-pink-300">
<a href="https://git.sipsofcode.dev/saibotk-de/saiblog" target="_blank" rel="noopener" class="inline-block hover:scale-105 transition duration-150 active:scale-95 active:text-pink-300">
Source Code
</a>
<span> &#183; </span>

View file

@ -1,7 +1,7 @@
---
import HeaderLink from './HeaderLink.astro'
import Forgejo from './icons/Forgejo.astro'
import GitHub from './icons/GitHub.astro'
import GitLab from './icons/GitLab.astro'
import Mastodon from './icons/Mastodon.astro'
import { SITE_TITLE } from '../config'
---
@ -18,31 +18,23 @@ import { SITE_TITLE } from '../config'
<HeaderLink href="/posts">Posts</HeaderLink>
</div>
<div class="lg:ml-auto space-x-4 mt-2 lg:mt-0">
<div class="lg:ml-auto space-x-6 mt-2 lg:mt-0">
<a
class="inline-block hover:scale-105 transition duration-150 active:scale-95 active:text-pink-300"
href="https://flausch.social/@saibotk"
target="_blank"
aria-label="Link to my Mastodon account"
>
<Mastodon class="w-6" />
</a>
<a
><Mastodon class="w-6" /></a><a
class="inline-block hover:scale-105 transition duration-150 active:scale-95 active:text-pink-300"
href="https://git.saibotk.de/saibotk"
href="https://git.sipsofcode.dev/saibotk"
target="_blank"
aria-label="Link to my Gitlab account"
>
<GitLab class="w-6" />
</a>
<a
aria-label="Link to my Forgejo account"
><Forgejo class="w-6" /></a><a
class="inline-block hover:scale-105 transition duration-150 active:scale-95 active:text-pink-300"
href="https://github.com/saibotk"
target="_blank"
aria-label="Link to my GitHub account"
>
<GitHub class="w-6" />
</a>
><GitHub class="w-6" /></a>
</div>
</nav>
</header>

View file

@ -0,0 +1,24 @@
---
export type Props = astroHTML.JSX.SVGAttributes
const { class: classes, ...props } = Astro.props
---
<svg viewBox="0 0 212 212" xmlns="http://www.w3.org/2000/svg" class={classes} aria-label="Forgejo logo" {...props}>
<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:RDF>
<cc:Work rdf:about="https://codeberg.org/forgejo/meta/src/branch/readme/branding#logo">
<dc:title>Forgejo logo</dc:title>
<cc:creator rdf:resource="https://caesarschinas.com/"><cc:attributionName>Caesar Schinas</cc:attributionName></cc:creator>
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/"/>
</cc:Work>
</rdf:RDF>
</metadata>
<g transform="translate(6,6)">
<path d="M58 168 v-98 a50 50 0 0 1 50-50 h20" fill="none" stroke-width="25" stroke="currentColor"/>
<path d="M58 168 v-30 a50 50 0 0 1 50-50 h20" fill="none" stroke-width="25" stroke="currentColor"/>
<circle cx="142" cy="20" r="18" fill="none" stroke-width="15" stroke="currentColor"/>
<circle cx="142" cy="88" r="18" fill="none" stroke-width="15" stroke="currentColor"/>
<circle cx="58" cy="180" r="18" fill="none" stroke-width="15" stroke="currentColor"/>
</g>
</svg>

View file

@ -1,18 +0,0 @@
---
export type Props = astroHTML.JSX.SVGAttributes
const { class: classes, ...props } = Astro.props
---
<svg
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
viewBox="-2 -2.5 24 24"
class={classes}
aria-label="GitLab logo"
{...props}
><path
fill="currentColor"
d="M10.006 18.443L6.326 7.118h7.36l-3.68 11.325zm0 0L1.168 7.118h5.158l3.68 11.325zM1.168 7.118l8.838 11.325l-9.68-7.032a.762.762 0 0 1-.276-.852l1.118-3.441zm0 0L3.385.296a.38.38 0 0 1 .724 0l2.217 6.822H1.168zm8.838 11.325l3.68-11.325h5.157l-8.837 11.325zm8.837-11.325l1.119 3.441a.762.762 0 0 1-.277.852l-9.68 7.032l8.838-11.325zm0 0h-5.157L15.902.296a.38.38 0 0 1 .725 0l2.216 6.822z"
></path>
</svg>