From 412e7033d12e74b215d36c2ae6f45c136de0de1c Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Tue, 10 Mar 2026 23:45:22 +0100 Subject: [PATCH] =?UTF-8?q?ProjectCard=20:=20glow=20au=20hover,=20titre=20?= =?UTF-8?q?plus=20grand,=20technos=20principales=20diff=C3=A9renci=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/code/ProjectCard.astro | 35 +++++++++++++++++++-------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/src/components/code/ProjectCard.astro b/src/components/code/ProjectCard.astro index 97604be..c0f5a46 100644 --- a/src/components/code/ProjectCard.astro +++ b/src/components/code/ProjectCard.astro @@ -14,28 +14,35 @@ const { title, description, technologies, featured = false, detailUrl, lang = 'f const isRtl = lang === 'ar'; const readMoreLabel = t('projects', 'readMore', lang); +const primaryTechs = technologies?.slice(0, 3) ?? []; +const secondaryTechs = technologies?.slice(3) ?? []; --- -
-

+
+

{title}

-

+

{description}

- {technologies && technologies.length > 0 && ( -
- {technologies.map((tech) => ( - + {(primaryTechs.length > 0 || secondaryTechs.length > 0) && ( +
+ {primaryTechs.map((tech) => ( + + {tech} + + ))} + {secondaryTechs.map((tech) => ( + {tech} ))} @@ -50,3 +57,11 @@ const readMoreLabel = t('projects', 'readMore', lang); )} + +