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 { --tcf-padding: 3rem 1.5rem; --tcf-max-width: 1100px; --tcf-gap: 2rem; --tcf-bg-color: #ffffff; --tcf-text-color: #212529; --tcf-headline-color: #000000; --tcf-cta-bg: #007bff; --tcf-cta-hover-bg: #0069d9; --tcf-cta-text-color: #ffffff; } .two-col-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%; background-color: var(--tcf-bg-color); color: var(--tcf-text-color); padding: var(--tcf-padding); display: flex; justify-content: center; align-items: center; } .two-col-hero * { box-sizing: border-box; } .two-col-hero-container { width: 100%; max-width: var(--tcf-max-width); display: flex; flex-direction: column; gap: var(--tcf-gap); } .two-col-hero-content { display: flex; flex-direction: column; justify-content: center; text-align: center; } .two-col-hero-title { margin: 0 0 1rem 0; font-size: clamp(2.25rem, 6vw, 3.5rem); color: var(--tcf-headline-color); font-weight: 700; line-height: 1.2; } .two-col-hero-description { margin: 0 0 2rem 0; font-size: 1.1rem; line-height: 1.7; max-width: 500px; margin-left: auto; margin-right: auto; } .two-col-hero-cta { display: inline-block; background-color: var(--tcf-cta-bg); color: var(--tcf-cta-text-color); padding: 1rem 2rem; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease; align-self: center; } .two-col-hero-cta:hover { background-color: var(--tcf-cta-hover-bg); } .two-col-hero-image-wrapper { display: flex; align-items: center; justify-content: center; } .two-col-hero-image { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); } @media (min-width: 768px) { .two-col-hero-container { flex-direction: row; align-items: center; } .two-col-hero-content { flex-basis: 50%; text-align: left; padding-right: var(--tcf-gap); } .two-col-hero-description, .two-col-hero-cta { margin-left: 0; margin-right: 0; } .two-col-hero-cta { align-self: flex-start; } .two-col-hero-image-wrapper { flex-basis: 50%; } } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="two-col-hero"> <div class="two-col-hero-container"> <div class="two-col-hero-content"> <h1 class="two-col-hero-title">Automate Your Workflow Instantly</h1> <p class="two-col-hero-description"> With Nexus AI, you can connect your apps, streamline your tasks, and eliminate hours of manual work. Focus on what truly matters for your business. </p> <a href="#" role="button" class="two-col-hero-cta">Start Free Trial</a> </div> <div class="two-col-hero-image-wrapper"> <!-- Screenshot from placehold.co --> <img src="https://placehold.co/500x380/E8F5E9/4CAF50?text=App+Screenshot" alt="A screenshot of the Nexus AI application dashboard showing a clean and intuitive user interface." class="two-col-hero-image"> </div> </div> </section>