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 { --cvh-padding: 5rem 1.5rem; --cvh-min-height: 400px; --cvh-bg-color: #f9fafb; --cvh-text-color: #4b5563; --cvh-headline-color: #111827; --cvh-cta-bg: #1f2937; --cvh-cta-hover-bg: #000; --cvh-cta-text-color: #ffffff; } .cv-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'; min-height: var(--cvh-min-height); padding: var(--cvh-padding); background-color: var(--cvh-bg-color); width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; } .cv-hero * { box-sizing: border-box; } .cv-hero-content { max-width: 600px; } .cv-hero-name { color: var(--cvh-headline-color); margin: 0 0 0.25rem 0; font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.2; } .cv-hero-title { color: var(--cvh-text-color); font-size: clamp(1.1rem, 3vw, 1.25rem); font-weight: 500; margin: 0 0 2.5rem 0; } .cv-hero-cta { display: inline-flex; align-items: center; gap: 0.75rem; background-color: var(--cvh-cta-bg); color: var(--cvh-cta-text-color); padding: 1rem 2rem; border-radius: 8px; border: none; font-size: 1.1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; } .cv-hero-cta:hover { background-color: var(--cvh-cta-hover-bg); transform: translateY(-2px); } .cv-hero-cta svg { width: 1.2em; height: 1.2em; stroke: currentColor; } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="cv-hero"> <div class="cv-hero-content"> <h1 class="cv-hero-name">Persephone Finch</h1> <p class="cv-hero-title">Senior Product Manager & Growth Strategist</p> <!-- REMINDER: 1. Replace "#" with the actual path to your CV/resume file (e.g., "/downloads/my-cv.pdf"). 2. The 'download' attribute prompts the browser to download the file. --> <a href="#" class="cv-hero-cta" download="persephone-finch-cv.pdf"> <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path> <polyline points="7 10 12 15 17 10"></polyline> <line x1="12" y1="15" x2="12" y2="3"></line> </svg> Download CV </a> </div> </section>