shadcn.io is not affiliated with official shadcn/ui
Bento Awards Block for React
The evidence behind one award in five cells set apart: the grand prize with a drawn seal, a counting figure, a jury quote, a score with a bar and a small laurel.
Installation
Overview
A bento of award evidence for React with Base UI. Five cells sit apart, each a different kind of proof for one grand prize: the award itself with its seal drawn in SVG (a scalloped rosette on two tails with a star at its heart), a figure that counts up once when it scrolls into view ("50 judges"), a quote from the jury's chair, a score with a bar ("94 of 100") and a small laurel for first place. Every cell's lines overshoot its corners and end in + marks, set 2rem apart; from lg the cells share six columns (the lead four wide, then two, three, two and one) and on a phone they stack, the lead first. Where the mosaic block is a bento of spans, this one is a bento of types. It's built from Guides, Counting Number, Progress, inline SVG and your theme's tokens. The programme, the jury and the figures are made up for the example: replace them with your own results.
FAQ
How do I change the figures?
The facts are constants at the top of the file (PROGRAMME, YEAR, JUDGES, COUNTRIES, ENTRIES, SCORE, OUT_OF), and the cells read from them, so the sentence under the judges count, the bar and the lead cell always agree. Edit the quote and the chair's name in the markup of their cell.
How do the numbers count, and what about reduced motion?
Each figure is Counting Number set to start when it scrolls into view, so it counts once, with an unseen copy of the final number holding its width so nothing shifts while it runs. Screen readers read the final value, never the count. With reduced motion the value shows at once.
How is the score bar made?
It is Progress, in foreground tones with a thin track, hidden from assistive technology because the same score is in the text beside it ("94 of 100"). The fill does not animate.
How do I draw a different seal?
The seal is a list of closed outlines with a faint solid fill (SEAL_FILLS: two tails, the scalloped rosette, a star) and a list of plain strokes over them (SEAL_LINES) in a 64 by 64 box. scallop draws the rosette from a centre, two radii and a number of lobes. The laurel in the small cell is the same wreath kit the other awards blocks use: change its pairs and spread. Drawings are hidden from assistive technology; the award is in the text.
Related
- Pro
Asymmetric Mosaic Awards
Cards and gridsSeven awards for a type marketplace on a 4-column hairline grid with different spans: a 2 by 2 lead with a large drawn trophy, two 2 by 1 runners-up and four small cells.
- Pro
Radar Scorecard Awards
One featured awardOne award scored in depth for an application-performance monitor: a radar chart of five criteria beside the same scores as a numbered list with bars, a derived total and the lead judge's comment.
- Pro
Featured Plaque Awards
One featured awardOne grand award for a payments platform: a large framed plaque with a laurel wreath and the year on a ribbon beside the heading, a description list of the facts and one sentence from the jury.
- Pro
Laurel Display Awards
Badges and sealsA band of five awards for a weather app, each a laurel wreath drawn in SVG around the award's title and year, with the programme, category and issuer in text and the lead award larger in the middle.
- Pro
Big Numbers Awards
Charts and figuresFour display-size figures for an inventory-counting app on shared hairlines (awards won, programmes, categories led and years running), counted up once on view and all derived from one typed list of awards.
- Pro
Chair's Quote Seal Awards
One featured awardOne large quotation from a prize jury's chair for a citation manager, under a heading, with the chair's name and role, beside the programme's seal drawn as a scalloped rosette in a frame.