import React from 'react'; import Image from 'next/image'; import Reveal from '@/components/Reveal'; import { Badge, Container, Heading } from '@/components/ui'; import { Button } from '@/components/ui/Button'; import { DrillOrbit } from '@/components/ui/decorations/DrillOrbit'; import { DrillBitSpinner } from '@/components/ui/decorations/DrillBitSpinner'; export interface HeroSectionProps { title: string; badge?: string; subtitle?: string; backgroundImage?: any; alignment?: 'left' | 'center'; ctaLabel?: string; ctaHref?: string; } export const HeroSection: React.FC = (props) => { const { title, badge, subtitle, backgroundImage, alignment, ctaLabel, ctaHref } = props; const bgSrc = backgroundImage?.sizes?.card?.url || backgroundImage?.url; return (
{bgSrc && (
{title
)}
{badge && ( {badge} )} {title} {subtitle && (

{subtitle}

)} {ctaLabel && ctaHref && (
)}
{/* Decorative: large abstract drill bit spinning slowly in background */}
{/* Decorative: abstract HDD bore trajectory */}
); };