Please use Desktop to view and interact with components
Blocks600mseaseOut
New Hero Section
Modern hero section with gradient background, animated stats, and call-to-action buttons
herolandingctastatsgradientshadcn
Useto navigate between components
Preview
Welcome to the Future
Transform Your Business
With Innovation
We help businesses grow faster with cutting-edge solutions and exceptional service. Join thousands of satisfied customers.
10K+
Happy Customers
500+
Projects Completed
99%
Satisfaction Rate
This component requires shadcn/ui
This component uses shadcn/ui components. Make sure you have shadcn/ui set up in your project.
- Install shadcn/ui:
npx shadcn-ui@latest init - Install required components based on the imports in the code (e.g.,
npx shadcn-ui@latest add button) - Ensure your
tailwind.config.tsandglobals.cssare configured as per shadcn/ui documentation
Code
TypeScript + React
'use client'
import { motion } from 'framer-motion'
import { Button } from '@/components/ui/button'
import { ArrowRight, Play, Sparkles } from 'lucide-react'
export function NewHeroSection() {
const containerVariants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.2,
delayChildren: 0.3,
},
},
}
const itemVariants = {
hidden: { opacity: 0, y: 30 },
visible: {
opacity: 1,
y: 0,
transition: { duration: 0.6, ease: 'easeOut' },
},
}
const floatingVariants = {
animate: {
y: [0, -10, 0],
transition: {
duration: 3,
repeat: Infinity,
ease: 'easeInOut',
},
},
}
return (
<section className="relative overflow-hidden bg-gradient-to-br from-background via-background to-primary/5 px-4 py-20 md:py-32">
<div className="mx-auto max-w-7xl">
<motion.div
variants={containerVariants}
initial="hidden"
animate="visible"
className="relative z-10 text-center"
>
<motion.div variants={itemVariants} className="mb-6">
<span className="inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/10 px-4 py-2 text-sm font-medium text-primary">
<Sparkles className="h-4 w-4" />
Welcome to the Future
</span>
</motion.div>
<motion.h1
variants={itemVariants}
className="mb-6 text-4xl font-bold tracking-tight md:text-6xl lg:text-7xl"
>
Transform Your Business
<br />
<span className="bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent">
With Innovation
</span>
</motion.h1>
<motion.p
variants={itemVariants}
className="mx-auto mb-10 max-w-2xl text-lg text-muted-foreground md:text-xl"
>
We help businesses grow faster with cutting-edge solutions and
exceptional service. Join thousands of satisfied customers.
</motion.p>
<motion.div
variants={itemVariants}
className="flex flex-col items-center justify-center gap-4 sm:flex-row"
>
<Button size="lg" className="group gap-2">
Get Started
<ArrowRight className="h-4 w-4 transition-transform group-hover:translate-x-1" />
</Button>
<Button size="lg" variant="outline" className="group gap-2">
<Play className="h-4 w-4" />
Watch Demo
</Button>
</motion.div>
<motion.div
variants={floatingVariants}
animate="animate"
className="mt-16 flex items-center justify-center gap-8 text-sm text-muted-foreground"
>
<div className="text-center">
<div className="text-2xl font-bold text-foreground">10K+</div>
<div>Happy Customers</div>
</div>
<div className="h-8 w-px bg-border" />
<div className="text-center">
<div className="text-2xl font-bold text-foreground">500+</div>
<div>Projects Completed</div>
</div>
<div className="h-8 w-px bg-border" />
<div className="text-center">
<div className="text-2xl font-bold text-foreground">99%</div>
<div>Satisfaction Rate</div>
</div>
</motion.div>
</motion.div>
</div>
</section>
)
}
How to Use
- 1Install Framer Motion:
npm install framer-motion - 2Set up shadcn/ui: Install shadcn/ui components used in this code. Check the imports in the code above and install the required components (e.g.,
npx shadcn-ui@latest add button card) - 3Copy the code from above
- 4Paste it into your project and customize as needed
- 5Colors are customizable via Tailwind CSS classes. The default theme uses dark mode colors defined in your globals.css file