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); )} + +