26 lines
708 B
TypeScript
Raw Normal View History

2024-04-16 16:57:15 -04:00
import { cn } from "@/lib/utils"
2024-04-18 14:42:47 -04:00
import Link from "next/link"
2024-04-16 16:57:15 -04:00
export default function ProjectCard({
children,
2024-04-18 14:42:47 -04:00
id,
2024-04-16 16:57:15 -04:00
className,
}: {
children: React.ReactNode
2024-04-18 14:42:47 -04:00
id: string
2024-04-16 16:57:15 -04:00
className?: string
}) {
return (
2024-04-18 14:42:47 -04:00
<Link
href={`/code/${id}`}
2024-04-16 16:57:15 -04:00
className={cn(
2024-04-18 03:06:51 -04:00
"rounded-lg border bg-card text-card-foreground shadow h-48 p-[1px] gradient-project-card-bg cursor-pointer transition-all focus-visible:outline-none focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:ring-2 focus-visible:ring-ring"
2024-04-16 16:57:15 -04:00
)}
>
<div className="rounded-[7px] p-4 h-full flex flex-col justify-between gradient-project-card">
{children}
</div>
2024-04-18 14:42:47 -04:00
</Link>
2024-04-16 16:57:15 -04:00
)
}