From 788408b155c7b2228b34a966656c80a3afb4a60c Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Sun, 10 Dec 2023 23:35:36 +0000 Subject: [PATCH] turn link arrow into component --- src/components/LinkArrow.astro | 18 ++++++++++++++++++ src/components/PostCard.astro | 6 ++++-- src/components/SocialLinks.astro | 5 +++-- src/data/presentation.ts | 2 +- 4 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 src/components/LinkArrow.astro diff --git a/src/components/LinkArrow.astro b/src/components/LinkArrow.astro new file mode 100644 index 0000000..7e15ca8 --- /dev/null +++ b/src/components/LinkArrow.astro @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro index 6917c88..6052899 100644 --- a/src/components/PostCard.astro +++ b/src/components/PostCard.astro @@ -1,5 +1,6 @@ --- import formatDate from "@/utils/formatDate"; +import LinkArrow from "./LinkArrow.astro"; type Props = { title: string; @@ -22,7 +23,7 @@ const { title, publishedAt, description, slug } = Astro.props;

{formatDate(publishedAt)}

- - + --> +
diff --git a/src/components/SocialLinks.astro b/src/components/SocialLinks.astro index 4c960bf..1b940d3 100644 --- a/src/components/SocialLinks.astro +++ b/src/components/SocialLinks.astro @@ -1,14 +1,15 @@ --- import Link from "./shared/Link.astro"; import presentation from "@/data/presentation"; +import LinkArrow from "@/components/LinkArrow.astro" ---