diff --git a/src/app/projects/_components/project-info.tsx b/src/app/projects/_components/project-info.tsx deleted file mode 100644 index 49b09ecc..00000000 --- a/src/app/projects/_components/project-info.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { FiGithub } from 'react-icons/fi' -import { Project } from '#content' -import { techIcons } from './tech-icons' - -interface Props { - data: Project -} - -export function ProjectInfo({ data }: Props) { - const Title = () => ( -
-

{data.title}

- - {data.core_techs.map(coreTech => { - const TechIcon = techIcons[coreTech] - return ( - - - - ) - })} - -
- ) - const Tags = () => ( -
- {data.tags.map(tag => ( - - {tag} - - ))} -
- ) - - return ( -
-
- - <p className="text-justify md:text-left">{data.description}</p> - <Tags /> - </div> - <div> - <a - href={data.repository} - title="Repository" - target="_blank" - rel="noreferrer" - className="pointer-events-auto flex items-center gap-2 rounded-2xl border border-[#181717] p-4 text-[#181717] duration-300 hover:bg-[#181717] hover:text-[#F6F8FA] dark:border-[#F6F8FA] dark:text-[#F6F8FA] dark:hover:bg-[#F6F8FA] hover:dark:text-[#181717] md:text-2xl" - > - <span className="md:hidden">Repository</span> - <FiGithub /> - </a> - </div> - </div> - ) -} diff --git a/src/app/projects/page.tsx b/src/app/projects/page.tsx index 065c9f4c..54ecc2e9 100644 --- a/src/app/projects/page.tsx +++ b/src/app/projects/page.tsx @@ -2,9 +2,7 @@ import { ArrowUpRight } from '@phosphor-icons/react/dist/ssr' import { projects } from '#content' import { Title } from '~/components/title' - import { ProjectCard } from './_components/project-card' -import { ProjectInfo } from './_components/project-info' export default function Page() { const featuredProjects = projects @@ -30,10 +28,10 @@ export default function Page() { <ProjectCard data={project} key={project.slug} /> ))} </div> - <div className="space-y-6"> + <div className="grid grid-cols-2 gap-3 md:grid-cols-3"> {otherProjectsWithoutImage.length > 0 && otherProjectsWithoutImage.map(project => ( - <ProjectInfo data={project} key={project.slug} /> + <ProjectCard data={project} variant="compact" key={project.slug} /> ))} </div> <div className="flex justify-center md:justify-end">