- Introduced multiple new components including AnimatedLink, Button, Calendar, Card, ColorSwatch, Divider, Filmstrip, FormContainer, FormField, GalleryCard, Heading, HeroOverlay, IdentitySection, ImmersionSection, NewArtistsSection, NewContactSection, NewHero, NewNavigation, Reveal, SectionLabel, StickySplit, and Toast. - Each component is designed with responsive layouts and customizable styles to improve the overall UI consistency and interactivity. - Implemented accessibility features and animations to enhance user engagement. This commit significantly expands the component library, providing a robust foundation for building a cohesive user interface.
29 lines
855 B
TypeScript
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 }
|