diff --git a/src/app/projects/components/ProjectCard.tsx b/src/app/projects/components/ProjectCard.tsx index 1546d9ab..3d99c630 100644 --- a/src/app/projects/components/ProjectCard.tsx +++ b/src/app/projects/components/ProjectCard.tsx @@ -1,5 +1,7 @@ +'use client' import Link from "next/link"; import React from "react"; +import {useState} from 'react'; import github from "../../../../public/images/social-media/github.png"; import docs from "../../../../public/images/social-media/docs.svg"; import Image from "next/image"; @@ -24,66 +26,124 @@ export default function ProjectCard({ stars, tags, }: Props) { + const [showAllTags, setShowAllTags] = useState(false); + const [expandDescription, setExpandDescription] = useState(false); + return ( -
+ {shortDescription} +
+ {expandDescription && ( + less + )} +- {shortDescription} -
- {parentTitle !== "Upcoming Projects" && tags && tags.length > 0 && ( -