Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- ====================================================================== CSS - Place this in your <head> or in an external stylesheet. ====================================================================== --> <style> :root { --grad-min-height: 500px; --grad-padding: 3rem 1.5rem; --grad-text-color: #ffffff; --grad-start-color: #6a11cb; --grad-end-color: #2575fc; --grad-cta-bg: #ffffff; --grad-cta-hover-bg: #f2f2f2; --grad-cta-text-color: #333333; } .gradient-hero { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; color: var(--grad-text-color); padding: var(--grad-padding); min-height: var(--grad-min-height); width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background-image: linear-gradient(135deg, var(--grad-start-color), var(--grad-end-color)); } .gradient-hero * { box-sizing: border-box; } .gradient-hero-content { max-width: 700px; } .gradient-hero-title { margin: 0 0 1rem 0; font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; line-height: 1.15; } .gradient-hero-subtitle { margin: 0 0 2.5rem 0; font-size: clamp(1.1rem, 3vw, 1.3rem); line-height: 1.6; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; } .gradient-hero-cta { display: inline-block; background-color: var(--grad-cta-bg); color: var(--grad-cta-text-color); border: none; padding: 1rem 2.5rem; font-size: 1.1rem; font-weight: 700; border-radius: 50px; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .gradient-hero-cta:hover { background-color: var(--grad-cta-hover-bg); transform: translateY(-3px); } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="gradient-hero"> <div class="gradient-hero-content"> <h1 class="gradient-hero-title">Create Anything, Faster</h1> <p class="gradient-hero-subtitle"> Unleash your creative potential with SynthoKit, the AI-powered design platform that transforms ideas into stunning visuals in seconds. </p> <a href="#" role="button" class="gradient-hero-cta">Get Started for Free</a> </div> </section>