Overview

Page is the main content container for a page. The Page component controls the horizontal margins of the content area, as well as the vertical spacing between content.

These examples mostly use Cards, but you can put multiple kinds of content in Page.

Best Practices

Page should:

  • Be used as the top level container for most pages.
  • Use Page Sections to create sidebar layouts within a page.

Page Section should not:

  • Be used anywhere except as an immediate descendant of EzPage.
  • Be used to put more than one sidebar section on the same page. This is unsupported and will render incorrectly if you put two sidebars one after the other.

Examples

Basic Page Content

Pages provide consistent spacing of their children.

Code example
Playroom

Card

Content

Card

Content

Table

This example is really a card, but you can put tables and other content in EzPage too.

Using Headings

Pages provide appropriate margin on Headings to indicate that a heading is related to the subsequent page content.

Code example
Playroom

Heading

Card

Content

Heading

Card

Content

Background color

Pages have gray backgrounds by default. Alternatively, you can give them a white background by passing in the optional backgroundColor prop with the value white. At this time, only gray and white are permitted as values for the backgroundColor prop.

Code example
Playroom

Card

Pass in the optional backgroundColor prop with "white" as the value to give your page a white background.

Page Sections

Page sections can be used on larger screens to create layouts that have a left or right sidebar. On small screens, page sections will stack content vertically.

  • Use EzPageSection[use="aside"] to create a sidebar
  • Use EzPageSection[use="main"] to create the associated main content section
Code example
Playroom

Card

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in aside)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in main)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in main)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Section content is displayed in the order in which it is provided. To change the order of the layout, flip the order of the aside and main sections. The below example demonstrates a "right sidebar" layout.

Code example
Playroom

Card

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in main)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in aside)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in aside)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Horizontal sections

Page section content may be laid out horizontally on larger screens, instead of vertically, to more clearly communicate how content may be related to other content within the section. For example, feature sections may be laid out horizontally so that features can be compared to one another. On small screens, page sections will stack content vertically.

  • Use EzPageSection[use="horizontal"] to create a page section that is laid out horizontally.
Code example
Playroom

How to boost your conversion rate

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Using features effectively to drive sales

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Tools to improve your customer experience

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Centered Header and Page Content

The page may be paired with a page header to provide a consistent page width within an application layout.

Code example
Playroom

Reviews

Card (in aside)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.

Card (in main)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices finibus purus, in maximus diam molestie nec. Aenean maximus eget lacus sed lobortis.