数据看板在顶部横向排列几项指标,下方放置面板。页面框架采用托盘上的 应用框架,主面板内的两个网格均可在无需视口断点的情况下完成布局。
数据看板
<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 时,网格为单列,达到 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 布局把不同尺寸的区块排在同一个网格中,列数随网格自身的可用宽度调整。
- 统计指标显示一项指标的数值、含义和变化:低调的标签、醒目的数值和变化幅度。
- 卡片凸起的面板,部件会随卡片的可用空间调整。
- 表面托盘、凸起面板与凹槽构成所有组件共用的材质层级。
- 表格用细线分隔数据行,支持可排序表头和数值对齐。
- 滚动区域可滚动的区域。对应方向还有内容时,边缘渐隐。
- 计量条显示已知范围内的测量值,例如已用存储空间、分数或密码强度。
- 导航栏位于页面顶部,内容滚过栏下方时呈现磨砂玻璃背景。
- 纵向导航用于侧边栏或设置页面的纵向导航链接,当前项会微微浮起。
- 对话框以浮层面板呈现的原生模态对话框,打开和关闭均无需脚本。
- 跳过链接页面中的首个链接,聚焦时出现,可跳过导航直达内容。