From 38c8ce8013c2eef8b17a39283bafac32f9d0913b Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 11 Dec 2024 19:18:47 +0100 Subject: [PATCH] perf: insights and accessibility improved --- .github/workflows/deploy.yml | 1 + src/components/Button.astro | 5 +++-- src/components/Header.astro | 8 ++++---- src/components/PGP.astro | 2 +- src/layouts/Root.astro | 11 ++--------- src/pages/index.astro | 9 ++++----- 6 files changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 34022b9..3b02a5c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,3 +31,4 @@ jobs: strip_components: 1 source: "dist/" target: "/var/www" + rm: true diff --git a/src/components/Button.astro b/src/components/Button.astro index 544e6fb..89f9ee3 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -4,9 +4,10 @@ interface Props { link?: string; target?: string; className?: string; + ariaLabel?: string; } -const { type, link, target, className } = Astro.props; +const { type, link, target, className, ariaLabel } = Astro.props; --- { type === "button" && } { type === "link" && - + } diff --git a/src/components/Header.astro b/src/components/Header.astro index 4b1b5c9..0b1b49e 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -3,17 +3,17 @@ import Button from "./Button.astro"; import Icon from "./Icon.astro"; ---
- Picture of Simon Kovtyk + Picture of Simon Kovtyk

Simon Kovtyk

Software-Developer passionated in CI/CD, Architecture and Dev-Environments

- - -
diff --git a/src/components/PGP.astro b/src/components/PGP.astro index 4214d53..1b10113 100644 --- a/src/components/PGP.astro +++ b/src/components/PGP.astro @@ -43,7 +43,7 @@ import Icon from "./Icon.astro";

Public PGP Key

-