shadcn.io is not affiliated with official shadcn/ui
Player Frame Video Blog Block for React
Four video lessons as cells: each cover is a drawn player frame with a poster pattern, a play mark and a scrub bar with a tick for every chapter, a duration badge, the title and the date.
Installation
Overview
A video posts block for React with Base UI, written for Reelwick, a film school's video journal. A compact header with an "All videos" link sits over four lessons as cells on shared hairlines, two across from lg, that run from rail to rail and end the block. Each cell is one link, its title, and shows a drawn greyscale player frame (a poster pattern that is different for each lesson, a play mark, and a scrub bar with a tick at every chapter), a duration badge, the chapter count, a one-line dek and the presenter and date. It's built from Badge, Avatar, Button and Guides. For a channel, a course's lessons or any video list that has chapters. Nothing plays here: the frame is a drawing, and the title links to the lesson's page.
FAQ
How is the player frame drawn?
One SVG per cover: a pattern of hairlines or dots (rings, hatching, a dot ramp or sway lines, one per lesson), a foreground circle with a play triangle, and a control bar with a scrub track. Each chapter is a short tick on the track, placed from its start as a percentage of the video. The strokes stay one pixel wide at any size, and the whole cover is hidden from assistive technology.
Can I use a real thumbnail?
Yes. The cover's frame sets the ratio, the ring and the radius. Replace the drawing inside it with an img that has size-full object-cover and an empty alt (the title is the link's text).
Where do the chapter marks come from?
From each lesson's chapters array: the starts as percentages. The chapter count in the text is that array's length, so the ticks and the count always agree.
Does it play the video?
No. The title is a link to the lesson's page, where your player belongs. The block never shows a fake player that does nothing.
Related
- Pro
Photo Essay Gallery Blog
Audio, video, photosA photo-essay contact sheet: one wide and three narrow framed plates, each a figure with a numbered caption that is its one link, and a colophon cell; no lightbox.
- Pro
Cards Grid Blog
Card gridsThe six latest posts of an engineering blog as cards on shared hairlines: drawn greyscale covers, a category, the title as the card's one link, a one-line dek and a byline with the date and reading time.
- Pro
Carousel Blog
Card gridsEight posts in a multi-up carousel of cells with overshoot, each leading with a drawn instrument face; a count and previous and next buttons sit in the heading row.
- Pro
Format Filter Multi-Format Blog
Audio, video, photosOne list of eight pieces with a format filter that has counts (All, Read, Watch, Listen, Look) and a small drawn tile for each format: text lines, a player frame, a waveform, a bar chart.
- Pro
Masonry Wall Blog
Card gridsEight posts in staggered CSS columns, each cell leading with a drawn pattern cover in a poster, square or wide shape; six show on a phone behind a More posts button.
- Pro
Featured Post Blog
Featured storyOne lead post as a split, its copy beside a drawn greyscale cover behind a divider, with three more posts as cells on shared hairlines under it.