Skip to content

Block 210 of 297

Book Club

This month's book club pick with cover, discussion details, copy pickup note, discussion questions and upcoming picks.

Puck key
BookClubBlock
Export
bookClubBlock
React component
<BookClub />
Path
components/puck/book-club-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 feature for this month's book club pick: a large cover on the left, then the title, author, a short blurb, a date, time and place panel, a note on borrowing copies and an RSVP button. Discussion questions fold away in a toggle, and upcoming picks are listed underneath. On phones the cover sits centered above the text.

  • A library book club landing page updated monthly
  • A community read or One Book program page
  • A branch events page highlighting the next discussion
Writing the content
  • Heading is set small, as a lead-in like "This month we're reading"; the Book title is the large line. Keep the heading short.
  • Leave Cover image URL blank to get a typeset indigo cover with the title, and leave Cover alt text blank in most cases since the title sits beside it.
  • Discussion questions takes up to 12 and Upcoming picks up to 8. Fill Month on each pick so the list reads as a schedule.
Accessibility
  • Book titles are marked up with cite elements, and the discussion date uses a time element when a valid ISO date is supplied.
  • Questions sit in a native details and summary toggle that shows the question count, with the decorative numerals and plus icon hidden from screen readers (WCAG 4.1.2).
  • Only the Heading field is a heading; the book title is a paragraph. If you want the title in the page outline, put it in Heading as well.
Customizing the code
  • The typeset cover uses bg-indigo-900 with a bg-indigo-200 shadow card; change those classes or the "A novel" label in the cover markup.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Book titletext
  • Authortext
  • About the booktextarea
  • Cover image URLtext
  • Cover alt texttext
  • Discussion datetext
  • Discussion date (YYYY-MM-DD)text
  • Timetext
  • Placetext
  • Borrowing copies notetextarea
  • Questions toggle texttext
  • Discussion questionsarray
  • Button texttext
  • Button linktext
  • Upcoming headingtext
  • Upcoming picksarray