Skip to content

Commit db5977a

Browse files
committed
fix: update Simple Icons slugs & show actual project screenshots when available
1 parent 1b6b5f4 commit db5977a

4 files changed

Lines changed: 30 additions & 8 deletions

File tree

src/App.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
const getProjectImage = (imageName: string) => {
5959
return projectImageMap[imageName] || defaultMetaImg;
6060
};
61+
62+
const screenshotMap: Record<string, string> = {
63+
"plinkk.png": plinkkImg,
64+
"HubGames.jpeg": hubgamesImg,
65+
"Jobi.png": jobiImg,
66+
"DA Site JO.png": joSurfImg
67+
};
6168
6269
// Tab state (only active in Preset mode)
6370
let activeTab = $state("about"); // 'about', 'resume', 'portfolio', 'contact'
@@ -330,7 +337,7 @@
330337
<div class="px-3 pt-3 pb-6 bg-white border border-slate-250 shadow-md rotate-[-1deg] mx-4 mt-5 mb-1 relative border-sketch z-10">
331338
<div class="tape-torn tape-{tapes[(i + 2) % tapes.length]} absolute top-[-8px] left-[25%] w-14 h-4.5 rotate-[-2deg] opacity-75"></div>
332339
<div class="w-full h-32 md:h-36 overflow-hidden bg-slate-50 border border-slate-200">
333-
<ProjectMockup category={project.category} />
340+
<ProjectMockup category={project.category} image={screenshotMap[project.image]} />
334341
</div>
335342
</div>
336343

src/lib/components/PresetView.svelte

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
import bootstrapLogo from "../../../assets/images/Bootstrap.svg";
1818
import tailwindLogo from "../../../assets/images/Tailwind.svg.png";
1919
20+
// Import project screenshots for Vite static bundling
21+
import plinkkImg from "../../../assets/images/plinkk.png";
22+
import hubgamesImg from "../../../assets/images/HubGames.jpeg";
23+
import jobiImg from "../../../assets/images/Jobi.png";
24+
import joSurfImg from "../../../assets/images/DA Site JO.png";
25+
2026
const logoMap: Record<string, string> = {
2127
"Postgresql_elephant.png": pgLogo,
2228
"MySQL.svg": mySqlLogo,
@@ -30,6 +36,13 @@
3036
"Tailwind.svg.png": tailwindLogo
3137
};
3238
39+
const screenshotMap: Record<string, string> = {
40+
"plinkk.png": plinkkImg,
41+
"HubGames.jpeg": hubgamesImg,
42+
"Jobi.png": jobiImg,
43+
"DA Site JO.png": joSurfImg
44+
};
45+
3346
// Filter featured projects for preset view
3447
const featuredProjects = projects.filter(p => p.featured);
3548
</script>
@@ -98,7 +111,7 @@
98111
<div class="px-2.5 pt-2.5 pb-5 bg-white border border-slate-200 shadow-md rotate-[1.5deg] mx-4 mt-5 mb-1 relative border-sketch z-10">
99112
<div class="tape-torn {['tape-pink', 'tape-green', 'tape-orange'][i % 3]} absolute top-[-8px] left-[30%] w-12 h-4 rotate-[1deg] opacity-75"></div>
100113
<div class="w-full h-28 overflow-hidden bg-slate-50 border border-slate-200">
101-
<ProjectMockup category={project.category} />
114+
<ProjectMockup category={project.category} image={screenshotMap[project.image]} />
102115
</div>
103116
</div>
104117

@@ -173,7 +186,7 @@
173186
{#if skill.type === 'img' && skill.icon && logoMap[skill.icon]}
174187
<img src={logoMap[skill.icon]} alt={skill.name} class="w-4 h-4 object-contain shrink-0" />
175188
{:else if skill.type === 'cdn' && skill.icon}
176-
<img src="https://cdn.simpleicons.org/{skill.icon}" alt={skill.name} class="w-4 h-4 object-contain shrink-0" />
189+
<img src={skill.icon.startsWith('http') ? skill.icon : `https://cdn.simpleicons.org/${skill.icon}`} alt={skill.name} class="w-4 h-4 object-contain shrink-0" />
177190
{:else}
178191
<span class="text-[var(--marker-color)] shrink-0 flex items-center justify-center">
179192
<Papicon icon={skill.icon || 'code'} size={13} />

src/lib/components/ProjectMockup.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<script lang="ts">
2-
let { category = "" }: { category?: string } = $props();
2+
let { category = "", image = "" }: { category?: string; image?: string } = $props();
33
</script>
44

5-
{#if category === "Web Development"}
5+
{#if image}
6+
<img src={image} alt="Aperçu du projet" class="w-full h-full object-cover" />
7+
{:else if category === "Web Development"}
68
<!-- Whiteboard Browser Mockup SVG -->
79
<svg viewBox="0 0 200 120" class="w-full h-full" xmlns="http://www.w3.org/2000/svg">
810
<!-- Outer window border -->

src/lib/data/resume.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const skillCategories: SkillCategory[] = [
148148
{ name: "Angular", icon: "angular", type: "cdn" },
149149
{ name: "Next.js", icon: "nextdotjs", type: "cdn" },
150150
{ name: "HTML5", icon: "html5", type: "cdn" },
151-
{ name: "CSS3", icon: "css3", type: "cdn" },
151+
{ name: "CSS3", icon: "css", type: "cdn" },
152152
{ name: "JavaScript", icon: "javascript", type: "cdn" },
153153
{ name: "TailwindCSS", icon: "tailwindcss", type: "cdn" },
154154
{ name: "Bootstrap", icon: "bootstrap", type: "cdn" }
@@ -193,9 +193,9 @@ export const skillCategories: SkillCategory[] = [
193193
name: "Design & Outils",
194194
skills: [
195195
{ name: "Figma", icon: "figma", type: "cdn" },
196-
{ name: "Canva", icon: "canva", type: "cdn" },
196+
{ name: "Canva", icon: "https://cdn.jsdelivr.net/npm/simple-icons@14.0.0/icons/canva.svg", type: "cdn" },
197197
{ name: "GlooMaps", icon: "map-pin", type: "lucide" },
198-
{ name: "Suite Microsoft Office", icon: "microsoft", type: "cdn" },
198+
{ name: "Suite Microsoft Office", icon: "https://cdn.jsdelivr.net/npm/simple-icons@11.0.0/icons/microsoft.svg", type: "cdn" },
199199
{ name: "Scene Builder", icon: "layout", type: "lucide" },
200200
{ name: "Visual Paradigm", icon: "layers", type: "lucide" },
201201
{ name: "Git", icon: "git", type: "cdn" }

0 commit comments

Comments
 (0)