This commit is contained in:
Vula Builder
2026-09-15 18:02:59 +00:00
parent 7d20d04964
commit 91ffbd0fb0
+60
View File
@@ -0,0 +1,60 @@
import React from "react"
import { cn } from "@/lib/utils"
interface CardProps {
className?: string
children: React.ReactNode
}
export function Card({ className, children }: CardProps) {
return (
<div
className={cn(
"rounded-lg border border-border bg-card text-foreground shadow-md transition-all duration-200 hover:-translate-y-1 hover:shadow-xl",
className
)}
>
{children}
</div>
)
}
export function CardHeader({ className, children }: CardProps) {
return (
<div className={cn("flex flex-col space-y-1.5 p-6", className)}>
{children}
</div>
)
}
export function CardTitle({ className, children }: CardProps) {
return (
<h3 className={cn("text-2xl font-semibold leading-tight tracking-tight text-foreground", className)}>
{children}
</h3>
)
}
export function CardDescription({ className, children }: CardProps) {
return (
<p className={cn("text-sm leading-relaxed text-muted-foreground", className)}>
{children}
</p>
)
}
export function CardContent({ className, children }: CardProps) {
return (
<div className={cn("p-6 pt-0", className)}>
{children}
</div>
)
}
export function CardFooter({ className, children }: CardProps) {
return (
<div className={cn("flex items-center p-6 pt-0", className)}>
{children}
</div>
)
}