From 1b2aaf6015838810417e21b863f9763dfa1f3cf8 Mon Sep 17 00:00:00 2001 From: d3v1l0n Date: Wed, 25 Dec 2024 10:03:53 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20style:=20change=20in=20visual?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/developers/ContributorCard.tsx | 2 +- src/components/developers/RepoCard.tsx | 47 ++++++++++--------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/src/components/developers/ContributorCard.tsx b/src/components/developers/ContributorCard.tsx index 06eb834c..b1e17492 100644 --- a/src/components/developers/ContributorCard.tsx +++ b/src/components/developers/ContributorCard.tsx @@ -18,7 +18,7 @@ export function ContributorCard({ login, avatarUrl, contributions, profileUrl }: {`${login}'s

{login}

diff --git a/src/components/developers/RepoCard.tsx b/src/components/developers/RepoCard.tsx index 24265ddd..95210a93 100644 --- a/src/components/developers/RepoCard.tsx +++ b/src/components/developers/RepoCard.tsx @@ -1,7 +1,7 @@ import { motion } from 'framer-motion'; import { Star, GitFork, Clock } from 'lucide-react'; -import { formatDate } from '@/lib/utils'; -import type { GithubRepo } from '@/lib/github'; +import { formatDate } from '../../lib/utils'; +import type { GithubRepo } from '../../lib/github'; interface RepoCardProps { repo: GithubRepo; @@ -10,47 +10,52 @@ interface RepoCardProps { export function RepoCard({ repo }: RepoCardProps) { return ( -

+

{repo.name}

- + {repo.description && ( -

{repo.description}

+

+ {repo.description} +

)} - -
+ +
{repo.language && ( - - {repo.language} + )} - + - - {repo.stargazers_count} + + {repo.stargazers_count} - + - - {repo.forks_count} + + {repo.forks_count} - + - - {formatDate(repo.updated_at)} + + {formatDate(repo.updated_at)}
); -} \ No newline at end of file +}