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"; ---
- {alt} - {alt} + + { + image && alt && + ( + {alt} + {alt} + ) + } +
@@ -74,18 +90,24 @@ const { >
-

+

{title}

{description}

{ tags.map((tag) => ( @@ -110,8 +132,7 @@ const { } @media (min-width: 1025px) { .image-container:hover > img { - transform: rotateY(0deg) rotateX(0deg) translateZ(0px) - translateX(-50%) translateY(-50%); + transform: rotateY(0deg) rotateX(0deg) translateZ(0px); } .image-container:hover > .visit-div { diff --git a/src/components/projects/ProjectRight.astro b/src/components/projects/ProjectRight.astro deleted file mode 100644 index ee932d7..0000000 --- a/src/components/projects/ProjectRight.astro +++ /dev/null @@ -1,121 +0,0 @@ ---- -import { Image } from "astro:assets"; - -interface Tag { - text: string; - textColor: string; - bgColor: string; -} - -interface Props { - image: ImageMetadata; - alt: string; - href: string; - title: string; - description: string; - label?: string; - tags?: Tag[]; -} - -const { - image, - alt, - href, - title, - description, - label = "View Repository", - tags, -} = Astro.props; ---- - -
-
-

- {title} -

-

- {description} -

-
- { - tags?.map((tag) => ( -
- {tag.text} -
- )) - } -
-
-
- {label} -
-
- {alt} - {alt} -
- -
-
-
- - diff --git a/src/components/projects/ProjectsComponent.astro b/src/components/projects/ProjectsComponent.astro index 0bbb9a2..2b246df 100644 --- a/src/components/projects/ProjectsComponent.astro +++ b/src/components/projects/ProjectsComponent.astro @@ -3,8 +3,7 @@ import TaskWidget from "./TaskWidget.svelte"; import CoworkingGuide from "../images/projects/coworking-guide.webp"; import Wnrs from "../images/projects/wnrs.webp"; import TwitchPlays from "../images/projects/twitchplays.webp"; -import ProjectLeft from "./ProjectLeft.astro"; -import ProjectRight from "./ProjectRight.astro"; +import Project from "./Project.astro"; ---
- -
-
-

- Chat-Task-Tic Widget -

-

- 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! -

-
-
- HTML -
-
- CSS -
-
- Javascript -
-
-
- - -
+ + + - -
-