frontend: the swarm UI's page chrome moves to @hive/shared as AppShell
The header bar, the nav row with its sliding underline, the settings menu slot, the skip link and the content column move out of the swarm UI's Shell into a router-free AppShell in @hive/shared, with their CSS. It takes the brand, the nav items, the current location and the link component, plus slots for extra tabs, settings entries and menus. The swarm UI's Shell keeps what is its own on top of it: the open agent-terminal tabs (their CSS moves to DynamicTabs.css), the swarm's settings, links and user menus, the swarm name and the full-bleed routes. No visible change; this is the base for the hive UI to reuse the same chrome.
This commit is contained in:
parent
1a4f35f669
commit
c6f8f26b16
3 changed files with 604 additions and 530 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* <Skeleton>: a tinted shape with a light band moving across it. Motion
|
||||
follows the page's setting, the same three rules the page switch uses
|
||||
(`shell/Shell.css`): off for an OS that asks for less motion, off when the
|
||||
(`app-shell/AppShell.css`): off for an OS that asks for less motion, off when the
|
||||
setting says reduce, back on when the setting says allow. Where it is off
|
||||
the shape is a plain tinted block. */
|
||||
.ui-skeleton {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* The slug: the signature line at the foot of a page. The shaded blocks pulse
|
||||
in a wave, each glyph delayed by its index (`--i`). Motion is gated the way
|
||||
`shell/Shell.css` gates its own: stilled under the OS preference and the
|
||||
`app-shell/AppShell.css` gates its own: stilled under the OS preference and the
|
||||
`data-motion` override, back on with `allow`. */
|
||||
.ui-slug {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
// the primitive before or alongside the first real page that needs it").
|
||||
//
|
||||
// `flex-wrap`, not a `@media` breakpoint — content-driven stacking, same
|
||||
// approach the shell's own nav row already uses (`shell/Shell.css`)
|
||||
// approach the shell's own nav row already uses (`app-shell/AppShell.css`)
|
||||
// rather than a second, independent magic-number breakpoint. No opinion
|
||||
// on what's inside either pane (a `Panel`, anything else) — same "own
|
||||
// the mechanics, not the content" split as `Card`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue