Hero Section Generator
Create stunning landing page hero sections with customizable layouts, animations, and styles
Quick Presets
Layout
Content
Typography
Background
Colors
Button Styling
Animation
Preview
New Feature
Build Something Amazing Today
Create stunning landing pages in minutes with our powerful and intuitive tools. No coding required.
HTML
<section class="hero-section">
<div class="hero-container">
<div class="hero-content">
<span class="hero-badge">New Feature</span>
<h1 class="hero-headline">Build Something Amazing Today</h1>
<p class="hero-subheadline">Create stunning landing pages in minutes with our powerful and intuitive tools. No coding required.</p>
<div class="hero-buttons">
<a href="#" class="hero-btn-primary">Get Started</a>
<a href="#" class="hero-btn-secondary">Learn More</a>
</div>
</div>
</div>
</section>CSS
.hero-section {
min-height: 600px;
display: flex;
align-items: center;
justify-content: center;
padding: 80px 48px;
background: #ffffff;
position: relative;
overflow: hidden;
}
.hero-container {
max-width: 1200px;
width: 100%;
margin: 0 auto;
display: flex;
align-items: center;
gap: 60px;
text-align: center;
flex-direction: column;
}
.hero-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
}
.hero-badge {
display: inline-flex;
align-items: center;
padding: 6px 16px;
background: #eff6ff;
color: #3b82f6;
font-size: 14px;
font-weight: 500;
border-radius: 20px;
margin-bottom: 24px;
}
.hero-headline {
font-size: 56px;
font-weight: 700;
letter-spacing: -1px;
color: #1f2937;
margin: 0 0 24px 0;
line-height: 1.1;
}
.hero-subheadline {
font-size: 20px;
color: #6b7280;
margin: 0 0 40px 0;
line-height: 1.6;
max-width: 600px;
}
.hero-buttons {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
}
.hero-btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 14px 24px;
background: #3b82f6;
color: #ffffff;
font-size: 16px;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
}
.hero-btn-primary:hover {
opacity: 0.9;
transform: translateY(-2px);
}
.hero-btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 14px 24px;
background: transparent;
color: #3b82f6;
font-size: 16px;
font-weight: 600;
border: 2px solid #3b82f6;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
}
.hero-btn-secondary:hover {
background: #3b82f6;
color: #ffffff;
}
.hero-image {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
.hero-image-placeholder {
width: 100%;
max-width: 500px;
aspect-ratio: 4/3;
background: #f3f4f6;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
}
.hero-image-placeholder svg {
width: 80px;
height: 80px;
color: #9ca3af;
}
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * {
animation: heroFadeUp 0.6s ease-out forwards;
opacity: 0;
}
.hero-badge { animation-delay: 0s; }
.hero-headline { animation-delay: 0.1s; }
.hero-subheadline { animation-delay: 0.2s; }
.hero-buttons { animation-delay: 0.30000000000000004s; }
.hero-image { animation: heroFadeUp 0.6s ease-out 0.4s forwards; opacity: 0; }
/* Responsive */
@media (max-width: 768px) {
.hero-section {
padding: 60px 24px;
min-height: auto;
}
.hero-container {
flex-direction: column;
text-align: center;
}
.hero-headline {
font-size: 33.6px;
}
.hero-subheadline {
font-size: 17px;
}
.hero-buttons {
justify-content: center;
}
.hero-content {
align-items: center;
}
}React
import React from 'react';
import './HeroSection.css';
const HeroSection = () => {
return (
<section className="hero-section">
<div className="hero-container">
<div className="hero-content">
<span className="hero-badge">New Feature</span>
<h1 className="hero-headline">Build Something Amazing Today</h1>
<p className="hero-subheadline">Create stunning landing pages in minutes with our powerful and intuitive tools. No coding required.</p>
<div className="hero-buttons">
<a href="#" className="hero-btn-primary">Get Started</a>
<a href="#" className="hero-btn-secondary">Learn More</a>
</div>
</div>
</div>
</section>
);
};
export default HeroSection;