{
CF
}
Code
Fronts
Back to CSS Hero Sections
Terminal Dev Hero
Pure CSS
Edit any tab — preview updates live
CSS
HTML
Reset
Copy
.hs-term { width: 100%; min-height: clamp(220px, 28vh, 100vh); padding: clamp(20px, 4vh, 80px) clamp(16px, 4vw, 40px); background: #07070d; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 40px); align-items: center; font-family: system-ui, sans-serif; color: #f0eeff; } @media (max-width: 720px) { .hs-term { grid-template-columns: 1fr; } } .hs-term-eye { font-family: 'SF Mono', monospace; font-size: clamp(9px, 1.4vw, 11px); color: #2eb88a; letter-spacing: 0.06em; } .hs-term-l h1 { margin: 6px 0 8px; font-size: clamp(18px, 4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; } .hs-term-l p { margin: 0; font-size: clamp(11px, 1.5vw, 15px); color: #b8b6d4; } .hs-term-r { background: #0e0e16; border: 1px solid rgba(46,184,138,0.3); border-radius: 8px; padding: 10px 12px; font-family: 'SF Mono', monospace; font-size: clamp(10px, 1.4vw, 12.5px); box-shadow: 0 0 30px rgba(46,184,138,0.15); } .hs-term-bar { font-size: 9.5px; color: #6a6a85; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); } .hs-term-line { display: flex; align-items: center; gap: 6px; line-height: 1.6; } .hs-term-prompt { color: #2eb88a; } .hs-term-cmd { color: #f0eeff; display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: hs-term-type 2.4s steps(20, end) 0.3s forwards; } .hs-term-cur { width: 7px; height: 14px; background: #2eb88a; animation: hs-term-blink 1s step-end infinite; } .hs-term-out { color: #6a6a85; line-height: 1.7; opacity: 0; animation: hs-term-show 0.4s ease forwards; } .hs-term-out:nth-of-type(2) { animation-delay: 3s; } .hs-term-out:nth-of-type(3) { animation-delay: 3.4s; } .hs-term-ok { color: #2eb88a; } @keyframes hs-term-type { to { width: 100%; } } @keyframes hs-term-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } } @keyframes hs-term-show { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } } @media (prefers-reduced-motion: reduce) { .hs-term-cmd { width: 100%; animation: none; } .hs-term-cur, .hs-term-out { animation: none; opacity: 1; } }
<section class="hs-term"> <div class="hs-term-l"> <span class="hs-term-eye">$ open source</span> <h1>The CLI for modern teams.</h1> <p>One command to install. Three to ship.</p> </div> <div class="hs-term-r"> <div class="hs-term-bar">~/project</div> <div class="hs-term-line"> <span class="hs-term-prompt">$</span> <span class="hs-term-cmd">npx codefronts init</span> <span class="hs-term-cur"></span> </div> <div class="hs-term-out">✓ Installed 24 components</div> <div class="hs-term-out hs-term-ok">✓ Ready to ship</div> </div> </section>
Live preview
Ready