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 { --gh-padding: 4rem 1.5rem; --gh-bg-color: #e0f2fe; --gh-accent1-color: #fb7185; --gh-accent2-color: #818cf8; --gh-card-bg: rgba(255, 255, 255, 0.5); --gh-card-border: rgba(255, 255, 255, 0.8); --gh-text-color: #1e293b; --gh-headline-color: #0f172a; --gh-cta-bg: #0f172a; --gh-cta-text-color: #ffffff; --gh-cta-hover-bg: #1e293b; --gh-max-width: 800px; } .glassmorphism-hero { box-sizing: border-box; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; background-color: var(--gh-bg-color); min-height: 500px; padding: var(--gh-padding); width: 100%; display: grid; /* Use grid for simple centering */ place-items: center; position: relative; overflow: hidden; /* Important for the blobs */ } .glassmorphism-hero * { box-sizing: border-box; } .gh-background-blob { position: absolute; border-radius: 50%; filter: blur(100px); z-index: 1; } .gh-blob-1 { width: 50%; height: 50%; background-color: var(--gh-accent1-color); top: -50px; left: -80px; } .gh-blob-2 { width: 60%; height: 60%; background-color: var(--gh-accent2-color); bottom: -100px; right: -120px; } .glass-card { max-width: var(--gh-max-width); position: relative; z-index: 2; padding: 2.5rem; border-radius: 16px; text-align: center; /* The Glassmorphism Effect */ background: var(--gh-card-bg); -webkit-backdrop-filter: blur(12px); /* For Safari */ backdrop-filter: blur(12px); border: 1px solid var(--gh-card-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); } .glass-card .title { color: var(--gh-headline-color); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin: 0 0 1rem; } .glass-card .subtitle { color: var(--gh-text-color); margin: 0 auto 2rem; max-width: 600px; line-height: 1.6; } .glass-card .cta { display: inline-block; background-color: var(--gh-cta-bg); color: var(--gh-cta-text-color); padding: 0.9rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; } .glass-card .cta:hover { background-color: var(--gh-cta-hover-bg); } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="glassmorphism-hero"> <div class="gh-background-blob gh-blob-1" aria-hidden="true"></div> <div class="gh-background-blob gh-blob-2" aria-hidden="true"></div> <div class="glass-card"> <h1 class="title">Clarity for a Complex World</h1> <p class="subtitle">Our intuitive analytics platform turns raw data into clear, actionable insights that drive your business forward.</p> <a href="#" role="button" class="cta">Request a Demo</a> </div> </section>