Multi-CTA Hero Template

Guide different types of users to the right place with a hero section that offers multiple paths.

This template provides two distinct call-to-action buttons, creating a clear visual hierarchy between a primary and a secondary action.

Screenshot of a hero section offering two distinct call-to-action buttons.

Get Source Code Preview

About the Multi-CTA Hero

Not all visitors are ready for the same commitment. Some may be ready to sign up or book a demo, while others are still in the exploration phase. This hero section caters to both by offering a primary CTA (e.g., "Get Started") and a less demanding secondary CTA (e.g., "See Features"). This allows users to choose their own journey, which can improve overall engagement.

Features

Code Breakdown

The component is split into CSS for the head and HTML for the body of your page.

The layout is centered using Flexbox. The two buttons are wrapped in a .button-group div, which is also a flex container. This allows for a clean gap between the buttons and enables flex-wrap: wrap to ensure they stack neatly on mobile screens.

The visual distinction is created with two modifier classes. The .cta-primary class has a solid background color, making it stand out. The .cta-secondary class has a transparent background and a visible border, giving it a lower visual weight. Hover states are defined for both to provide satisfying user feedback.

Code

View Output