feat (v1.0.0): initial refactor and redesign

This commit is contained in:
Aidan 2025-10-09 04:12:05 -04:00
parent 3058aa1ab4
commit fe9b50b30e
134 changed files with 17792 additions and 3670 deletions

32
components/ui/Section.tsx Normal file
View file

@ -0,0 +1,32 @@
import { ReactNode } from 'react'
import { cn, surfaces } from '@/lib/theme'
interface SectionProps {
children: ReactNode
variant?: keyof typeof surfaces.section
className?: string
id?: string
title?: ReactNode
}
export function Section({
children,
variant = 'default',
className,
id,
title
}: SectionProps) {
return (
<section
id={id}
className={cn(surfaces.section[variant], className)}
>
{title && (
<h2 className="text-2xl font-semibold mb-4 text-gray-200">
{title}
</h2>
)}
{children}
</section>
)
}