From 30308fba70cd408aa93acf709c4e413f8ef552ce Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 20 Oct 2024 20:05:22 +0200 Subject: [PATCH] chore: remove unused components Signed-off-by: Sefa Eyeoglu --- src/components/ButtonLink.astro | 14 ----------- src/components/IconLink.astro | 2 +- src/components/ProjectEntry.astro | 39 ------------------------------- src/components/TextSpinner.astro | 22 ----------------- 4 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 src/components/ButtonLink.astro delete mode 100644 src/components/ProjectEntry.astro delete mode 100644 src/components/TextSpinner.astro diff --git a/src/components/ButtonLink.astro b/src/components/ButtonLink.astro deleted file mode 100644 index 38dc8da..0000000 --- a/src/components/ButtonLink.astro +++ /dev/null @@ -1,14 +0,0 @@ ---- -interface Props { - href: string; -} - -const props = Astro.props; ---- - - - - diff --git a/src/components/IconLink.astro b/src/components/IconLink.astro index 802db49..aacdce3 100644 --- a/src/components/IconLink.astro +++ b/src/components/IconLink.astro @@ -11,6 +11,6 @@ interface Props { const { href, iconName, class: className, large, ...rest } = Astro.props; --- -  diff --git a/src/components/ProjectEntry.astro b/src/components/ProjectEntry.astro deleted file mode 100644 index c0a9a98..0000000 --- a/src/components/ProjectEntry.astro +++ /dev/null @@ -1,39 +0,0 @@ ---- -import { type ImageMetadata } from "astro"; -import { Icon } from "astro-icon/components"; -import { Image } from "astro:assets"; -import ButtonLink from "../components/ButtonLink.astro"; - -interface Props { - image: ImageMetadata; - title: string; - description: string; - website?: string; - source?: string; -} - -const { image, title, description, website, source } = Astro.props; ---- - -
- {`${title} -

- {title} -

-

{description}

-
- { - website && ( - - Website - - ) - } - { - source && ( - // TODO: add Git icon - Source Code - ) - } -
-
diff --git a/src/components/TextSpinner.astro b/src/components/TextSpinner.astro deleted file mode 100644 index 0400c56..0000000 --- a/src/components/TextSpinner.astro +++ /dev/null @@ -1,22 +0,0 @@ -  - - -- 2.51.2