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 { --dmh-padding: 5rem 1.5rem; --dmh-min-height: 480px; --dmh-bg-start: #111827; --dmh-bg-end: #1f2937; --dmh-text-color: #d1d5db; --dmh-headline-color: #f9fafb; --dmh-cta-bg: #4f46e5; --dmh-cta-hover-bg: #4338ca; --dmh-cta-text-color: #ffffff; --dmh-cta-glow-color: rgba(79, 70, 229, 0.4); --dmh-max-width: 850px; } .dark-mode-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'; width: 100%; min-height: var(--dmh-min-height); padding: var(--dmh-padding); background-color: var(--dmh-bg-start); background-image: radial-gradient(ellipse at top, var(--dmh-bg-end), var(--dmh-bg-start)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; } .dark-mode-hero * { box-sizing: border-box; } .dark-mode-hero-content { max-width: var(--dmh-max-width); } .dark-mode-hero-title { color: var(--dmh-headline-color); margin: 0 0 1rem 0; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); } .dark-mode-hero-subtitle { color: var(--dmh-text-color); margin: 0 auto 2.5rem auto; font-size: clamp(1.1rem, 3vw, 1.25rem); line-height: 1.6; max-width: 650px; } .dark-mode-hero-cta { display: inline-block; background-color: var(--dmh-cta-bg); color: var(--dmh-cta-text-color); padding: 1rem 2.5rem; border-radius: 8px; border: none; font-size: 1.1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 0 15px 0 var(--dmh-cta-glow-color), 0 0 5px 0 var(--dmh-cta-glow-color); } .dark-mode-hero-cta:hover { background-color: var(--dmh-cta-hover-bg); box-shadow: 0 0 25px 5px var(--dmh-cta-glow-color), 0 0 10px 0 var(--dmh-cta-glow-color); } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="dark-mode-hero"> <div class="dark-mode-hero-content"> <h1 class="dark-mode-hero-title">Deploy in the Dark</h1> <p class="dark-mode-hero-subtitle"> Next-generation infrastructure for developers who build at night. Our platform provides the tools you need to ship code faster, with unbeatable performance and reliability. </p> <a href="#" role="button" class="dark-mode-hero-cta">Start Building</a> </div> </section>