update superpage

This commit is contained in:
2025-04-15 19:07:36 -03:00
parent 27769ba363
commit c702ca870b
24 changed files with 538 additions and 605 deletions

View File

@@ -1,30 +1,30 @@
import clsx from "clsx";
import clsx from 'clsx'
interface CardProps {
children: React.ReactNode;
color?: "gradient" | "darker" | "yellow" | "zinc";
className?: string | undefined;
children: React.ReactNode
color?: 'gradient' | 'darker' | 'yellow' | 'zinc'
className?: string | undefined
}
export function Card({ children, color = "gradient", className }: CardProps) {
export function Card({ children, color = 'gradient', className }: CardProps) {
const colorVariants = {
gradient: "bg-linear-to-tr from-green-secondary to-yellow-primary",
darker: "bg-green-primary text-white",
yellow: "text-green-primary bg-yellow-tertiary",
zinc: "text-white bg-zinc-900",
};
gradient: 'bg-linear-to-tr from-[#8CD366] via-[#C7D174] to-[#FFCF82]',
darker: 'bg-green-primary text-white',
yellow: 'text-green-primary bg-yellow-tertiary',
zinc: 'text-white bg-zinc-900',
}
return (
<div
className={clsx(
"lg:rounded-2xl",
"lg:drop-shadow-sm",
"p-3 lg:p-12",
'lg:rounded-2xl',
'lg:drop-shadow-sm',
'p-3 lg:p-12',
colorVariants[color],
className,
)}
>
{children}
</div>
);
)
}