From cb53ad26f45fa9bdcd79e13a258ca9e2bf6ef967 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Fri, 20 Jun 2025 12:24:01 +1000 Subject: [PATCH] project component --- src/components/projects/ProjectLeft.astro | 123 ++++++++ src/components/projects/ProjectRight.astro | 121 ++++++++ .../projects/ProjectsComponent.astro | 291 ++++-------------- .../sections/skills/MoreSkills.astro | 103 ------- 4 files changed, 311 insertions(+), 327 deletions(-) create mode 100644 src/components/projects/ProjectLeft.astro create mode 100644 src/components/projects/ProjectRight.astro delete mode 100644 src/components/sections/skills/MoreSkills.astro diff --git a/src/components/projects/ProjectLeft.astro b/src/components/projects/ProjectLeft.astro new file mode 100644 index 0000000..7792143 --- /dev/null +++ b/src/components/projects/ProjectLeft.astro @@ -0,0 +1,123 @@ +--- +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; +--- + +
+
+ {alt} + {alt} +
+ +
+
+
+ {label} +
+
+

+ {title} +

+

+ {description} +

+
+ { + tags.map((tag) => ( +
+ {tag.text} +
+ )) + } +
+
+
+ + diff --git a/src/components/projects/ProjectRight.astro b/src/components/projects/ProjectRight.astro new file mode 100644 index 0000000..ee932d7 --- /dev/null +++ b/src/components/projects/ProjectRight.astro @@ -0,0 +1,121 @@ +--- +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 a701f2c..0bbb9a2 100644 --- a/src/components/projects/ProjectsComponent.astro +++ b/src/components/projects/ProjectsComponent.astro @@ -1,9 +1,10 @@ --- import TaskWidget from "./TaskWidget.svelte"; -import { Image } from "astro:assets"; 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"; ---
-
-
- coworking guide - coworking guide - -
- -
-

- Coworking Guide -

-

- A guide to coworking streams for streamers, covers wide - range of topics from tips on how to get started with setting - up stream to how to grow your audience! -

-
-
- Astro -
-
- TypeScript -
-
- Markdown -
-
-
-
+
@@ -136,154 +85,48 @@ import TwitchPlays from "../images/projects/twitchplays.webp";
-
-
- Hex Guess - Hex Guess - -
- -
-

- We're Not Really Strangers -

-

- Otherwise abbreviated as "WNRS", this is a digital - adaptation of the popular card game designed to foster - meaningful connections through engaging questions and - prompts. -

-
-
- React -
-
- Typescript -
-
-
-
-
-
-

- Twitch Plays X -

-

- Allow Twitch chatters to play games such as Pokemon! + + -

-
- Python -
-
- win32API -
-
-
- -
- Twitch Plays X - Twitch Plays X - -
-
+ corresponding keypresses.`} + tags={[ + { + text: "win32API", + bgColor: "var(--color-win32api)", + textColor: "white", + }, + { + text: "Python", + bgColor: "var(--color-python)", + textColor: "white", + }, + ]} + />
diff --git a/src/components/sections/skills/MoreSkills.astro b/src/components/sections/skills/MoreSkills.astro deleted file mode 100644 index 773bda2..0000000 --- a/src/components/sections/skills/MoreSkills.astro +++ /dev/null @@ -1,103 +0,0 @@ ---- -import Card from "../global/Card.astro"; -import Line from "../global/NetworkLine.astro"; ---- - -
-
-
- -
- -
-
-

Content Creation

-
-
-

- Since I was little, I loved watching YouTube videos - and the idea of bringing joy and laughter to a wider - audience. Thus, I began my journey in content - creation through YouTube videos and Twitch - streaming. I typically do coworking & study streams - to keep myself accountable and encourage - productivity amongst viewers. I also do software and - game development streams where I showcase my - workflow. -

-
-
- OBS -
-
- DaVinci Resolve -
-
- Twitch -
-
- YouTube -
-
-
-
-
- -
- -
-
-

- Mobile Development -

-
-
-

- In my Mobile App Development unit in University, I - am tasked to develop Android apps using Android - Studio. The final app project I had developed was a - LLM-powered quiz app with features such as choosing - your own topics, viewing your question attempt - history afterwards, and upgrading your tier with - Google Pay. -

-

- The marking tutor was impressed with my work, and - offered me to join a research lab because I had good - potential. -

-
-
- Android -
-
- Java -
-
- Kotlin -
-
-
-
-
-
-
-