- 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.
27 lines
722 B
TypeScript
27 lines
722 B
TypeScript
import * as React from "react"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
export interface HeroOverlayProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
|
const HeroOverlay = React.forwardRef<HTMLDivElement, HeroOverlayProps>(({ className, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className={cn(
|
|
"w-[min(620px,90vw)] p-[clamp(2rem,4vw,3.5rem)]",
|
|
"bg-[rgba(242,227,208,0.85)]",
|
|
"rounded-[24px]",
|
|
"border border-[rgba(36,27,22,0.08)]",
|
|
"shadow-[var(--shadow-lg)]",
|
|
"backdrop-blur-[12px] backdrop-saturate-[110%]",
|
|
"text-center",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
)
|
|
})
|
|
HeroOverlay.displayName = "HeroOverlay"
|
|
|
|
export { HeroOverlay }
|