From 9012debcfe043b6b4569a95a5dfe61e76d8527bd Mon Sep 17 00:00:00 2001 From: Valentijn Date: Wed, 22 Apr 2026 20:22:08 +0200 Subject: [PATCH] finished skills + studies section. + responsiveness --- astro.config.mjs | 5 +- src/components/Studies/Page.astro | 186 ++++++++++----------- src/components/Studies/SkillChart.astro | 55 ++++++ src/components/Studies/StudyBox.astro | 8 +- src/components/Studies/StudyBoxTitle.astro | 90 ++++++++++ src/data/site.ts | 20 +++ 6 files changed, 259 insertions(+), 105 deletions(-) create mode 100644 src/components/Studies/SkillChart.astro create mode 100644 src/components/Studies/StudyBoxTitle.astro diff --git a/astro.config.mjs b/astro.config.mjs index ccc9bf5..a3a14e2 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,5 +4,8 @@ import icon from "astro-icon" // https://astro.build/config export default defineConfig({ - integrations:[icon()] + integrations:[icon()], + server: { + allowedHosts: ["bag-valium-thee-distinct.trycloudflare.com"] + } }); diff --git a/src/components/Studies/Page.astro b/src/components/Studies/Page.astro index 1c213a5..e78cb7d 100644 --- a/src/components/Studies/Page.astro +++ b/src/components/Studies/Page.astro @@ -1,24 +1,26 @@ --- import { siteData } from '../../data/site'; import StudyBox from './StudyBox.astro'; +import StudyBoxTitle from './StudyBoxTitle.astro'; +import SkillChart from './SkillChart.astro'; const studies = [...siteData.studies]; const sortedStudies = studies.sort((a, b) => b.start.getTime() - a.start.getTime()); ---
- +
+ +
+ {sortedStudies.map((study) => ( ))} @@ -27,103 +29,85 @@ const sortedStudies = studies.sort((a, b) => b.start.getTime() - a.start.getTime
\ No newline at end of file diff --git a/src/components/Studies/SkillChart.astro b/src/components/Studies/SkillChart.astro new file mode 100644 index 0000000..c19a37d --- /dev/null +++ b/src/components/Studies/SkillChart.astro @@ -0,0 +1,55 @@ +--- +const { skills } = Astro.props; + +interface Skill { + name: string; + level: number; +} +--- + +
+ {skills.map((skill: Skill) => ( +
+ {skill.name} +
+ +
+
+ ))} +
+ + \ No newline at end of file diff --git a/src/components/Studies/StudyBox.astro b/src/components/Studies/StudyBox.astro index 86ae046..48eaefd 100644 --- a/src/components/Studies/StudyBox.astro +++ b/src/components/Studies/StudyBox.astro @@ -1,5 +1,7 @@ --- const { study } = Astro.props; + +const color: string = study.color ---
@@ -25,7 +27,7 @@ const { study } = Astro.props;
- \ No newline at end of file diff --git a/src/data/site.ts b/src/data/site.ts index 87bd2e7..6150028 100644 --- a/src/data/site.ts +++ b/src/data/site.ts @@ -2,6 +2,24 @@ export const siteData = { name: "Valentijn van der Jagt", email: "valentijnkijkuit@outlook.com", birthDate: new Date("2006-06-27"), + skills: [ + { + name: "C++ / Arduino", + level: 7 + }, + { + name: "Java", + level: 6 + }, + { + name: "Python", + level: 8 + }, + { + name: "Web Development", + level: 5 + } + ], studies: [ { school: "Hogeschool Rotterdam", @@ -10,6 +28,7 @@ export const siteData = { label: "Student Technische Informatica", start: new Date("2025-09-01"), end: null, + color: "#D3104C" }, { school: "Grafisch Lyceum Rotterdam", @@ -18,6 +37,7 @@ export const siteData = { label: "Student Software Developer", start: new Date("2021-09-01"), end: new Date("2025-06-18"), + color: "#8FE508" } ] } \ No newline at end of file