From d612d159f0ef47c7c3efd21ed5244d923d225d20 Mon Sep 17 00:00:00 2001
From: liyunze <50455574+liyunze-coding@users.noreply.github.com>
Date: Sat, 21 Jun 2025 23:13:43 +1000
Subject: [PATCH] added video project component
---
src/components/projects/MoreProjects.svelte | 257 ++++--------------
src/components/projects/Project.astro | 2 +-
.../projects/ProjectsComponent.astro | 23 +-
src/components/projects/VideoProject.svelte | 149 ++++++++++
4 files changed, 229 insertions(+), 202 deletions(-)
create mode 100644 src/components/projects/VideoProject.svelte
diff --git a/src/components/projects/MoreProjects.svelte b/src/components/projects/MoreProjects.svelte
index 71aabaf..9722a78 100644
--- a/src/components/projects/MoreProjects.svelte
+++ b/src/components/projects/MoreProjects.svelte
@@ -1,206 +1,65 @@
-
-
-
-
-
-
-
-
-
-
-
- Computer Vision Chess bot
-
-
- A script that plays against opponents on lichess. Uses
- OpenCV to detect the board and pieces, and the Stockfish
- chess engine to determine the best moves. Then uses
- PyAutoGUI to play the moves on the browser.
-
-
-
- Python
-
-
- OpenCV
-
-
- PyAutoGUI
-
-
-
-
-
-
-
- Computer Vision AimLab Bot
-
-
- A script that plays AimLab, a game that helps improve your
- aim in FPS games. Uses OpenCV to detect the targets and
- win32API to move the mouse and click.
-
-
-
- Python
-
-
- OpenCV
-
-
- win32API
-
-
-
-
-
-
-
-
-
-
+
+
-
-
diff --git a/src/components/projects/Project.astro b/src/components/projects/Project.astro
index c913b08..648ce82 100644
--- a/src/components/projects/Project.astro
+++ b/src/components/projects/Project.astro
@@ -52,7 +52,7 @@ const leftProject = position == "left";
border-2 border-solid border-white rounded-xl`}
class:list={leftProject
? "[transform:translateX(50px)_translateY(5px)_rotateY(5deg)_rotateX(0deg)_translateZ(-50px)]"
- : "[transform:translateZ(-50px)_rotateY(-3deg)]"}
+ : "[transform:translateX(10px)_translateY(5px)_translateZ(-50px)_rotateY(-3deg)]"}
width="700"
/>
.image-container img,
- .image-container .widget {
+ .image-container .widget,
+ .image-container video {
transition: transform 0.5s ease-in-out;
}
@media (min-width: 1025px) {
.image-container:hover > img,
- .image-container:hover .widget {
+ .image-container:hover .widget,
+ .image-container:hover video {
transform: rotateY(0deg) rotateX(0deg) translateZ(0px) translateX(0)
translateY(0);
}
diff --git a/src/components/projects/VideoProject.svelte b/src/components/projects/VideoProject.svelte
new file mode 100644
index 0000000..922657c
--- /dev/null
+++ b/src/components/projects/VideoProject.svelte
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {title}
+
+
+ {description}
+
+
+ {#each tags as tag}
+
+ {tag.text}
+
+ {/each}
+
+
+