From 5095a79758abb0d306d2d69c30f86eccd661b3c4 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Fri, 6 Jun 2025 21:50:52 +1000 Subject: [PATCH] added colours to theme --- src/components/elements/Card.astro | 134 ++++++++++-------- .../sections/ExperienceComponent.astro | 21 +-- src/components/sections/IntroComponent.svelte | 2 +- .../sections/ProjectsComponent.astro | 10 +- src/components/sections/SkillsComponent.astro | 84 +++++------ src/styles/global.css | 24 +++- svelte.config.js | 2 +- 7 files changed, 142 insertions(+), 135 deletions(-) diff --git a/src/components/elements/Card.astro b/src/components/elements/Card.astro index ef7b0d3..6da89e8 100644 --- a/src/components/elements/Card.astro +++ b/src/components/elements/Card.astro @@ -1,80 +1,94 @@ --- interface Props { - primaryColor: string; - bgColor?: string; - scaleOnHover?: boolean; - pixelHeight?: string; - className?: string; + primaryColor: string; + bgColor?: string; + scaleOnHover?: boolean; + pixelHeight?: string; + className?: string; } const { - primaryColor, - bgColor = "#282828", - scaleOnHover = false, - pixelHeight = "70px", - className = "", + primaryColor, + bgColor = "#282828", + scaleOnHover = false, + pixelHeight = "70px", + className = "", } = Astro.props; ---
- +
+ +
diff --git a/src/components/sections/ExperienceComponent.astro b/src/components/sections/ExperienceComponent.astro index 0f76169..4d4cc32 100644 --- a/src/components/sections/ExperienceComponent.astro +++ b/src/components/sections/ExperienceComponent.astro @@ -8,7 +8,7 @@ import Line from "../elements/NetworkLine.astro";
-
+

Bachelor of Computer Science student @@ -39,7 +39,7 @@ import Line from "../elements/NetworkLine.astro"; -
+

Lead Full Stack Developer @@ -65,7 +65,7 @@ import Line from "../elements/NetworkLine.astro"; -
+

Frontend Web Developer Intern @@ -98,18 +98,3 @@ import Line from "../elements/NetworkLine.astro";

- - diff --git a/src/components/sections/IntroComponent.svelte b/src/components/sections/IntroComponent.svelte index 0e7b2ed..fb09413 100644 --- a/src/components/sections/IntroComponent.svelte +++ b/src/components/sections/IntroComponent.svelte @@ -107,7 +107,7 @@ h-fit flex-col text-white" > -
+
HTML
@@ -199,12 +199,12 @@ import TwitchPlays from "./images/projects/twitchplays.webp"; class="mt-5 flex w-full flex-row flex-wrap justify-center lg:justify-start" >
React
Typescript
@@ -232,12 +232,12 @@ import TwitchPlays from "./images/projects/twitchplays.webp"; class="mt-5 flex w-full flex-row flex-wrap justify-center lg:justify-end" >
Python
win32API
diff --git a/src/components/sections/SkillsComponent.astro b/src/components/sections/SkillsComponent.astro index db432bb..7037e70 100644 --- a/src/components/sections/SkillsComponent.astro +++ b/src/components/sections/SkillsComponent.astro @@ -8,11 +8,11 @@ import Line from "../elements/NetworkLine.astro";
-
+

Frontend Development

-
+

I started my web development journey by building websites and widgets using vanilla HTML, CSS, Javascript @@ -20,9 +20,11 @@ import Line from "../elements/NetworkLine.astro"; web development, I delved into frontend frameworks such as Svelte, React and Astro.

-
+
HTML
@@ -37,17 +39,17 @@ import Line from "../elements/NetworkLine.astro"; Javascript
TypeScript
Svelte
React
@@ -57,7 +59,7 @@ import Line from "../elements/NetworkLine.astro"; Vue
WordPress
@@ -67,12 +69,12 @@ import Line from "../elements/NetworkLine.astro"; Astro
HTMX
TailwindCSS
@@ -81,65 +83,67 @@ import Line from "../elements/NetworkLine.astro"; -
+

Backend Development

-
+

With experience in various programming languages, I learnt to setup databases, implement routing and organized my code to ensure maintainability and scalability.

-
+
Python
C#
Java
Kotlin
PHP
Go
Rust
PostgreSQL
MySQL
MongoDB
@@ -148,11 +152,11 @@ import Line from "../elements/NetworkLine.astro"; -
+

Data Science

-
+

My first exposure to data science was through learning Computer Vision. I learn how to use OpenCV in Python to @@ -162,9 +166,11 @@ import Line from "../elements/NetworkLine.astro"; as extracting, transforming and loading data, as well as data visualisation.

-
+
Python
@@ -174,7 +180,7 @@ import Line from "../elements/NetworkLine.astro"; R
OpenCV
@@ -184,7 +190,7 @@ import Line from "../elements/NetworkLine.astro"; SAS
MySQL
@@ -209,23 +215,3 @@ import Line from "../elements/NetworkLine.astro";
- - diff --git a/src/styles/global.css b/src/styles/global.css index a461c50..80e6cc3 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -1 +1,23 @@ -@import "tailwindcss"; \ No newline at end of file +@import "tailwindcss"; + +@theme { + --color-html: #B11700; + --color-typescript: #3178C6; + --color-svelte: #B11700; + --color-react: #00D8FF; + --color-wordpress: #21759B; + --color-htmx: #3366CC; + --color-tailwind: #07B6D4; + --color-python: #3776AB; + --color-csharp: #672079; + --color-java: #ED8B00; + --color-kotlin: #7F52FF; + --color-php: #3D5694; + --color-go: #006080; + --color-rust: #B11700; + --color-postgresql: #4479A1; + --color-mysql: #1D6998; + --color-mongodb: #09934E; + --color-opencv: #10652F; + --color-win32api: #0078D4; +} \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 2a17bbb..3103bb9 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,7 +1,7 @@ import { vitePreprocess } from "@astrojs/svelte"; export default { - preprocess: vitePreprocess({script:true}), + preprocess: vitePreprocess(), compilerOptions: { },