// components/HeroSectionDynamic.tsx import React from "react"; import Image from "next/image"; import Button from "@/components/ui/Button"; // Use the updated Button import { FiArrowRight } from "react-icons/fi"; type HeroSectionProps = { title: React.ReactNode; // Allow JSX like subtitle: string; buttonText: string; buttonHref: string; imageUrl?: string; // Main background visual }; const HeroSectionDynamic: React.FC = ({ title, subtitle, buttonText, buttonHref, imageUrl = "/hero-bg-2.jpg", // Ensure this high-quality image exists }) => { return ( {/* Layer 1: Background Image/Gradient */} {imageUrl && ( )} {/* Fallback gradient if no image */} {/* */} {/* Subtle Vignette Effect */} {/* Layer 2: Floating Abstract Shapes (Subtle animation) */} {/* Shape 1 - Soft Primary Color Blob */} {/* Shape 2 - Outline Shape */} {/* Shape 3 - Small Accent */} {/* Layer 3: Content */} {" "} {/* Max width for content */} {/* Optional: Small "Eyebrow" text */} Owethu Managed Services {/* Title - Larger, bolder */} {/* Example gradient text - remove class if not desired */} {title} {/* Subtitle - Clear foreground color */} {subtitle} {/* Button - Primary variant */} {buttonText} ); }; export default HeroSectionDynamic;
Owethu Managed Services
{subtitle}