diff --git a/src/app/portifolio/ProjectsSection/ProjectCard.tsx b/src/app/portifolio/ProjectsSection/ProjectCard.tsx index 87e078e5..c3e65b62 100644 --- a/src/app/portifolio/ProjectsSection/ProjectCard.tsx +++ b/src/app/portifolio/ProjectsSection/ProjectCard.tsx @@ -7,6 +7,37 @@ interface Props { } export function ProjectCard({ data }: Props) { + const Title = () => ( +
+

{data.title}

+ + + + + {data.core_techs.map(coreTech => { + const TechIcon = techIcons[coreTech] + return ( + + + + ) + })} + +
+ ) + const Tags = () => ( +
+ {data.tags.map(tag => ( + + {tag} + + ))} +
+ ) + return (
{data.image && ( @@ -20,33 +51,9 @@ export function ProjectCard({ data }: Props) { )}
-
-

{data.title}

- - - - - {data.core_techs.map(coreTech => { - const TechIcon = techIcons[coreTech] - return ( - - - - ) - })} - -
+ <p className="text-justify md:text-left">{data.description}</p> - <div className="mt-10 md:mt-4 flex flex-wrap items-center justify-center md:justify-start gap-2"> - {data.tags.map(tag => ( - <span - key={tag} - className="text-blue-400 bg-blue-400/5 p-1 rounded-xl" - > - {tag} - </span> - ))} - </div> + <Tags /> </div> <div className="mt-9 flex flex-1 items-end justify-center gap-6"> {data.repository && (