From a5a9346f993fee4da13759df0f029a318e0f810a Mon Sep 17 00:00:00 2001 From: r-freeman Date: Wed, 8 Feb 2023 21:38:41 +0000 Subject: [PATCH] Updated project card styling --- components/Card.tsx | 11 ++++++++++- pages/projects.tsx | 27 ++++++++------------------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/components/Card.tsx b/components/Card.tsx index 78b88b4..e3517bc 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -110,7 +110,16 @@ Card.Title = function CardTitle({as: Component = 'h2', href, children}: CardTitl Card.Description = function CardDescription({children, className}: CardDescription) { return ( -

+

{children}

) diff --git a/pages/projects.tsx b/pages/projects.tsx index e04a844..881f0c0 100644 --- a/pages/projects.tsx +++ b/pages/projects.tsx @@ -2,7 +2,6 @@ import {GetStaticProps} from 'next' import Head from 'next/head' import {Card} from '@/components/Card' import {SimpleLayout} from '@/components/layouts/SimpleLayout' -import {SocialLink} from '@/components/SocialLink' import {StarIcon} from '@/components/icons/StarIcon' import {ForkIcon} from '@/components/icons/ForkIcon' import {getPinnedRepos} from '@/lib/github' @@ -43,32 +42,22 @@ export default function Projects({pinnedRepos}: { pinnedRepos: Repo[] }) { {repo.description}
+ className="z-10 flex space-x-16 sm:space-x-0 sm:justify-between mt-8 items-center w-full group text-sm text-zinc-500 dark:text-zinc-400">

- {repo.primaryLanguage.name} + {repo.primaryLanguage.name}

-
+

- {numberFormat(repo.stargazerCount)} - + {numberFormat(repo.stargazerCount)} +

- {numberFormat(repo.forkCount)} - + {numberFormat(repo.forkCount)} +