// components/HeroSectionModern.tsx
import React from "react";
import Image from "next/image";
import Button from "@/components/ui/Button"; // Use the updated Button
type HeroSectionProps = {
title: React.ReactNode; // Allow JSX like
subtitle: string;
buttonText: string;
buttonHref: string;
imageUrl?: string; // Optional image URL
// videoUrl?: string; // Optional video URL
};
const HeroSectionModern: React.FC = ({
title,
subtitle,
buttonText,
buttonHref,
imageUrl = "/hero-bg-2.jpg", // Default background image - MAKE SURE THIS EXISTS
}) => {
return (
// Use min-h-screen for full viewport height adjust if needed
//bg-[linear-gradient(to_right,#f0e18a,#f9f4c3,#ecd973)]
{/* Background Image/Video Layer */}
{imageUrl && (
)}
{/* TODO: Add video support if needed */}
{/* Gradient Overlay - Stronger on left, fades towards right */}
{/* Adjust gradient stops and colors based on light/dark mode */}
{/* Content Area (Takes up roughly half on desktop) */}
{" "}
{/* Container for padding */}
{/* Title - Using Primary color */}
{title}
{/* Subtitle - Using Foreground color */}
{subtitle}
{/* Button */}
{/* Optional: Right side visual area (mostly shows background now) */}
{/* You could add abstract shapes or other elements here if desired */}
{/* */}
);
};
export default HeroSectionModern;