Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Hero #469

Open
slowbot opened this issue Nov 24, 2020 · 0 comments
Open

Base Hero #469

slowbot opened this issue Nov 24, 2020 · 0 comments

Comments

@slowbot
Copy link
Contributor

slowbot commented Nov 24, 2020

Prominent overview component usually placed at the top of a page featuring title and lead with an optional image.

When to use the hero component

  • When you have a primary message you want to communicate in a concise way with a single and/or secondary action.
  • When you want to establish the mood with a distinctive hero or background image.

When to consider something else

  • When you have a larger lengths of content. Consider using a text section
  • When you have set of links or complex navigation. Consider using a side or local navigation

Usability guidance

  • Make titles brief and concise. Avoid run on titles with too many words
  • Select images with a single dominant focal point. Avoid busy hero or background images.

Accessibility

  • Ensure you have sufficient color contrast with background colors and images.

Implementation

Field Value Name
Title title of the page or section - required
Lead brief subtitle or lead in description for the page or section
Summary Body summary content for the page or section
Action primary action a user can take
Image a descriptive or decorative image
Brow category label or tag usually auto generated
Tag Assigns a H1 - H3 value to the title field
Secondary Body secondary content for the page or section
Variants Values Name
Layout Center, 2 (default) or 3
Background light (default), or dark. Effects: text color, background color, action color
Image position right (default), or background

Nested Components

  • Breadcrumb
  • Back

Theme

Element Effects Global/Component
$theme-font-role-heading Title Global
$theme-display-font-size Title Global
$theme-lead-font-family Lead Global
$theme-jcc-display-font-weight Title Global/Custom
$theme-jcc-hero-background Background color Component/Custom
$theme-jcc-dark-background-color Background color Global/Custom
$theme-jcc-dark-background-link Link color Global/Custom

Questions:

  • Should we merge 1 column with center align options?
  • Should this only be for h1 page titles or can this be reused for other page content?
  • Should this be the default h1 component or should this only be used for prominent page headers?
  • How do we specify mobile position for background images? Do we hide images on mobile?

Figma

https://www.figma.com/file/UW0WNmfKZOmAOE5zsSYEx5/JCC-Base?node-id=10%3A13
https://www.figma.com/file/UW0WNmfKZOmAOE5zsSYEx5/JCC-Base?node-id=122%3A106

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant