shadcn.io is not affiliated with official shadcn/ui
Career Path Spotlights About Block for Svelte
An employee spotlight for a film-crew planning company, with four people in a vertical tab list and the open profile as a three-step career path, three answers, and a tenure badge.
Installation
Overview
A career-path spotlight for Svelte with Ark UI, written for Cuesheet, a fictional production planner for film crews. A compact header sits over a master and detail: at the start a vertical list of four names, each with the role in its margin; behind a divider, the open profile with initials, a tenure badge, a short fact, a three-node path (joined as, then, now) and three answers. An unseen copy of every profile holds the panel at the tallest, so choosing a person never moves the page. On a phone the names become a row of chips that scrolls. It's built from Tabs, Avatar, Badge and Guides, with CSS for the entrance and your theme's tokens for every colour. For an about page that introduces a few people through the jobs they grew into. The people, the paths and the answers are example data.
FAQ
How do I change the people?
Edit PEOPLE at the top of the file. Each person has a name, a role, a tenure in years, a fact, the three path labels joined, later and now, and three answers (a normal Tuesday, what the job turned out to be, and advice). The initials and the "Here N years" badge are derived. A new person becomes a new row and a new panel.
How do the tabs work with a keyboard?
The list stays a vertical tab list, including on a phone where it looks like a row of chips, so Up and Down move between the names, Home and End jump to the first and last, and Tab moves into the open profile. The open row is the selected tab, marked by a bar on a large screen and a filled chip on a phone.
Why doesn't the page move when I pick a person?
The profiles differ in length. An unseen, inert copy of every profile sits in the same grid cell as the open one, so the cell keeps the height of the tallest. Those copies are out of the accessibility tree and the tab order.
Is another person's profile in the page?
The open profile is the one mounted in the tab panel. The other profiles are not mounted there. The inert copies used to hold the height stay in the HTML, hidden from assistive technology, and are not a second set of profiles to read.