Date Cards

Date cards represent information about a calendar event, with a side by side display of a “card” showing the date of the event, next to the event’s title, time, and (optionally) location.

When to use date cards

Use date cards when you want to display a list of time-sensitive events such as Libraries Events, Exhibits, or Workshops.

When not to use date cards

Avoid date cards if the items you want to list are not time-sensitive, or when all the events occur on the same day. For example, a conference schedule where all the events take place on the same day.

Usage

Date card lists usually fill the full main content area, but there’s also a small date card available for use in sidebars.

The small date cards will fill whatever container they're placed in, and look best at 1/4 width (the Workshops sidebar on User Activities) or 1/2 width (the combined Events, Exhibits, and Workshops list on the homepage).

All date cards must contain a date, time, and title. Large date cards can also contain an optional location, which should link to the Drupal space node for Libraries locations.

All date cards are wrapped in a ul class="date-card-list” element, and each date card in the list is a regular li element. Each li should contain one a element that links to the event.

Examples

Regular (full width) date cards

Small date cards

<ul class="date-card-list"> <li> <a class="date-card" href="/events"> <div class="date-card-date"> <p class="date-card-month">Dec</p> <p class="date-card-day">4</p> </div> <div class="date-card-content"> <h4 class="date-card-title disable-deep-link">Pause for Paws</h4> <time datetime="2024-12-04 14:00" class="date-card-date">Wednesday, December 4</time> <p class="date-card-time">2:00pm-3:00pm</p> <p class="date-card-location"><i class="fa-light fa-location-dot"></i>Jay Lawrence and Ella Apple Technology Showcase, Hunt Library</p> </div> </a> </li> <li> <a class="date-card"> <div class="date-card-date"> <p class="date-card-month">Dec</p> <p class="date-card-day">10</p> </div> <div class="date-card-content"> <h2 class="date-card-title disable-deep-link">Pause for Paws 2: Electric Boogaloo</h2> <time datetime="2024-12-10 9:30" class="date-card-date">Monday, December 10</time> <p class="date-card-time">9:30am-10:30am</p> <p class="date-card-location"><i class="fa-light fa-location-dot"></i>Jay Lawrence and Ella Apple Technology Showcase, Hunt Library</p> </div> </a> </li> <li> <a class="date-card"> <div class="date-card-date"> <p class="date-card-month">Jan</p> <p class="date-card-day">20</p> </div> <div class="date-card-content"> <h2 class="date-card-title disable-deep-link">Pause for Paws 3: Just Keep Pausing</h2> <time datetime="2025-01-20 12:00" class="date-card-date">Tuesday, January 20</time> <p class="date-card-time">12:00pm-1:00pm</p> <p class="date-card-location"><i class="fa-light fa-location-dot"></i>Jay Lawrence and Ella Apple Technology Showcase, Hunt Library</p> </div> </a> </li> </ul>
Updated

Website feedback

What is the issue with this page?