儀表板把幾個統計數字排在上方,下方放置面板。整體採用托盤上的應用程式框架。主面板內用兩組網格排版,兩者都無須依賴螢幕斷點。
儀表板
<div class="shell bg-surface-tray fg-text-body text-sm"> <a class="skip" href="#dash-main">Skip to content</a> <aside class="shell-sidebar gap-md p-sm"> <a class="navbar-brand h(40) px-xs" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8 4.3333A3.6667 3.6667 0 0 1 8 11.6667Z" fill="currentColor" stroke="none" /> </svg>Atlas </a> <nav class="nav" aria-label="Workspace"> <a class="nav-item" href="#" aria-current="page"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" /> </svg>Overview </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" /> </svg>Projects<span class="nav-end">12</span> </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" /> </svg>Domains </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" /> </svg>Analytics </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" /> </svg>Team </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" /> </svg>Settings </a> </nav> <button type="button" class="btn btn-quiet justify-start px-xs mt-auto"> <span class="avatar avatar-xs" aria-hidden="true"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </aside> <div class="shell-main flex flex-col p(8) pxs(0)@container(--3xl)"> <main class="sheet grow(1) container-inline" id="dash-main" tabindex="-1"> <header class="navbar" style="--navbar-color: var(--color-surface-raised); --navbar-padding-x: 1.5rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="dash-nav" command="show-modal" aria-label="Open navigation"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M3 5.5L13 5.5" /><path d="M3 10.5L13 10.5" /> </svg> </button> <h1 class="heading heading-sm">Overview</h1> <div class="navbar-end"> <select class="select select-raised select-sm" aria-label="Period"> <option class="select-option">Last 24 hours</option> <option class="select-option">Last 7 days</option> <option class="select-option">Last 30 days</option> </select> </div> </header> <div class="flex flex-col gap-md p-lg"> <ul class="auto-grid auto-grid-fit" style="--auto-grid-min: 12rem" aria-label="Key figures"> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Requests</p> <div class="stat-row"> <p class="stat-value">1.80M</p> <p class="stat-delta stat-delta-up"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(-90 8 8)" /><path d="M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5" transform="rotate(-90 8 8)" /> </svg><span class="sr-only">Up</span>12.4% </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Error rate</p> <div class="stat-row"> <p class="stat-value">0.02%</p> <p class="stat-delta stat-delta-down"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /><path d="M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5" transform="rotate(90 8 8)" /> </svg><span class="sr-only">Down</span>0.4% </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Median latency</p> <div class="stat-row"> <p class="stat-value">48 ms</p> <p class="stat-delta stat-delta-down"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M13.6362 7.5189A0.4947 0.4947 0 0 0 13.5 7.5L2.4755 7.5006A0.5 0.5 0 0 0 2.4266 8.4946L2.5 8.5H13.5A0.4947 0.4947 0 0 0 13.6362 8.4811A0.7009 0.7009 0 0 0 13.6362 7.5189Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /><path d="M8 4.5L13.2348 7.8313A0.2 0.2 0 0 1 13.2348 8.1687L8 11.5" transform="rotate(90 8 8)" /> </svg><span class="sr-only">Down</span>3 ms </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Deployments</p> <div class="stat-row"> <p class="stat-value">37</p> </div> </div> </li> </ul> <div class="grid gap-md grid-cols(3)@container(--4xl)"> <section class="card card-flat grid-col-span(2)@container(--4xl)" aria-labelledby="dash-projects"> <header class="card-header"> <h2 class="card-title" id="dash-projects">Projects</h2> <p class="card-description">Requests in the last 24 hours.</p> <a class="btn btn-sm card-action" href="#">View all</a> </header> <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-label="Projects table"> <table class="table"> <thead> <tr class="table-row"> <th class="table-heading" scope="col">Project</th> <th class="table-heading" scope="col">Status</th> <th class="table-heading" scope="col">Region</th> <th class="table-heading table-numeric" scope="col">Requests</th> </tr> </thead> <tbody> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Atlas</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">Tokyo</td> <td class="table-cell table-numeric">1,284,019</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Borealis</th> <td class="table-cell"> <span class="badge badge-info badge-dot">Building</span> </td> <td class="table-cell">Frankfurt</td> <td class="table-cell table-numeric">402,771</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Cinder</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">Virginia</td> <td class="table-cell table-numeric">96,204</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Drift</th> <td class="table-cell"> <span class="badge badge-danger badge-dot">Failed</span> </td> <td class="table-cell">Sydney</td> <td class="table-cell table-numeric">12,480</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Ember</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">São Paulo</td> <td class="table-cell table-numeric">8,112</td> </tr> </tbody> </table> </div> </section> <section class="card card-flat" aria-labelledby="dash-usage"> <header class="card-header"> <h2 class="card-title" id="dash-usage">Usage</h2> <p class="card-description">Resets on 1 December.</p> </header> <div class="card-body flex flex-col gap-md"> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-bw">Bandwidth</span> <span class="fg-text-muted">74 of 100 GB</span> </div> <meter class="meter" min="0" max="100" low="60" high="90" optimum="0" value="74" aria-labelledby="u-bw"> 74 of 100 GB </meter> </div> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-bm">Build minutes</span> <span class="fg-text-muted">212 of 400</span> </div> <meter class="meter" min="0" max="400" low="240" high="360" optimum="0" value="212" aria-labelledby="u-bm"> 212 of 400 </meter> </div> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-st">Seats</span> <span class="fg-text-muted">4 of 5</span> </div> <meter class="meter" min="0" max="5" low="3" high="4.5" optimum="0" value="4" aria-labelledby="u-st"> 4 of 5 </meter> </div> </div> </section> </div> </div> </main> </div> <dialog class="dialog dialog-drawer dialog-drawer-start" id="dash-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body flex flex-col gap-md"> <a class="navbar-brand h(40) px-xs" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8 4.3333A3.6667 3.6667 0 0 1 8 11.6667Z" fill="currentColor" stroke="none" /> </svg>Atlas </a> <nav class="nav" aria-label="Workspace, in the drawer"> <a class="nav-item" href="#" aria-current="page"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" /> </svg>Overview </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" /> </svg>Projects<span class="nav-end">12</span> </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" /> </svg>Domains </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" /> </svg>Analytics </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" /> </svg>Team </a> <a class="nav-item" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" /> </svg>Settings </a> </nav> <button type="button" class="btn btn-quiet justify-start px-xs mt-auto"> <span class="avatar avatar-xs" aria-hidden="true"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="dash-nav" command="close" aria-label="Close navigation"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M4 4L12 12" /><path d="M4 12L12 4" /> </svg> </button> </dialog></div>import ContrastIcon from '@master/icons-react/native/16/soft/contrast'import HomeIcon from '@master/icons-react/native/16/soft/home'import GridIcon from '@master/icons-react/native/16/soft/grid'import GlobeIcon from '@master/icons-react/native/16/soft/globe'import ChartBarIcon from '@master/icons-react/native/16/soft/chart-bar'import UsersIcon from '@master/icons-react/native/16/soft/users'import SlidersIcon from '@master/icons-react/native/16/soft/sliders'import MenuIcon from '@master/icons-react/native/16/soft/menu'import ArrowUpIcon from '@master/icons-react/native/16/soft/arrow-up'import ArrowDownIcon from '@master/icons-react/native/16/soft/arrow-down'import XIcon from '@master/icons-react/native/16/soft/x'<div className="shell bg-surface-tray fg-text-body text-sm"> <a className="skip" href="#dash-main">Skip to content</a> <aside className="shell-sidebar gap-md p-sm"> <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a> <nav className="nav" aria-label="Workspace"> <a className="nav-item" href="#" aria-current="page"><HomeIcon className="icon" />Overview</a> <a className="nav-item" href="#"> <GridIcon className="icon" />Projects<span className="nav-end">12</span> </a> <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a> <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a> <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a> <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a> </nav> <button type="button" className="btn btn-quiet justify-start px-xs mt-auto"> <span className="avatar avatar-xs" aria-hidden="true"> <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="20" height="20" /><span className="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </aside> <div className="shell-main flex flex-col p(8) pxs(0)@container(--3xl)"> <main className="sheet grow(1) container-inline" id="dash-main" tabIndex={-1}> <header className="navbar" style={{ '--navbar-color': 'var(--color-surface-raised)', '--navbar-padding-x': '1.5rem' } as React.CSSProperties}> <button type="button" className="btn btn-quiet btn-square btn-sm shell-toggle" {...{ commandfor: 'dash-nav', command: 'show-modal' }} aria-label="Open navigation"> <MenuIcon className="icon" /> </button> <h1 className="heading heading-sm">Overview</h1> <div className="navbar-end"> <select className="select select-raised select-sm" aria-label="Period"> <option className="select-option">Last 24 hours</option> <option className="select-option">Last 7 days</option> <option className="select-option">Last 30 days</option> </select> </div> </header> <div className="flex flex-col gap-md p-lg"> <ul className="auto-grid auto-grid-fit" style={{ '--auto-grid-min': '12rem' } as React.CSSProperties} aria-label="Key figures"> <li className="sheet sheet-flat p-md"> <div className="stat"> <p className="stat-label">Requests</p> <div className="stat-row"> <p className="stat-value">1.80M</p> <p className="stat-delta stat-delta-up"> <ArrowUpIcon className="icon" /><span className="sr-only">Up</span>12.4% </p> </div> </div> </li> <li className="sheet sheet-flat p-md"> <div className="stat"> <p className="stat-label">Error rate</p> <div className="stat-row"> <p className="stat-value">0.02%</p> <p className="stat-delta stat-delta-down"> <ArrowDownIcon className="icon" /><span className="sr-only">Down</span>0.4% </p> </div> </div> </li> <li className="sheet sheet-flat p-md"> <div className="stat"> <p className="stat-label">Median latency</p> <div className="stat-row"> <p className="stat-value">48 ms</p> <p className="stat-delta stat-delta-down"> <ArrowDownIcon className="icon" /><span className="sr-only">Down</span>3 ms </p> </div> </div> </li> <li className="sheet sheet-flat p-md"> <div className="stat"> <p className="stat-label">Deployments</p> <div className="stat-row"> <p className="stat-value">37</p> </div> </div> </li> </ul> <div className="grid gap-md grid-cols(3)@container(--4xl)"> <section className="card card-flat grid-col-span(2)@container(--4xl)" aria-labelledby="dash-projects"> <header className="card-header"> <h2 className="card-title" id="dash-projects">Projects</h2> <p className="card-description">Requests in the last 24 hours.</p> <a className="btn btn-sm card-action" href="#">View all</a> </header> <div className="scroll-area scroll-area-inline" tabIndex={0} role="region" aria-label="Projects table"> <table className="table"> <thead> <tr className="table-row"> <th className="table-heading" scope="col">Project</th> <th className="table-heading" scope="col">Status</th> <th className="table-heading" scope="col">Region</th> <th className="table-heading table-numeric" scope="col">Requests</th> </tr> </thead> <tbody> <tr className="table-row"> <th className="table-cell table-primary" scope="row">Atlas</th> <td className="table-cell"> <span className="badge badge-success badge-dot">Ready</span> </td> <td className="table-cell">Tokyo</td> <td className="table-cell table-numeric">1,284,019</td> </tr> <tr className="table-row"> <th className="table-cell table-primary" scope="row">Borealis</th> <td className="table-cell"> <span className="badge badge-info badge-dot">Building</span> </td> <td className="table-cell">Frankfurt</td> <td className="table-cell table-numeric">402,771</td> </tr> <tr className="table-row"> <th className="table-cell table-primary" scope="row">Cinder</th> <td className="table-cell"> <span className="badge badge-success badge-dot">Ready</span> </td> <td className="table-cell">Virginia</td> <td className="table-cell table-numeric">96,204</td> </tr> <tr className="table-row"> <th className="table-cell table-primary" scope="row">Drift</th> <td className="table-cell"> <span className="badge badge-danger badge-dot">Failed</span> </td> <td className="table-cell">Sydney</td> <td className="table-cell table-numeric">12,480</td> </tr> <tr className="table-row"> <th className="table-cell table-primary" scope="row">Ember</th> <td className="table-cell"> <span className="badge badge-success badge-dot">Ready</span> </td> <td className="table-cell">São Paulo</td> <td className="table-cell table-numeric">8,112</td> </tr> </tbody> </table> </div> </section> <section className="card card-flat" aria-labelledby="dash-usage"> <header className="card-header"> <h2 className="card-title" id="dash-usage">Usage</h2> <p className="card-description">Resets on 1 December.</p> </header> <div className="card-body flex flex-col gap-md"> <div className="flex flex-col gap-xs"> <div className="flex items-baseline justify-between gap-sm"> <span className="fg-text-strong" id="u-bw">Bandwidth</span> <span className="fg-text-muted">74 of 100 GB</span> </div> <meter className="meter" min="0" max="100" low={60} high={90} optimum={0} value="74" aria-labelledby="u-bw"> 74 of 100 GB </meter> </div> <div className="flex flex-col gap-xs"> <div className="flex items-baseline justify-between gap-sm"> <span className="fg-text-strong" id="u-bm">Build minutes</span> <span className="fg-text-muted">212 of 400</span> </div> <meter className="meter" min="0" max="400" low={240} high={360} optimum={0} value="212" aria-labelledby="u-bm"> 212 of 400 </meter> </div> <div className="flex flex-col gap-xs"> <div className="flex items-baseline justify-between gap-sm"> <span className="fg-text-strong" id="u-st">Seats</span> <span className="fg-text-muted">4 of 5</span> </div> <meter className="meter" min="0" max="5" low={3} high={4.5} optimum={0} value="4" aria-labelledby="u-st"> 4 of 5 </meter> </div> </div> </section> </div> </div> </main> </div> <dialog className="dialog dialog-drawer dialog-drawer-start" id="dash-nav" closedby="any" aria-label="Navigation"> <div className="dialog-body flex flex-col gap-md"> <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a> <nav className="nav" aria-label="Workspace, in the drawer"> <a className="nav-item" href="#" aria-current="page"> <HomeIcon className="icon" />Overview </a> <a className="nav-item" href="#"> <GridIcon className="icon" />Projects<span className="nav-end">12</span> </a> <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a> <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a> <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a> <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a> </nav> <button type="button" className="btn btn-quiet justify-start px-xs mt-auto"> <span className="avatar avatar-xs" aria-hidden="true"> <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="20" height="20" /><span className="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </div> <button type="button" className="btn btn-quiet btn-square btn-sm dialog-close" {...{ commandfor: 'dash-nav', command: 'close' }} aria-label="Close navigation"> <XIcon className="icon" /> </button> </dialog></div><script> import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast' import HomeIcon from '@master/icons-svelte/native/16/soft/home' import GridIcon from '@master/icons-svelte/native/16/soft/grid' import GlobeIcon from '@master/icons-svelte/native/16/soft/globe' import ChartBarIcon from '@master/icons-svelte/native/16/soft/chart-bar' import UsersIcon from '@master/icons-svelte/native/16/soft/users' import SlidersIcon from '@master/icons-svelte/native/16/soft/sliders' import MenuIcon from '@master/icons-svelte/native/16/soft/menu' import ArrowUpIcon from '@master/icons-svelte/native/16/soft/arrow-up' import ArrowDownIcon from '@master/icons-svelte/native/16/soft/arrow-down' import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell bg-surface-tray fg-text-body text-sm"> <a class="skip" href="#dash-main">Skip to content</a> <aside class="shell-sidebar gap-md p-sm"> <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a> <nav class="nav" aria-label="Workspace"> <a class="nav-item" href="#" aria-current="page"><HomeIcon class="icon" />Overview</a> <a class="nav-item" href="#"> <GridIcon class="icon" />Projects<span class="nav-end">12</span> </a> <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a> <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a> <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a> <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a> </nav> <button type="button" class="btn btn-quiet justify-start px-xs mt-auto"> <span class="avatar avatar-xs" aria-hidden="true"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </aside> <div class="shell-main flex flex-col p(8) pxs(0)@container(--3xl)"> <main class="sheet grow(1) container-inline" id="dash-main" tabindex="-1"> <header class="navbar" style="--navbar-color: var(--color-surface-raised); --navbar-padding-x: 1.5rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="dash-nav" command="show-modal" aria-label="Open navigation"> <MenuIcon class="icon" /> </button> <h1 class="heading heading-sm">Overview</h1> <div class="navbar-end"> <select class="select select-raised select-sm" aria-label="Period"> <option class="select-option">Last 24 hours</option> <option class="select-option">Last 7 days</option> <option class="select-option">Last 30 days</option> </select> </div> </header> <div class="flex flex-col gap-md p-lg"> <ul class="auto-grid auto-grid-fit" style="--auto-grid-min: 12rem" aria-label="Key figures"> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Requests</p> <div class="stat-row"> <p class="stat-value">1.80M</p> <p class="stat-delta stat-delta-up"> <ArrowUpIcon class="icon" /><span class="sr-only">Up</span>12.4% </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Error rate</p> <div class="stat-row"> <p class="stat-value">0.02%</p> <p class="stat-delta stat-delta-down"> <ArrowDownIcon class="icon" /><span class="sr-only">Down</span>0.4% </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Median latency</p> <div class="stat-row"> <p class="stat-value">48 ms</p> <p class="stat-delta stat-delta-down"> <ArrowDownIcon class="icon" /><span class="sr-only">Down</span>3 ms </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Deployments</p> <div class="stat-row"> <p class="stat-value">37</p> </div> </div> </li> </ul> <div class="grid gap-md grid-cols(3)@container(--4xl)"> <section class="card card-flat grid-col-span(2)@container(--4xl)" aria-labelledby="dash-projects"> <header class="card-header"> <h2 class="card-title" id="dash-projects">Projects</h2> <p class="card-description">Requests in the last 24 hours.</p> <a class="btn btn-sm card-action" href="#">View all</a> </header> <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-label="Projects table"> <table class="table"> <thead> <tr class="table-row"> <th class="table-heading" scope="col">Project</th> <th class="table-heading" scope="col">Status</th> <th class="table-heading" scope="col">Region</th> <th class="table-heading table-numeric" scope="col">Requests</th> </tr> </thead> <tbody> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Atlas</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">Tokyo</td> <td class="table-cell table-numeric">1,284,019</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Borealis</th> <td class="table-cell"> <span class="badge badge-info badge-dot">Building</span> </td> <td class="table-cell">Frankfurt</td> <td class="table-cell table-numeric">402,771</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Cinder</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">Virginia</td> <td class="table-cell table-numeric">96,204</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Drift</th> <td class="table-cell"> <span class="badge badge-danger badge-dot">Failed</span> </td> <td class="table-cell">Sydney</td> <td class="table-cell table-numeric">12,480</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Ember</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">São Paulo</td> <td class="table-cell table-numeric">8,112</td> </tr> </tbody> </table> </div> </section> <section class="card card-flat" aria-labelledby="dash-usage"> <header class="card-header"> <h2 class="card-title" id="dash-usage">Usage</h2> <p class="card-description">Resets on 1 December.</p> </header> <div class="card-body flex flex-col gap-md"> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-bw">Bandwidth</span> <span class="fg-text-muted">74 of 100 GB</span> </div> <meter class="meter" min="0" max="100" low="60" high="90" optimum="0" value="74" aria-labelledby="u-bw"> 74 of 100 GB </meter> </div> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-bm">Build minutes</span> <span class="fg-text-muted">212 of 400</span> </div> <meter class="meter" min="0" max="400" low="240" high="360" optimum="0" value="212" aria-labelledby="u-bm"> 212 of 400 </meter> </div> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-st">Seats</span> <span class="fg-text-muted">4 of 5</span> </div> <meter class="meter" min="0" max="5" low="3" high="4.5" optimum="0" value="4" aria-labelledby="u-st"> 4 of 5 </meter> </div> </div> </section> </div> </div> </main> </div> <dialog class="dialog dialog-drawer dialog-drawer-start" id="dash-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body flex flex-col gap-md"> <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a> <nav class="nav" aria-label="Workspace, in the drawer"> <a class="nav-item" href="#" aria-current="page"><HomeIcon class="icon" />Overview</a> <a class="nav-item" href="#"> <GridIcon class="icon" />Projects<span class="nav-end">12</span> </a> <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a> <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a> <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a> <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a> </nav> <button type="button" class="btn btn-quiet justify-start px-xs mt-auto"> <span class="avatar avatar-xs" aria-hidden="true"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="dash-nav" command="close" aria-label="Close navigation"> <XIcon class="icon" /> </button> </dialog></div><script setup>import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import HomeIcon from '@master/icons-vue/native/16/soft/home'import GridIcon from '@master/icons-vue/native/16/soft/grid'import GlobeIcon from '@master/icons-vue/native/16/soft/globe'import ChartBarIcon from '@master/icons-vue/native/16/soft/chart-bar'import UsersIcon from '@master/icons-vue/native/16/soft/users'import SlidersIcon from '@master/icons-vue/native/16/soft/sliders'import MenuIcon from '@master/icons-vue/native/16/soft/menu'import ArrowUpIcon from '@master/icons-vue/native/16/soft/arrow-up'import ArrowDownIcon from '@master/icons-vue/native/16/soft/arrow-down'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template> <div class="shell bg-surface-tray fg-text-body text-sm"> <a class="skip" href="#dash-main">Skip to content</a> <aside class="shell-sidebar gap-md p-sm"> <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a> <nav class="nav" aria-label="Workspace"> <a class="nav-item" href="#" aria-current="page"><HomeIcon class="icon" />Overview</a> <a class="nav-item" href="#"> <GridIcon class="icon" />Projects<span class="nav-end">12</span> </a> <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a> <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a> <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a> <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a> </nav> <button type="button" class="btn btn-quiet justify-start px-xs mt-auto"> <span class="avatar avatar-xs" aria-hidden="true"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </aside> <div class="shell-main flex flex-col p(8) pxs(0)@container(--3xl)"> <main class="sheet grow(1) container-inline" id="dash-main" tabindex="-1"> <header class="navbar" style="--navbar-color: var(--color-surface-raised); --navbar-padding-x: 1.5rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="dash-nav" command="show-modal" aria-label="Open navigation"> <MenuIcon class="icon" /> </button> <h1 class="heading heading-sm">Overview</h1> <div class="navbar-end"> <select class="select select-raised select-sm" aria-label="Period"> <option class="select-option">Last 24 hours</option> <option class="select-option">Last 7 days</option> <option class="select-option">Last 30 days</option> </select> </div> </header> <div class="flex flex-col gap-md p-lg"> <ul class="auto-grid auto-grid-fit" style="--auto-grid-min: 12rem" aria-label="Key figures"> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Requests</p> <div class="stat-row"> <p class="stat-value">1.80M</p> <p class="stat-delta stat-delta-up"> <ArrowUpIcon class="icon" /><span class="sr-only">Up</span>12.4% </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Error rate</p> <div class="stat-row"> <p class="stat-value">0.02%</p> <p class="stat-delta stat-delta-down"> <ArrowDownIcon class="icon" /><span class="sr-only">Down</span>0.4% </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Median latency</p> <div class="stat-row"> <p class="stat-value">48 ms</p> <p class="stat-delta stat-delta-down"> <ArrowDownIcon class="icon" /><span class="sr-only">Down</span>3 ms </p> </div> </div> </li> <li class="sheet sheet-flat p-md"> <div class="stat"> <p class="stat-label">Deployments</p> <div class="stat-row"> <p class="stat-value">37</p> </div> </div> </li> </ul> <div class="grid gap-md grid-cols(3)@container(--4xl)"> <section class="card card-flat grid-col-span(2)@container(--4xl)" aria-labelledby="dash-projects"> <header class="card-header"> <h2 class="card-title" id="dash-projects">Projects</h2> <p class="card-description">Requests in the last 24 hours.</p> <a class="btn btn-sm card-action" href="#">View all</a> </header> <div class="scroll-area scroll-area-inline" tabindex="0" role="region" aria-label="Projects table"> <table class="table"> <thead> <tr class="table-row"> <th class="table-heading" scope="col">Project</th> <th class="table-heading" scope="col">Status</th> <th class="table-heading" scope="col">Region</th> <th class="table-heading table-numeric" scope="col">Requests</th> </tr> </thead> <tbody> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Atlas</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">Tokyo</td> <td class="table-cell table-numeric">1,284,019</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Borealis</th> <td class="table-cell"> <span class="badge badge-info badge-dot">Building</span> </td> <td class="table-cell">Frankfurt</td> <td class="table-cell table-numeric">402,771</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Cinder</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">Virginia</td> <td class="table-cell table-numeric">96,204</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Drift</th> <td class="table-cell"> <span class="badge badge-danger badge-dot">Failed</span> </td> <td class="table-cell">Sydney</td> <td class="table-cell table-numeric">12,480</td> </tr> <tr class="table-row"> <th class="table-cell table-primary" scope="row">Ember</th> <td class="table-cell"> <span class="badge badge-success badge-dot">Ready</span> </td> <td class="table-cell">São Paulo</td> <td class="table-cell table-numeric">8,112</td> </tr> </tbody> </table> </div> </section> <section class="card card-flat" aria-labelledby="dash-usage"> <header class="card-header"> <h2 class="card-title" id="dash-usage">Usage</h2> <p class="card-description">Resets on 1 December.</p> </header> <div class="card-body flex flex-col gap-md"> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-bw">Bandwidth</span> <span class="fg-text-muted">74 of 100 GB</span> </div> <meter class="meter" min="0" max="100" low="60" high="90" optimum="0" value="74" aria-labelledby="u-bw"> 74 of 100 GB </meter> </div> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-bm">Build minutes</span> <span class="fg-text-muted">212 of 400</span> </div> <meter class="meter" min="0" max="400" low="240" high="360" optimum="0" value="212" aria-labelledby="u-bm"> 212 of 400 </meter> </div> <div class="flex flex-col gap-xs"> <div class="flex items-baseline justify-between gap-sm"> <span class="fg-text-strong" id="u-st">Seats</span> <span class="fg-text-muted">4 of 5</span> </div> <meter class="meter" min="0" max="5" low="3" high="4.5" optimum="0" value="4" aria-labelledby="u-st"> 4 of 5 </meter> </div> </div> </section> </div> </div> </main> </div> <dialog class="dialog dialog-drawer dialog-drawer-start" id="dash-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body flex flex-col gap-md"> <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a> <nav class="nav" aria-label="Workspace, in the drawer"> <a class="nav-item" href="#" aria-current="page"><HomeIcon class="icon" />Overview</a> <a class="nav-item" href="#"> <GridIcon class="icon" />Projects<span class="nav-end">12</span> </a> <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a> <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a> <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a> <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a> </nav> <button type="button" class="btn btn-quiet justify-start px-xs mt-auto"> <span class="avatar avatar-xs" aria-hidden="true"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span> </span>Yi-ching Lin </button> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="dash-nav" command="close" aria-label="Close navigation"> <XIcon class="icon" /> </button> </dialog> </div></template>選擇「平板」:統計數字從每列四個改為每列兩個,面板改為上下堆疊。切換到「手機」時,側邊欄會移入抽屜。
#建構方式
- 統計數字使用自動網格。
auto-grid搭配--auto-grid-min: 12rem,在每張圖塊至少有 12rem 寬的前提下,能放幾張就放幾張。主面板較寬時每列四張,平板每列兩張,手機每列一到兩張。欄數由網格自行計算。 - 面板使用容器內的三欄網格。 主面板設為
container-inline。主面板寬度未達 56rem 時採單欄,達到後以grid-cols(3)@container(--4xl)切成三欄。寬面板用grid-col-span(2)@container(--4xl)跨兩欄。側邊欄移開後,主面板變寬,面板就可能恢復三欄。這正是測量容器而不是螢幕的用意。 - 每張圖塊都使用元件庫的表面樣式。 在平面面板上使用統計數值,面板則用卡片。主面板上的圖塊使用
sheet-flat或card-flat,只留一道輪廓,不加陰影,以免在隆起的表面上再疊一層高度。 - 寬表格在自己的面板內捲動。 把表格放進使用
scroll-area-inline的捲動區域,避免表格撐開窄面板、拉寬頁面,並在還有後續欄的邊緣顯示漸淡效果。為區域加上tabindex="0"和名稱,讓使用者可以用鍵盤捲動。
#密度
所有圖塊和面板之間都用 gap-md,讓整頁維持一致的網格。避免為「群組」另設一種間距。如果兩個面板應該放在一起,就合成一個面板。
面板上方的導覽列將 --navbar-padding-x 設為 1.5rem,與面板周圍的內距相同,因此標題會從第一個圖塊的邊緣開始。
#無障礙
- 各項數據組成一份名為「Key figures」的清單,螢幕閱讀器會先報出共有幾項,再逐一朗讀。
- 每個面板都是
<section>,透過aria-labelledby以標題命名,讓使用者能以區域為單位導覽。 - 以文字說明統計數字是上升還是下降,讓輔助技術能傳達變化方向。請參閱統計數值。
- 在量表元素內以文字提供數值,並在旁邊加上可見的標籤。
#相關項目
- 自動網格在可用空間內排入最多等寬欄,由網格自行計算欄數。
- Bento 版面在同一容器內排列幾種尺寸的區塊,欄數隨可用空間調整。
- 統計數值呈現單一數值、它衡量的項目及其變動:低調的標籤、大字的數值和變化幅度。
- 卡片帶有浮起效果的面板,各部分會依卡片可用空間調整。
- 表面托盤、面板與凹槽構成所有元件共用的材質層次。
- 表格用細線分隔資料列,提供可排序的欄標題與對齊的數字。
- 捲動區域內容超出哪一側的邊緣,該側就會淡出。
- 量表顯示已知範圍內的量測值,例如已用的儲存空間、分數或密碼強度。
- 導覽列位於頁面頂端的導覽列,頁面內容捲到它下方時才會顯示背景。
- 導覽清單適合側邊欄或設定頁面的直向導覽清單,目前所在的項目會微微浮起。
- 對話框以覆疊面板呈現的原生模態對話框,無須腳本即可開啟和關閉。
- 略過連結頁面上的第一個連結,取得焦點時才顯示,可略過導覽並跳到內容。