Skip to content

Block 208 of 297

Digital Resources

A grid of e-resources by category, each with a description, an at-home access note and a link, plus a tech-help banner.

Puck key
DigitalResourcesBlock
Export
digitalResourcesBlock
React component
<DigitalResources />
Path
components/puck/digital-resources-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

A grid of the library's online services, each card showing an icon, category, name, short description, an access note such as "Use at home with your card" and a link. A dark banner at the bottom offers tech help. Cards run three across on desktop, two on tablets and one on phones, and the whole card is clickable.

  • An "eLibrary" or "Online resources" landing page
  • A home page section promoting e-books and streaming
  • A research help page listing databases
Writing the content
  • Use Name for your service's name or a plain description. The labels are generic on purpose, so you can name vendors or not.
  • Fill Access note on every card when some services work only inside the library; it is the quickest way for patrons to see that limit.
  • Resources takes 1 to 12 cards. Multiples of three keep desktop rows even.
  • Without a Link, the card has no link and its "Open" label is not shown.
Accessibility
  • The link is on the resource name and stretches across the card, so each link's accessible name is the resource name rather than a repeated "Open" (WCAG 2.4.4).
  • The visible link text and icons are hidden from screen readers to avoid duplicate announcements, and the focus outline is drawn around the whole card (WCAG 2.4.7).
  • Card names are headings one level below the Heading level setting, and the hover lift is disabled for reduced-motion users.
Customizing the code
  • Icons are 24px outline paths in the icons record; add one there, in the Icon type and in the select options.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Resourcesarray
  • Help linetext
  • Help link texttext
  • Help linktext