mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
✨ style: change in visual
This commit is contained in:
@@ -18,7 +18,7 @@ export function ContributorCard({ login, avatarUrl, contributions, profileUrl }:
|
||||
<img
|
||||
src={avatarUrl}
|
||||
alt={`${login}'s avatar`}
|
||||
className="w-16 h-16 rounded-full"
|
||||
className="w-24 h-24 rounded-full"
|
||||
/>
|
||||
<div>
|
||||
<h3 className="font-semibold text-gray-900">{login}</h3>
|
||||
|
@@ -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 (
|
||||
<motion.div
|
||||
whileHover={{ y: -5 }}
|
||||
className="bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200"
|
||||
whileHover={{ y: -5, scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
transition={{ type: 'spring', stiffness: 300 }}
|
||||
className="bg-white/80 backdrop-blur-sm p-6 rounded-lg border border-gray-200 shadow-lg hover:shadow-xl transition-shadow duration-300"
|
||||
>
|
||||
<h3 className="text-lg font-semibold text-gray-900">
|
||||
<h3 className="text-xl font-semibold text-gray-900">
|
||||
<a
|
||||
href={repo.html_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-cornflower-blue transition-colors"
|
||||
aria-label={`Visit ${repo.name} repository`}
|
||||
>
|
||||
{repo.name}
|
||||
</a>
|
||||
</h3>
|
||||
|
||||
|
||||
{repo.description && (
|
||||
<p className="mt-2 text-gray-600 line-clamp-2">{repo.description}</p>
|
||||
<p className="mt-2 text-gray-600 line-clamp-3">
|
||||
{repo.description}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="mt-4 flex items-center gap-4 text-sm text-gray-500">
|
||||
|
||||
<div className="mt-4 flex items-center gap-6 text-sm text-gray-500">
|
||||
{repo.language && (
|
||||
<span className="flex items-center gap-1">
|
||||
<span className="w-3 h-3 rounded-full bg-cornflower-blue" />
|
||||
{repo.language}
|
||||
<span className="w-3 h-3 rounded-full bg-cornflower-blue" aria-hidden="true" />
|
||||
<span>{repo.language}</span>
|
||||
</span>
|
||||
)}
|
||||
|
||||
|
||||
<span className="flex items-center gap-1">
|
||||
<Star className="h-4 w-4" />
|
||||
{repo.stargazers_count}
|
||||
<Star className="h-5 w-5 text-yellow-500" />
|
||||
<span>{repo.stargazers_count}</span>
|
||||
</span>
|
||||
|
||||
|
||||
<span className="flex items-center gap-1">
|
||||
<GitFork className="h-4 w-4" />
|
||||
{repo.forks_count}
|
||||
<GitFork className="h-5 w-5 text-gray-600" />
|
||||
<span>{repo.forks_count}</span>
|
||||
</span>
|
||||
|
||||
|
||||
<span className="flex items-center gap-1">
|
||||
<Clock className="h-4 w-4" />
|
||||
{formatDate(repo.updated_at)}
|
||||
<Clock className="h-5 w-5 text-gray-600" />
|
||||
<span>{formatDate(repo.updated_at)}</span>
|
||||
</span>
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user