Showcase Section
Home
Snippets
Showcase Section
HTML
CSS
JS
<section class="section"> <div class="text"> <h1>Showcase Your Product</h1> <p>Create elegant product landing pages with floating UI elements, premium layouts, and smooth visuals.</p> <button class="btn">Explore Now</button> </div> <div class="visual"> <div class="phone"> <div class="screen"></div> </div> <div class="float-box box1">Fast Performance</div> <div class="float-box box2">Premium UI</div> </div> </section>
* { box-sizing: border-box; font-family: Arial, sans-serif; } body { margin: 0; min-height: 100vh; background: #020617; color: white; overflow-x: hidden; } .section { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 60px; gap: 60px; } .text h1 { font-size: 54px; margin: 0 0 20px; line-height: 1.1; } .text p { font-size: 18px; opacity: 0.75; max-width: 500px; margin-bottom: 25px; } .btn { padding: 14px 26px; border: none; border-radius: 12px; background: linear-gradient(135deg, #22c55e, #16a34a); color: white; font-weight: bold; cursor: pointer; } .visual { position: relative; height: 300px; width: 100%; } .phone { position: absolute; width: 220px; height: 320px; background: linear-gradient(135deg, #1e293b, #334155); border-radius: 30px; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 20px 50px rgba(0,0,0,0.45); overflow: hidden; } .screen { margin: 10px; height: calc(100% - 36px); border-radius: 22px; background: linear-gradient(180deg, #22c55e, #15803d); } .float-box { position: absolute; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.08); animation: float 4s ease-in-out infinite; font-size: 14px; } .box1 { top: 50px; left: 30px; } .box2 { bottom: 60px; right: 40px; animation-delay: 2s; } @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } @media (max-width: 900px) { .section { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; } .text h1 { font-size: 42px; } .text p { margin: 0 auto 25px; } .visual { height: 500px; margin-top: 20px; } } @media (max-width: 600px) { .text h1 { font-size: 34px; } .text p { font-size: 16px; } .phone { width: 250px; height: 340px; top: 30%; } .float-box { padding: 12px 16px; font-size: 12px; } .box1 { top: 20px; left: 10px; } .box2 { bottom: 230px; right: 10px; } }
//javascript
Ad #1
Ad #2
Scroll to Top