first commit

Made-with: Cursor
This commit is contained in:
Michilis
2026-04-01 02:46:53 +00:00
commit 76210db03d
126 changed files with 20208 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import { type HTMLAttributes, forwardRef } from "react";
import { cn } from "@/lib/utils";
interface CardProps extends HTMLAttributes<HTMLDivElement> {
hover?: boolean;
variant?: "low" | "default";
}
const Card = forwardRef<HTMLDivElement, CardProps>(
({ hover, variant = "low", className, children, ...rest }, ref) => (
<div
ref={ref}
className={cn(
"rounded-xl p-6",
variant === "low" ? "bg-surface-container-low" : "bg-surface-container",
hover && "hover:bg-surface-container-high transition-colors",
className
)}
{...rest}
>
{children}
</div>
)
);
Card.displayName = "Card";
export { Card, type CardProps };