Nicholai bba1bab8c2 feat(components): initialize custom component library with foundational files
- Added essential configuration files including components.json, package.json, and tsconfig.json to establish the component library structure.
- Introduced global styles in globals.css and layout structure in layout.tsx for consistent design application.
- Implemented various UI components such as Accordion, AlertDialog, Button, Card, and more, enhancing the component library for future development.
- Included utility functions and hooks to support component functionality and responsiveness.

This commit sets up the groundwork for a comprehensive UI component library, facilitating a modular and scalable design system.
2025-11-25 03:01:30 -07:00

29 lines
855 B
TypeScript

import * as React from "react"
import { cn } from "@/lib/utils"
export interface MotionCardProps extends React.HTMLAttributes<HTMLDivElement> {
title: string
description: string
highlight?: "burnt" | "terracotta"
}
const MotionCard = React.forwardRef<HTMLDivElement, MotionCardProps>(
({ className, title, description, highlight = "burnt", ...props }, ref) => {
return (
<div
ref={ref}
className={cn("p-6 bg-white rounded-[18px]", "shadow-[var(--shadow-subtle)]", className)}
{...props}
>
<strong className={cn("block", highlight === "burnt" ? "text-[var(--burnt)]" : "text-[var(--terracotta)]")}>
{title}
</strong>
<p className="text-[0.9rem] mt-2 mb-0 opacity-80">{description}</p>
</div>
)
},
)
MotionCard.displayName = "MotionCard"
export { MotionCard }