Hero sections
The hero element is the first one in the page, always. It contains the most important information and almost always some kind of call-to-action.
Hero structure
All the landing pages in Ascension contain a hero element. Here is a complete list of the elements that can be found in a hero area. Please note that each page has a slightly different hero area so you won't find all of these elements in a single page.
- Navbar with logo
- Main statement
- Secondary statement
- Call-to-action (it can be a simple button leading somewhere else or an entire form)
- Embedded video
- Video simulator
- Static image
- List of benefits/features
In terms of design, a hero area has a solid background but can also use a background image.
For reference, here's the complete code for one of the hero areas:
One of the classes you'll find in every single hero area is .hero
. This is necessary in order for all hero elements to be displayed properly.
Helper classes
On top of the .hero
class that's necessary for all hero areas, there are a few helper classes needed for proper content styling and layout.
Class | Description |
---|---|
content |
Any container with this class will center the text and add a large bottom padding. This is not to be used on a .hero container, instead use it inside one (see the example above). |
color-bg |
This will add the proper color to the elements inside a hero with a solid background and also sets the solid background to the tertiary color in the palette. |
light-bg |
This will add the proper color to the elements inside a hero with a solid background and also sets the solid background to the black-4 color in the palette. |
dark-bg |
This will add the proper color to the elements inside a hero with a solid background and also sets the solid background to the black-95 color in the palette. |
artwork-bg |
This will add a background image to the hero, on top of the existing color background. |
light-overlay |
This will add a background color that's meant to be displayed on top of a background image. The color added is white-75 from the palette. This class is meant to be added to the hero element and needs to be used in conjunction with a .hero-bg element (see the explanation below). |
dark-overlay |
This will add a background color that's meant to be displayed on top of a background image. The color added is black-65 from the palette. This class is meant to be added to the hero element and needs to be used in conjunction with a .hero-bg element (see the explanation below). |
Using a background image with a color overlay.
If you take a look at demos 5, 6 and 11 you'll see that each hero area has a background image but also a color layer overlayed on top of those images. Here's how you achieve this effect.
- Add the class of
.light-overlay
or.dark-overlay
to the hero area. -
Create a new element with the class of
.hero-bg
that looks like this:
The new element should be the first one inside the hero area. - Change the image path to the one you want to use.