Call to Enroll Hero Template

Drive immediate enrollments with a hero section that creates a clear sense of urgency.

This template is built for conversion, highlighting an early-bird price alongside a countdown timer that motivates potential students to act quickly before the offer expires.

A hero section with a strong 'Enroll Now' call-to-action and pricing information.

Get Source Code Preview

About the Call to Enroll Hero

This hero section is a powerful tool for course creators running a launch or a special promotion. By combining the price with a time-sensitive discount, it creates a compelling reason for students to stop procrastinating and sign up. The design is clean and direct. The hero section is focused on the single goal of converting visitors into enrolled students.

Features

Code Breakdown

This component is split into CSS for your site's head, HTML for the body, and a JavaScript block to be placed before the closing tag.

The layout uses a single-column, centered design controlled by Flexbox to keep the focus entirely on the offer. The "Early Bird" pricing is styled to show both the original and discounted price, making the savings obvious. The countdown timer is a div that the JavaScript will populate.

The JavaScript logic sets a targetDate for when the offer expires. Every second, it calculates the time remaining and updates the content of the offer-countdown element. When the time is up, it replaces the countdown with an "Offer Expired" message and can optionally hide or change other elements, like the price, by manipulating CSS classes.

Code

View Output