feat: navigation

This commit is contained in:
2026-04-01 16:04:06 +02:00
parent a0a5f18128
commit a95594f446
7 changed files with 312 additions and 6 deletions

View File

@@ -280,6 +280,39 @@ export const EXAMPLES: Example[] = [
divider heavy
link "Home" "/page/index.mu"`,
},
{
name: "Navigation",
description: "Horizontal bar + vertical sidebar navigation",
source: `page "Dashboard" 64
hnav bar
item "Status" "/page/status.mu" active
item "Peers" "/page/peers.mu"
item "Files" "/page/files.mu"
item "Config" "/page/config.mu"
spacer
row 1
col 18
vnav boxed
heading "Network"
item "Overview" "/page/overview.mu" active
item "Peers" "/page/peers.mu"
item "Routes" "/page/routes.mu"
separator
heading "Tools"
item "Ping" "/page/ping.mu"
item "Trace" "/page/trace.mu"
col
heading 1 "Overview"
gauge "CPU" 62 100 28 warn=75 crit=90
gauge "MEM" 84 100 28 warn=80 crit=95
spacer
status "East Relay" online
status "South Bridge" online
status "Node Gamma" degraded`,
},
{
name: "Image Art",
description: "Convert images to braille/block/ascii character art",