feat: add a link to blecon.de

This commit is contained in:
2026-04-02 18:22:44 +02:00
parent 924af6e200
commit 7d4c8e6cb1
6 changed files with 40 additions and 15 deletions

View File

@@ -1,9 +1,10 @@
--- ---
import type { HTMLAttributes } from "astro/types"; import type { HTMLAttributes } from "astro/types";
import { getRel } from "../link-utils";
interface Props extends HTMLAttributes<"a"> { interface Props extends HTMLAttributes<"a"> {
/** Whether this link should use defaults for external links. */ /** Whether this link should use defaults for external links. */
external?: boolean | null | undefined; external?: boolean | "me" | null | undefined;
} }
const { class: className, external, target, rel, ...rest } = Astro.props; const { class: className, external, target, rel, ...rest } = Astro.props;
@@ -15,6 +16,6 @@ const { class: className, external, target, rel, ...rest } = Astro.props;
"flex min-w-full items-center justify-center gap-4 rounded px-6 py-2 text-lg outline-offset-2 sm:px-24", "flex min-w-full items-center justify-center gap-4 rounded px-6 py-2 text-lg outline-offset-2 sm:px-24",
]} ]}
target={target ?? (external ? "_blank" : undefined)} target={target ?? (external ? "_blank" : undefined)}
rel={rel ?? (external ? "external me nofollow noreferrer" : undefined)} rel={rel ?? getRel(external)}
{...rest}><slot name="logo" /><slot /></a {...rest}><slot name="logo" /><slot /></a
> >

View File

@@ -2,10 +2,11 @@
import type { HTMLAttributes } from "astro/types"; import type { HTMLAttributes } from "astro/types";
import ExternalIcon from "../icons/arrow-top-right-on-square.svg"; import ExternalIcon from "../icons/arrow-top-right-on-square.svg";
import InlineSvg from "./inline-svg.astro"; import InlineSvg from "./inline-svg.astro";
import { getRel } from "../link-utils";
interface Props extends HTMLAttributes<"a"> { interface Props extends HTMLAttributes<"a"> {
/** Whether this link should use defaults for external links. */ /** Whether this link should use defaults for external links. */
external?: boolean | null | undefined; external?: boolean | "me" | null | undefined;
} }
const { external, target, rel, ...rest } = Astro.props; const { external, target, rel, ...rest } = Astro.props;
@@ -13,7 +14,7 @@ const { external, target, rel, ...rest } = Astro.props;
<a <a
target={target ?? (external ? "_blank" : undefined)} target={target ?? (external ? "_blank" : undefined)}
rel={rel ?? (external ? "external me nofollow noreferrer" : undefined)} rel={rel ?? getRel(external)}
{...rest} {...rest}
><slot />{ ><slot />{
external ? ( external ? (

7
src/link-utils.ts Normal file
View File

@@ -0,0 +1,7 @@
export function getRel(
external: boolean | "me" | null | undefined,
): string | undefined {
return external
? "external nofollow noreferrer".concat(external === "me" ? " me" : "")
: undefined;
}

View File

@@ -1,6 +1,7 @@
--- ---
import { Image } from "astro:assets"; import { Image } from "astro:assets";
import ButtonLink from "../components/button-link.astro"; import ButtonLink from "../components/button-link.astro";
import InlineLink from "../components/inline-link.astro";
import GitHubLogo from "../images/GitHub.svg"; import GitHubLogo from "../images/GitHub.svg";
import GitLabLogo from "../images/GitLab.svg"; import GitLabLogo from "../images/GitLab.svg";
import KeyoxideLogo from "../images/Keyoxide.svg"; import KeyoxideLogo from "../images/Keyoxide.svg";
@@ -25,10 +26,17 @@ import BaseLayout from "../layouts/BaseLayout.astro";
<section class="text-soft"> <section class="text-soft">
<p>Fachinformatiker für Anwendungsentwicklung</p> <p>Fachinformatiker für Anwendungsentwicklung</p>
</section> </section>
<nav aria-label="Seitennavigation"> <nav aria-label="Seitennavigation" class="page-nav">
<ul class="flex gap-2"> <ul class="flex">
<li class="flex justify-center"> <li>
<a href="/skills" class="underline font-medium">Skills</a> <a href="/skills" class="font-medium underline">Skills</a>
</li>
<li>
<InlineLink
href="https://blecon.de"
external
class="font-medium underline">blecon.de</InlineLink
>
</li> </li>
</ul> </ul>
</nav> </nav>
@@ -39,7 +47,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
class="link-matrix" class="link-matrix"
href="https://matrix.to/#/@kmoschcau:matrix.org" href="https://matrix.to/#/@kmoschcau:matrix.org"
title="Mein Matrix-Konto" title="Mein Matrix-Konto"
external external="me"
> >
<MatrixLogo <MatrixLogo
class="size-6" class="size-6"
@@ -55,7 +63,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
class="link-github" class="link-github"
href="https://github.com/kmoschcau/" href="https://github.com/kmoschcau/"
title="Mein GitHub-Konto" title="Mein GitHub-Konto"
external external="me"
> >
<GitHubLogo <GitHubLogo
class="size-6" class="size-6"
@@ -71,7 +79,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
class="link-gitlab" class="link-gitlab"
href="https://gitlab.com/kmoschcau" href="https://gitlab.com/kmoschcau"
title="Mein GitLab-Konto" title="Mein GitLab-Konto"
external external="me"
> >
<GitLabLogo <GitLabLogo
class="size-6" class="size-6"
@@ -87,7 +95,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
class="link-linked-in" class="link-linked-in"
href="https://www.linkedin.com/in/kmoschcau/" href="https://www.linkedin.com/in/kmoschcau/"
title="Mein LinkedIn-Konto" title="Mein LinkedIn-Konto"
external external="me"
> >
<LinkedInLogo <LinkedInLogo
class="size-6" class="size-6"
@@ -103,7 +111,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
class="link-keyoxide" class="link-keyoxide"
href="https://keyoxide.org/8CE00E9495B5030DA9217208DF16F424177090BB" href="https://keyoxide.org/8CE00E9495B5030DA9217208DF16F424177090BB"
title="Mein Keyoxide-Eintrag" title="Mein Keyoxide-Eintrag"
external external="me"
> >
<KeyoxideLogo <KeyoxideLogo
class="size-6" class="size-6"

View File

@@ -33,7 +33,11 @@ const kcStart = new Date(2026, 0, 1);
<main class="flex items-center justify-center"> <main class="flex items-center justify-center">
<article> <article>
<div class="mb-8 flex items-baseline gap-6"> <div class="mb-8 flex items-baseline gap-6">
<a href="/" aria-label="Zurück" title="Zurück" class="text-soft rounded-full" <a
href="/"
aria-label="Zurück"
title="Zurück"
class="text-soft rounded-full"
><ArrowLeftCircle role="presentation" class="size-9" /></a ><ArrowLeftCircle role="presentation" class="size-9" /></a
> >
<h1>Skills</h1> <h1>Skills</h1>
@@ -110,7 +114,7 @@ const kcStart = new Date(2026, 0, 1);
Jahre<br /> Jahre<br />
(<InlineLink (<InlineLink
href="https://www.credly.com/badges/e06dda2d-a444-448d-809a-31565c3b8c8d/public_url" href="https://www.credly.com/badges/e06dda2d-a444-448d-809a-31565c3b8c8d/public_url"
external external="me"
>AWS Certified Solutions Architect Associate</InlineLink >AWS Certified Solutions Architect Associate</InlineLink
>, AWS, GCP, Azure, CloudFormation, HashiCorp Terraform) >, AWS, GCP, Azure, CloudFormation, HashiCorp Terraform)
</li> </li>

View File

@@ -44,6 +44,10 @@
} }
@layer components { @layer components {
.page-nav li:not(:first-child) {
@apply ms-2 border-s border-zinc-600 ps-2 dark:border-zinc-400;
}
.link-github { .link-github {
@apply bg-github hover:bg-github-hover text-white; @apply bg-github hover:bg-github-hover text-white;
} }