shadcn.io is not affiliated with official shadcn/ui
Deployment Live Success Block for Svelte
A confirmation window for a live deploy: a drawn browser with the real address and a copy button, a group of buttons that redraws the site at desktop, tablet and phone width, and the deploy's facts and four passed checks beside it.
Installation
Overview
Show that a deploy is live with this confirmation window for Svelte with Ark UI. It is the Skiffhost console, an app host, just after a deploy went live, in a fixed-height window with no title bar: a top bar with a success mark, the heading and the one action, the Shine Button that visits the site. The page side is the live site itself, drawn: a browser whose address bar holds the real URL and a Copy Button, and under it a greyscale drawing of the site that a Toggle Group redraws at desktop, tablet and phone width. Beside it are the deploy's facts (branch, commit, build time, the day) and four checks, each with a check mark, the word Passed and its time, counted from the typed list. For app hosts, deploy dashboards and any push that goes live.
FAQ
What stays in the page, and how do I wire it for real?
Nothing was deployed. The site, the commit, the four checks and their times are typed sample data, and the width buttons only change the drawing. The browser's clipboard is real: the copy button copies the live address. To wire it, set SITE, BRANCH and COMMIT from your deploy record, build CHECKS from the checks your pipeline ran (each with its passed flag and seconds), and replace SitePicture with a screenshot or an iframe of your site if you prefer; the counts and the build time are worked out from CHECKS.
How does the window behave?
It keeps its height on every width (36rem on a phone, 46rem from the medium breakpoint) and nothing the visitor does changes it. On a phone the window scrolls inside itself, with the browser and the width buttons first and the facts and checks under them. Tab goes through the top bar's link, the copy button, the width group and the View logs button under the checks, in that order.
What do the width buttons do?
They are a group of three buttons with one always on. Choosing Tablet or Phone narrows the drawn site to that share of the frame, and the drawing answers to its own width through a container query: at phone width the links fold away and the cards stack. The status line says which width is shown, and the layout does not move.
Is the drawing accessible, and is the address bar the window's chrome?
The drawn site is hidden from assistive technology and every fact in it is also text: the address, the branch, the commit, the checks and the caption that gives the width. The address bar belongs to the picture (the browser showing your site), not to the window: the window has no title bar or browser chrome of its own, only its top bar. The picture is left-to-right whatever the page's direction.