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.
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.
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.