Block 237 of 297
Dining Guide
Restaurants grouped by cuisine with price bands, dietary options, hours, menu links and a Locally owned badge.
- Puck key
- DiningGuideBlock
- Export
- diningGuideBlock
- React component
- <DiningGuide />
- Path
- components/puck/dining-guide-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
Restaurants grouped by cuisine, each group headed in a narrow left column with a spot count, its listings two across beside it. Entries show price band, neighborhood, a Locally owned badge, dietary tags, hours and a menu link. A photo can sit beside the intro, along with jump links to each cuisine. On phones the cuisine label stacks above its restaurants.
- A destination's "Eat and drink" guide
- A downtown or main street association promoting local restaurants
- A restaurant week or food festival participant list
Writing the content
- Spell Cuisine the same way on every entry that belongs together; groups form in the order a cuisine first appears.
- Write Description as one sentence on what to order rather than a general review.
- Keep Hours to a short summary like "Tue–Sun, 11 AM–9 PM".
- Restaurants accept up to 30 items. Set Locally owned to No to drop the badge for chains or hotel restaurants.
Accessibility
- Price symbols are hidden from screen readers and replaced with words such as "Moderate", and the Locally owned badge is a text label rather than an icon alone.
- Each cuisine is a labeled section with its own heading, and restaurant names sit one level below it (WCAG 1.3.1). The cuisine jump links are in a nav labeled "Cuisines".
- Hours and dietary tags carry hidden labels, and menu links append the restaurant name.
Customizing the code
- Change the price wording in PRICE_WORDS, and the badge color by swapping indigo- on the Locally owned span.
- The cuisine column split is lg:grid-cols-4 with lg:col-span-3 for listings; adjust both to rebalance.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Image URLtext
- Image alt texttext
- Restaurantsarray
- Footnotetextarea