- Implemented RestaurantPage with features, atmosphere, gallery, and contact CTA. - Created UeberUnsPage detailing the history, values, and team of Storfwirt. - Added AnimatedSection component for smooth animations on scroll. - Introduced ContactCTA component for event inquiries. - Developed ContactForm component for user inquiries with validation. - Created Footer and Header components for site navigation and branding. - Added PlaceholderImage and Section components for consistent layout. - Configured TypeScript settings in tsconfig.json for improved development experience.
14 lines
353 B
TypeScript
14 lines
353 B
TypeScript
interface SectionProps {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
id?: string;
|
|
}
|
|
|
|
export function Section({ children, className = "", id }: SectionProps) {
|
|
return (
|
|
<section id={id} className={`py-16 sm:py-20 lg:py-24 ${className}`}>
|
|
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">{children}</div>
|
|
</section>
|
|
);
|
|
}
|