COVID-19 (Coronavirus) update from the CDC: Click here for the latest information

COVID Hero Banner

With the COVID Hero Banner, you can easily add custom content, links, and images to your website's homepage to feature a strong message or call to action regarding your COVID-19 response.
Laptop with an example of an COVID Hero Banner

A hero banner is a large visual website element that combines full-screen-width imagery with strong, action-oriented copy. Easy to customize with your own graphics and messaging, a hero banner can be an effective tool for elevating your COVID-19 response strategy and linking visitors to critical information.

Because a hero banner appears at the top of your website homepage, it garners significant attention. All eyes are on it. This gives you the ability to drive attention and traffic to critical updates, specific instructions, or other details that are central to your COVID-19 efforts.

HTML

The HTML is wrapped with a unique "covid-hero" class so that the CSS styles can target this element specifically without interfering with other elements. Swap the image for one specific to your business or industry with recommended dimensions of 1920px by 600px. Customize the content inside the "header-content" element to meet your needs.

CSS

The CSS utilizes the object-fit property to make sure the image scales properly to the container and on mobile devices. Additionally, the "header-content" class has a background-color with a transparent opacity to ensure readibility but allow the image behind it to be visible.

Result

Download from Github