From a423289becc9d04437d366f9b971fa5e355e75a9 Mon Sep 17 00:00:00 2001 From: cupadev-admin Date: Mon, 9 Mar 2026 19:01:03 +0000 Subject: [PATCH] fix: apply designer agent improvements to src/components/ui/Card.tsx --- src/components/ui/Card.tsx | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/components/ui/Card.tsx diff --git a/src/components/ui/Card.tsx b/src/components/ui/Card.tsx new file mode 100644 index 0000000..e823933 --- /dev/null +++ b/src/components/ui/Card.tsx @@ -0,0 +1,62 @@ +import React from 'react' +import clsx from 'clsx' + +interface CardProps extends React.HTMLAttributes { + hover?: boolean + padding?: 'none' | 'sm' | 'md' | 'lg' +} + +const paddingClasses = { + none: '', + sm: 'p-4', + md: 'p-5', + lg: 'p-6', +} + +export function Card({ hover, padding = 'md', className, children, ...props }: CardProps) { + return ( +
+ {children} +
+ ) +} + +export function CardHeader({ className, children, ...props }: React.HTMLAttributes) { + return ( +
+ {children} +
+ ) +} + +export function CardTitle({ className, children, ...props }: React.HTMLAttributes) { + return ( +

+ {children} +

+ ) +} + +export function CardDescription({ className, children, ...props }: React.HTMLAttributes) { + return ( +

+ {children} +

+ ) +} + +export function CardFooter({ className, children, ...props }: React.HTMLAttributes) { + return ( +
+ {children} +
+ ) +}