Heroes & banners
Split Hero with Visual Panel
A two column hero with heading and buttons on the left and a decorative gradient panel with an icon on the right.
<section class="herosplit-hero">
<div class="herosplit-left">
<h1 class="herosplit-title">Ship your first project this week</h1>
<p class="herosplit-subtitle">Follow guided, bite sized lessons and get instant feedback as you write real HTML, CSS and JavaScript.</p>
<button class="herosplit-btn">Create Free Account</button>
</div>
<div class="herosplit-right">
<svg viewBox="0 0 24 24" width="72" height="72" fill="none" stroke="#ffffff" stroke-width="1.5">
<rect x="3" y="4" width="18" height="14" rx="2"></rect>
<line x1="3" y1="9" x2="21" y2="9"></line>
<circle cx="6" cy="6.5" r="0.6"></circle>
<circle cx="8.5" cy="6.5" r="0.6"></circle>
</svg>
</div>
</section>
.herosplit-hero {
box-sizing: border-box;
width: 100%;
max-width: 800px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
gap: 30px;
align-items: center;
padding: 50px 24px;
background-color: #ffffff;
font-family: system-ui, -apple-system, sans-serif;
}
.herosplit-left {
flex: 1 1 300px;
}
.herosplit-title {
margin: 0 0 14px;
font-size: 32px;
font-weight: 800;
line-height: 1.2;
color: #111827;
}
.herosplit-subtitle {
margin: 0 0 24px;
font-size: 15px;
line-height: 1.6;
color: #6b7280;
}
.herosplit-btn {
background-color: #3b82f6;
color: #ffffff;
border: none;
padding: 13px 26px;
border-radius: 8px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s ease, background-color 0.2s ease;
}
.herosplit-btn:hover {
background-color: #2f6fe0;
transform: translateY(-2px);
}
.herosplit-right {
flex: 1 1 220px;
min-height: 220px;
border-radius: 16px;
background: linear-gradient(135deg, #3b82f6, #1e3a8a);
display: flex;
align-items: center;
justify-content: center;
}