The Hero component serves as the main landing section of the ShipFree website, featuring a compelling value proposition and visual elements.
import HeroSection from "@/app/(site)/Hero";
export default function HomePage() {
return (
<div>
<HeroSection />
{/* Other sections */}
</div>
);
}
The Hero component is a self-contained component that doesn’t accept any props.
import Link from "next/link";
import { Zap } from "lucide-react";
import Image from "next/image";
const HeroSection = () => {
return (
<div className="bg-[#212121] min-h-screen text-white">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
{/* Hero content */}
</div>
</div>
);
};
export default HeroSection;
The component uses Tailwind CSS for:
Performance
Accessibility
Responsiveness
<HeroSection />
<div className="bg-gradient-to-b from-zinc-900 to-black">
<HeroSection />
</div>
While the component doesn’t accept props, you can customize it by:
Modifying Content
Styling Changes
Layout Adjustments
Navbar
- Usually placed above the HeroFeaturesSection
- Often follows the HeroMakerIntro
- Complements the Hero message