shadcn.io is not affiliated with official shadcn/ui
Centered Browser Frame Hero Block for React
A centered showcase hero over a full-width browser window showing the product, a logs explorer with a request histogram and a log, held by a hairline frame and faded below the fold.
Installation
Overview
A centered showcase hero for React with Base UI, here for Gauge, a logs platform for edge apps. An announcement link, the headline, a sentence and a ShineButton with an outline Button sit at the top; below them the product runs on past the first screen in a browser window (Frame), held by a hairline frame with + marks on its top corners and faded at its foot. The window is a logs explorer in greyscale: a request histogram with a selected span in the foreground tone, and the log for that span with levels as chips. The window is decoration: it is hidden from assistive technology and inert. Each part fades in once with CSS, and the window scales in; both stop for reduced motion.
FAQ
What is in the window, and can I swap it?
A fixed-height box (h-80, sm:h-[32rem], lg:h-[38rem]) holding an icon rail, a search bar, a histogram built from 60 bars and a log of sixteen requests. It uses container queries, so it drops its rail and columns as the window narrows. Replace the arrays at the top with your product's data, or swap the whole box for your own screenshot.
Is the window accessible?
It is decoration, so it is aria-hidden and inert: none of it takes focus, and the headline and the two links carry the content. The level chips use a fill or a border as well as their label, so errors and warnings don't depend on colour.
Why does the window fade out?
A mask on the window fades it to nothing at its foot, and the frame's side lines fade the same way, so the product seems to continue below the fold and the next section starts clean. The mask is a CSS mask-image, with no script.
Where is the primary button, and is it a link?
The ShineButton is the only primary control, a link on every framework: asChild with an a on Ark and Radix, render with nativeButton={false} on Base UI, and href on React Aria. The second action is an outline Button. Both sit above the window, within the first screen.
Related
- Pro
Split Layout Browser Frame Hero
Product windowsA showcase hero with start-aligned copy, a band of three checklist cells and a browser window in a hairline frame showing a deployments list.
- Pro
Split Layout Overlapping Browser Frames Hero
Product windowsA split hero for a design tool: a headline, a Shine Button, a second action and three short feature ticks beside two overlapping browser windows that run off the edge of the column: a projects list behind an editor.
- Pro
Dashboard Preview Hero
Product windowsA showcase hero with a headline, a Shine Button, an outline button and a trust line above a wide browser window in a hairline frame, a greyscale sketch of an analytics dashboard that runs on below the fold.
- Pro
Phone Trio App Download Hero
Mobile and mediaA centered showcase hero for a mobile app: a headline, a Shine Button to the App Store with Google Play beside it and a proof line over a hairline band of three phones that run off the bottom.
- Pro
Split Layout Image Hero
Product windowsA reverse split hero for an AI code assistant: an editor drawn from UI runs edge to edge to the start rail, with a file tree, code, a ghost suggestion and an assistant panel; a divider and the copy sit at the end.
- Pro
Tabbed Product Views Hero
Interactive demosA centred showcase hero with a Shine Button and an outline action over a pill tab switch and one wide product window in a hairline frame that shows a chat, a terminal session or a docs page.