Spaces:
Runtime error
Runtime error
| import * as React from "react"; | |
| import { cn } from "@/lib/utils"; | |
| function Card({ className, ...props }: React.ComponentProps<"div">) { | |
| return ( | |
| <div | |
| className={cn( | |
| "rounded-[28px] border border-[var(--border)] bg-[var(--card)]/95 shadow-[0_24px_80px_-52px_rgba(46,30,18,0.5)] backdrop-blur text-right", | |
| className, | |
| )} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| function CardHeader({ className, ...props }: React.ComponentProps<"div">) { | |
| return ( | |
| <div | |
| className={cn("flex flex-col gap-2 px-5 py-5 sm:px-6", className)} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| function CardTitle({ className, ...props }: React.ComponentProps<"h3">) { | |
| return ( | |
| <h3 | |
| className={cn("text-xl font-semibold tracking-tight", className)} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| function CardDescription({ | |
| className, | |
| ...props | |
| }: React.ComponentProps<"p">) { | |
| return ( | |
| <p | |
| className={cn("text-sm leading-7 text-[var(--foreground-muted)]", className)} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| function CardContent({ className, ...props }: React.ComponentProps<"div">) { | |
| return <div className={cn("px-5 pb-5 sm:px-6", className)} {...props} />; | |
| } | |
| function CardFooter({ className, ...props }: React.ComponentProps<"div">) { | |
| return ( | |
| <div | |
| className={cn("flex items-center gap-3 px-5 pb-5 sm:px-6", className)} | |
| {...props} | |
| /> | |
| ); | |
| } | |
| export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }; | |