From d2f28d2b7e7ed4422d1e44efe35e5d5396a7074c Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Sat, 21 Jun 2025 22:01:23 +1000 Subject: [PATCH] updated perspective code --- .../{ProjectLeft.astro => Project.astro} | 79 +++++++----- src/components/projects/ProjectRight.astro | 121 ------------------ .../projects/ProjectsComponent.astro | 100 +++++++-------- src/components/projects/TaskWidget.svelte | 101 ++------------- 4 files changed, 107 insertions(+), 294 deletions(-) rename src/components/projects/{ProjectLeft.astro => Project.astro} (57%) delete mode 100644 src/components/projects/ProjectRight.astro diff --git a/src/components/projects/ProjectLeft.astro b/src/components/projects/Project.astro similarity index 57% rename from src/components/projects/ProjectLeft.astro rename to src/components/projects/Project.astro index 7792143..c913b08 100644 --- a/src/components/projects/ProjectLeft.astro +++ b/src/components/projects/Project.astro @@ -8,8 +8,9 @@ interface Tag { } interface Props { - image: ImageMetadata; - alt: string; + position?: "left" | "right"; + image?: ImageMetadata; + alt?: string; href: string; title: string; description: string; @@ -25,35 +26,50 @@ const { description, label = "View Repository", tags = [], + position = "left", } = Astro.props; + +const leftProject = position == "left"; ---
{description}
- {description} -
-- Used by 100+ Twitch streamers, allow viewers and streamers - to add their own tasks to the widget for accountability! - Easy to setup and the customization possibilities are - endless! -
-