From dfc2c6a70eaaeb605eb4b48c539d8edee48a0264 Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Sat, 17 Aug 2024 18:34:35 +0200 Subject: [PATCH] feat: refactor social icons --- src/components/Footer.astro | 37 +++++++---------------------- src/components/Header.astro | 27 +++++++-------------- src/components/social/github.astro | 13 ++++++++++ src/components/social/x.astro | 20 ++++++++++++++++ src/components/social/youtube.astro | 17 +++++++++++++ 5 files changed, 66 insertions(+), 48 deletions(-) create mode 100644 src/components/social/github.astro create mode 100644 src/components/social/x.astro create mode 100644 src/components/social/youtube.astro diff --git a/src/components/Footer.astro b/src/components/Footer.astro index cfdf637..7428260 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,4 +1,8 @@ --- +import Github from "./social/github.astro"; +import X from "./social/x.astro"; +import Youtube from "./social/youtube.astro"; + const currentYear = new Date().getFullYear(); --- @@ -7,34 +11,9 @@ const currentYear = new Date().getFullYear(); © {currentYear} Lars Hampe. All rights reserved. Imprint -
- - Follow Lars Hampe on Twitter - - - - Go to Lars Hampes GitHub profile - - +
+ + +
diff --git a/src/components/Header.astro b/src/components/Header.astro index 3046e11..bb072b5 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,35 +1,24 @@ --- import HeaderLink from "./HeaderLink.astro"; import { SITE_TITLE } from "../consts"; +import X from "./social/x.astro"; +import Github from "./social/github.astro"; +import Youtube from "./social/youtube.astro"; ---
diff --git a/src/components/social/github.astro b/src/components/social/github.astro new file mode 100644 index 0000000..bff3606 --- /dev/null +++ b/src/components/social/github.astro @@ -0,0 +1,13 @@ +--- +const { size = 24 } = Astro.props; +--- + + + Go to Lars Hampes GitHub profile + + diff --git a/src/components/social/x.astro b/src/components/social/x.astro new file mode 100644 index 0000000..604b119 --- /dev/null +++ b/src/components/social/x.astro @@ -0,0 +1,20 @@ +--- +const { size = 24 } = Astro.props; +--- + + + Follow Lars Hampe on X + + + + diff --git a/src/components/social/youtube.astro b/src/components/social/youtube.astro new file mode 100644 index 0000000..d81300f --- /dev/null +++ b/src/components/social/youtube.astro @@ -0,0 +1,17 @@ +--- +const { size = 24 } = Astro.props; +--- + + + Subscribe to Lars Hampes YouTube channel + + + +