Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Also known as: card with popup

Description

A card displaying a photo and brief teaser copy. When selected, the card opens a modal (popup) with more details about the topic or person.

...

Expand
titleSections on this page

Table of Contents
minLevel2

Examples 

Design 

Cards with environmental or portrait photos

Source: OIM Department

Image Added

Modal open - full-width header image

Image Added

Example 1 -

Cards with headshots

Source: BBA Careers

Example 1 - Modal open

Example 2 -

Cards with environmental or portrait photos

Source: AI Hub

Example 2 - Modal open - 50/50 header image

Use When

  • Storytelling; sharing a person's profile or career background (examples: BBA Careers, Companies and Recruiters)
  • Expanding on a topic (example: AI Hub page)
  • You have content to fill at least 2 cards and their modals (this component doesn't look as nice when there is only one card)
    • There needs to be enough quality content such that interacting with the modal feels worthwhile to the user. 
      • Don't just fill the modal with fluff to try to make this component work. If it is a struggle to create enough content for each of the cards, consider using a different component with less copy and/or organizing the content differently.

...

  • No character limit, but keep the length within reason. Typically, modal content spans 3 to 6 short paragraphs.
  • Follow web best practices for keeping content easy to digest and scannable
    • Use subheadings if you include more than 2 paragraphs
  • We can include a variety of content here, such as:
    • paragraphs
    • pullquotes
    • supporting images
    • photo collages
    • an embedded YouTube video

Design Assets Needed

Images

Card photo (required)

...

Code Block
languagehtml
titleMixed Collage - dev notes and code
collapsetrue
DEV NOTES
* Image one and two must be horizontal, image three vertical
* Image two and three are hidden for mobile screens.
* Can use a single caption for all three images for desktop. 
* The mobile caption should just be for image one, since the others are not visible at that point.

CODE - WITH CAPTION
<div class="mixed-layout-collage">
   <div class="image-one">
      <img decoding="async" class="image brand-border-radius" src="" alt="" aria-describedby="mixed-collage-caption">
   </div>
   <div class="image-two">
      <img decoding="async" class="image brand-border-radius" src="" alt="" aria-describedby="mixed-collage-caption"> 
   </div>
    <div class="caption" id="mixed-collage-caption">
      <p class="mobile-caption pt-2">Mobile Caption</p>
      <p class="desktop-caption text-end">Desktop Caption</p>
   </div>
   <div class="image-three">
      <img decoding="async" class="image brand-border-radius" src="" alt="" aria-describedby="mixed-collage-caption">
   </div> 
</div>

CODE - NO CAPTION
<div class="mixed-layout-collage">
   <div class="image-one">
      <img decoding="async" class="image brand-border-radius" src="" alt="">
   </div>
   <div class="image-two">
      <img decoding="async" class="image brand-border-radius" src="" alt=""> 
   </div>
   <div class="image-three">
      <img decoding="async" class="image brand-border-radius" src="" alt="">
   </div> 
</div>

Variations

Stacked or swiper

...

Stacked

Image Removed

...

Swiper

Image Removed

Modal header image

...


...

50/50 modal header image

Image Removed

...

Full-width modal header image – text sits on the image, with a dark gradient overlay for contrast.

Image Removed  

Additional modal elements

...

  • red pullquote
  • gray horizontal rule
  • microtitle (yellow triangle, subhead styled in all caps, dark blue text)

...