Skip to content

Commit

Permalink
Move hero section docs to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Feb 7, 2024
1 parent b4495ef commit 770bf07
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/docs/patterns/section.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ context:

Use section components to wrap around parts of content on the page. They are used for managing the bottom space after each element.

## Hero sections

Use a hero section component (`.p-section--hero`) to create a hero section with top padding to be placed at the top of the page.

<div class="embedded-example"><a href="/docs/examples/patterns/section/hero" class="js-example">
View example of the hero section
</a></div>

## Regular sections

Use a section component (`.p-section`) for displaying subsequent sections on the page on a same background. They should be used in place of strips for most of the standard page content.
Expand Down Expand Up @@ -55,14 +63,6 @@ Please not that to emphasize the sections of the page with both top and bottom s
View example of the shallow section
</a></div>

## Hero sections

Use a hero section component (`.p-section--hero`) to create a hero section with top padding to be placed at the top of the page.

<div class="embedded-example"><a href="/docs/examples/patterns/section/hero" class="js-example">
View example of the hero section
</a></div>

## Import

To import just this component into your project, copy the snippet below and include it in your main Sass file.
Expand Down

0 comments on commit 770bf07

Please sign in to comment.