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 { /* Demonstration image from Unsplash by Paul Gilmore. For best results, replace this URL with your own high-quality background image. */ --fsi-bg-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1400'); --fsi-min-height: 100vh; --fsi-padding: 2rem 1.5rem; --fsi-text-color: #ffffff; --fsi-overlay-color: rgba(0, 0, 0, 0.4); --fsi-cta-border-color: #ffffff; } .fsi-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'; position: relative; width: 100%; min-height: var(--fsi-min-height); padding: var(--fsi-padding); display: flex; justify-content: center; align-items: center; text-align: center; background-image: var(--fsi-bg-image); background-attachment: fixed; background-size: cover; background-position: center; } .fsi-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--fsi-overlay-color); z-index: 1; } .fsi-hero * { box-sizing: border-box; } .fsi-hero-content { position: relative; z-index: 2; max-width: 700px; } .fsi-hero-title { color: var(--fsi-text-color); margin: 0 0 0.5rem 0; font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; line-height: 1.1; } .fsi-hero-tagline { color: var(--fsi-text-color); margin: 0 0 2.5rem 0; font-size: clamp(1.2rem, 3vw, 1.5rem); opacity: 0.9; font-weight: 300; letter-spacing: 1px; } .fsi-hero-cta { display: inline-block; background: transparent; color: var(--fsi-text-color); border: 2px solid var(--fsi-cta-border-color); padding: 0.8rem 2.2rem; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease; text-transform: uppercase; } .fsi-hero-cta:hover { background-color: var(--fsi-cta-border-color); color: #000000; } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="fsi-hero"> <div class="fsi-hero-content"> <h1 class="fsi-hero-title">Elara Vance</h1> <p class="fsi-hero-tagline">Visual Artist & Designer</p> <a href="#" role="button" class="fsi-hero-cta">View My Work</a> </div> </section>