看板頁面把整個畫面交給看板:經過幾個階段的工作一次盡收眼底,並可動手移動。外框是固定式應用程式框架,也就是恰好與檢視區等大的 shell shell-fixed。導覽和看板的標題留在原位,看板占用剩餘的空間,頁面本身則不會捲動。
看板頁面
<div class="shell shell-fixed bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 14rem" data-example="board"> <a class="skip" href="#board-main">Skip to content</a> <aside class="shell-sidebar gap-md p-sm bxe(1) bxe-solid b-line-hair"> <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="#"> <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="#" 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"> <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</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> <main class="shell-main flex flex-col" id="board-main" tabindex="-1"> <header class="shrink(0) flex flex-col gap-xs px-lg pt-lg pb-md"> <div class="shell-toggle"> <div class="flex items-center gap-xs"> <button type="button" class="btn btn-quiet btn-square btn-sm btn-hang-start" commandfor="board-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> <span class="fg-text-muted">Projects</span> </div> </div> <div class="flex flex-wrap items-end justify-between gap-md"> <div class="flex flex-col gap-3xs min-w(0)"> <h1 class="heading heading-lg">Launch plan</h1> <p class="m(0) fg-text-muted">Atlas 2.0 ships on 3 December.</p> </div> <button type="button" class="btn" data-reset> <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.1626 8.6029A4.8333 4.8333 0 0 0 12.5278 9.5552A4.8333 4.8333 0 0 0 4.5522 4.5549L2.653 6.3845A0.5001 0.5001 0 0 1 2.4222 6.492A0.7044 0.7044 0 0 1 1.8413 5.9111A0.4998 0.4998 0 0 1 1.9862 5.6401L3.8478 3.8451Q4.7383 2.9615 5.9133 2.5222Q7.2234 2.0323 8.6132 2.1898Q10.003 2.3473 11.1703 3.1179A5.8276 5.8276 0 0 1 13.4737 9.8799Q13.0195 11.2028 12.0149 12.176A5.8276 5.8276 0 0 1 4.9149 12.9636Q3.7213 12.2343 2.9883 11.0431Q2.3309 9.9747 2.1708 8.7305A0.5 0.5 0 0 1 2.5032 8.1942Q2.6066 8.1862 2.7088 8.1685A0.4998 0.4998 0 0 1 3.1626 8.6029Z" fill="currentColor" stroke="none" fill-rule="evenodd" /> <path d="M2.3333 2.3333L2.3333 5.8A0.2 0.2 0 0 0 2.5333 6L6 6" /> </svg>Reset</button> </div> </header> <div class="kanban grow(1) min-h(0) px-lg pb-lg" role="group" aria-label="Launch plan"> <section class="kanban-column" data-value="backlog" aria-labelledby="board-backlog"> <header class="kanban-header"> <h2 class="kanban-title" id="board-backlog">Backlog</h2> <span class="badge badge-sm" data-count="backlog">7 <span class="sr-only">cards</span> </span> </header> <ol class="kanban-items"> <li class="kanban-item" data-value="emails"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Audit the onboarding emails</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Audit the onboarding emails"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Audit the onboarding emails"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Lifecycle</span> <span class="avatar avatar-xs" role="img" aria-label="Yi-ching Lin"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">YL</span> </span> </div> </article> </li> <li class="kanban-item" data-value="translate"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Translate the pricing page into Japanese, Korean and Traditional Chinese</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Translate the pricing page into Japanese, Korean and Traditional Chinese"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Translate the pricing page into Japanese, Korean and Traditional Chinese"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Localization</span> <span class="avatar avatar-xs" role="img" aria-label="Seo-yeon Kim"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">SK</span> </span> </div> </article> </li> <li class="kanban-item" data-value="pricing"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Price the annual plan</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Price the annual plan"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Price the annual plan"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Pricing</span> <span class="avatar avatar-xs" role="img" aria-label="Po-han Chen"> <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">PC</span> </span> </div> </article> </li> <li class="kanban-item" data-value="tour"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Record the product tour</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Record the product tour"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Record the product tour"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Video</span> <span class="avatar avatar-xs" role="img" aria-label="Haruto Takahashi"> <img class="avatar-image" src="/demo/people/haruto-takahashi.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">HT</span> </span> </div> </article> </li> <li class="kanban-item" data-value="support"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Brief the support team on what changes</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Brief the support team on what changes"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Brief the support team on what changes"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Support</span> <span class="avatar avatar-xs" role="img" aria-label="Mei-ling Wang"> <img class="avatar-image" src="/demo/people/meiling-wang.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">MW</span> </span> </div> </article> </li> <li class="kanban-item" data-value="status"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Set up the status page</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Set up the status 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="M4.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Set up the status 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"> <circle cx="6" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Infrastructure</span> <span class="avatar avatar-xs" role="img" aria-label="Po-han Chen"> <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">PC</span> </span> </div> </article> </li> <li class="kanban-item" data-value="webinar"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Schedule the customer webinar</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Schedule the customer webinar"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Schedule the customer webinar"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Events</span> <span class="avatar avatar-xs" role="img" aria-label="Yi-ching Lin"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">YL</span> </span> </div> </article> </li> </ol> <p class="kanban-empty">Nothing waiting</p> </section> <section class="kanban-column" data-value="progress" aria-labelledby="board-progress"> <header class="kanban-header"> <h2 class="kanban-title" id="board-progress">In progress</h2> <span class="badge badge-sm" data-count="progress">3 <span class="sr-only">cards</span> </span> </header> <ol class="kanban-items"> <li class="kanban-item" data-value="post"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Draft the launch post</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Draft the launch post"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Draft the launch post"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Writing</span> <span class="avatar avatar-xs" role="img" aria-label="Haruto Takahashi"> <img class="avatar-image" src="/demo/people/haruto-takahashi.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">HT</span> </span> </div> </article> </li> <li class="kanban-item" data-value="table"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Design the comparison table</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Design the comparison table"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Design the comparison table"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Design</span> <span class="avatar avatar-xs" role="img" aria-label="Yi-ching Lin"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">YL</span> </span> </div> </article> </li> <li class="kanban-item" data-value="checkout"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Load-test the checkout</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Load-test the checkout"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Load-test the checkout"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Engineering</span> <span class="avatar avatar-xs" role="img" aria-label="Seo-yeon Kim"> <img class="avatar-image" src="/demo/people/seoyeon-kim.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">SK</span> </span> </div> </article> </li> </ol> <p class="kanban-empty">Nothing in progress</p> </section> <section class="kanban-column" data-value="review" aria-labelledby="board-review"> <header class="kanban-header"> <h2 class="kanban-title" id="board-review">In review</h2> <span class="badge badge-sm" data-count="review">0 <span class="sr-only">cards</span> </span> </header> <ol class="kanban-items"></ol> <p class="kanban-empty">Nothing in review</p> </section> <section class="kanban-column" data-value="done" aria-labelledby="board-done"> <header class="kanban-header"> <h2 class="kanban-title" id="board-done">Done</h2> <span class="badge badge-sm" data-count="done">2 <span class="sr-only">cards</span> </span> </header> <ol class="kanban-items"> <li class="kanban-item" data-value="name"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Name the release</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Name the release"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Name the release"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Brand</span> <span class="avatar avatar-xs" role="img" aria-label="Po-han Chen"> <img class="avatar-image" src="/demo/people/pohan-chen.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">PC</span> </span> </div> </article> </li> <li class="kanban-item" data-value="date"> <article class="card gap-xs"> <div class="card-header"> <p class="card-title">Book the launch date</p> <span class="card-action kanban-controls"> <button type="button" class="kanban-move" popovertarget="board-mover" aria-label="Move Book the launch date"> <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.2559 2.3817A0.4996 0.4996 0 0 0 4.1667 2.6667L4.1673 13.3578A0.5 0.5 0 0 0 5.1613 13.4067L5.1667 13.3333L5.1653 2.6288A0.5007 0.5007 0 0 0 5.0775 2.3817A0.7044 0.7044 0 0 0 4.2559 2.3817Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M2.3333 5L4.5253 2.8081A0.2 0.2 0 0 1 4.8081 2.8081L7 5" transform="rotate(90 8 8)" /> <path d="M11.8333 13.3333L11.8327 2.6422A0.5 0.5 0 0 0 10.8387 2.5933L10.8333 2.6667L10.8347 13.3712A0.5007 0.5007 0 0 0 10.9225 13.6183A0.7044 0.7044 0 0 0 11.7441 13.6183A0.4996 0.4996 0 0 0 11.8333 13.3333Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="rotate(90 8 8)" /> <path d="M9 11L11.1919 13.1919A0.2 0.2 0 0 0 11.4747 13.1919L13.6667 11" transform="rotate(90 8 8)" /> </svg> </button> <button type="button" class="kanban-handle" aria-pressed="false" aria-label="Drag Book the launch date"> <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" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="4" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="8" r="1" fill="currentColor" stroke="none" /> <circle cx="6" cy="12" r="1" fill="currentColor" stroke="none" /> <circle cx="10" cy="12" r="1" fill="currentColor" stroke="none" /> </svg> </button> </span> </div> <div class="flex items-center justify-between gap-xs"> <span class="badge badge-sm">Planning</span> <span class="avatar avatar-xs" role="img" aria-label="Mei-ling Wang"> <img class="avatar-image" src="/demo/people/meiling-wang.webp" alt width="20" height="20"> <span class="avatar-fallback" aria-hidden="true">MW</span> </span> </div> </article> </li> </ol> <p class="kanban-empty">Nothing done yet</p> </section> <div class="popover popover-end" popover id="board-mover"> <form class="kanban-mover" aria-label="Move card"> <label class="field">Column <select class="select" name="column"></select> </label> <label class="field">Position <select class="select" name="position"></select> </label> <div class="kanban-mover-actions"> <button type="button" class="btn btn-sm" popovertarget="board-mover" popovertargetaction="hide">Cancel</button> <button type="submit" class="btn btn-sm btn-primary">Move</button> </div> </form> </div> <div class="kanban-preview" popover="manual" aria-hidden="true"></div> <p class="kanban-status" role="status"></p> </div> </main> <dialog class="dialog dialog-drawer dialog-drawer-start" id="board-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="#"> <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="#" 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"> <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</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="board-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>/** * A board on local data. The kanban behavior does all the moving: the pointer, the keys and the mover. This * module only reads what it leaves: the arrangement, `value`, from which each column's count is written after * every `change`, and which Reset sets back to the one the markup started with. Saving the arrangement is the * application's: do it where the counts are written. Returns the function that stops it. */import { kanban } from '@master/ui/behaviors/kanban.js'export function mount(root) { const controller = new AbortController() const { signal } = controller const element = root.querySelector('.kanban') const board = kanban(element) const status = element.querySelector('.kanban-status') /** The arrangement the markup holds before anything moves. */ const first = board.value /** Each column's count is the length of its items in the arrangement, never a number kept beside it. */ const count = () => { for (const { value, items } of board.value) { const badge = element.querySelector(`[data-count="${value}"]`) if (badge) badge.firstChild.data = String(items.length) } } // A move's events are the ones whose target is the board; a select in the mover sends its own through it. element.addEventListener('change', (event) => { if (event.target === element) count() }, { signal }) // Setting the value arranges the board and dispatches nothing, so the counts are written here. root.querySelector('[data-reset]').addEventListener('click', () => { board.value = first count() status.textContent = 'The board is back in its first arrangement.' }, { signal }) count() return () => { controller.abort() board() }}契約記載在看板元件的頁面:類別、按鍵、移動表單和行為。本頁說明的是看板周圍的畫面:有哪些區域、哪些會捲動,以及畫面變窄時各區域如何因應。
#建構方式
- 外框是
shell shell-fixed。 框架高度為100dvh,並裁切超出範圍的內容,因此看板無論做什麼都不會移動頁面。這裡透過--shell-sidebar將側邊欄設為14rem寬,在平板上留給看板更多空間。 - 主區域是直向的一欄。
shell-main套用flex flex-col:先是工具區,再是看板。在固定式框架中,主區域本來就有min-height: 0和等同檢視區的高度,其下的直欄才有明確的高度可以分配。 - 工具區維持自己的高度。 帶有
shrink(0)的<header>包含標題、一行說明和「Reset」,做法與頁面標頭區塊相同:分列兩端並可換行,因此文字放大時,「Reset」會換到標題下方,而不會擠壓標題。 - 看板占用其餘空間。
kanban根元素套用grow(1) min-h(0):它會延展到工具區下方的空間,並允許比自身內容更矮。正是這一組設定讓看板止於畫面底部。少了它,看板會與最長的欄等高,改由主區域捲動。 - 各欄止於看板的底部。 欄的高度隨內容而定,但不會超過看板,因此較短的欄會提早結束,只有較長的欄會延伸到底部,其清單也從這裡開始捲動。
- 邊距位於捲動容器內。 主區域的邊距是
1.5rem。工具區以px-lg取得這段邊距,看板則把它當作自己的內距px-lg pb-lg,而不是外距:各欄會滑到區域邊緣之下,並在側邊欄的細線處消失;第一欄與標題從同一條線開始;看板捲到盡頭時,最後一欄之後也留有同樣的1.5rem。
#哪些部分會捲動
會捲動的有三處,各自容納一種內容。
| 捲動的部分 | 方向 | 原因 |
|---|---|---|
看板 kanban | 橫向 | 四個 17.5rem 的欄加上間距和邊距,共需 75.25rem;這裡沒有任何畫面有這麼寬 |
欄的清單 kanban-items | 縱向 | Backlog 有七張卡片,看板比它們矮。欄的標頭會留在清單上方 |
側邊欄 shell-sidebar | 縱向 | 只有導覽比畫面長時才會捲動;這裡並沒有 |
頁面不捲動,是因為它沒有自己要呈現的內容:標題已經在可見範圍內,看板也沒有需要讀者捲到的盡頭。如果文件也跟著移動,在底部附近拖曳時就有兩處可以捲動,在手機上沿著欄滑動有時也會帶動頁面。每個捲動容器還會把過度捲動限制在自身之內,因此清單捲到盡頭時,不會帶動看板或觸發瀏覽器自己的導覽手勢。
搬移卡片期間,行為會替忙碌的那隻手捲動:指標靠近看板的開頭或結尾時捲動看板,靠近欄的頂端或底部時捲動指標下方那一欄的清單。這只有在兩者本身就是捲動容器時才行得通,這也是要為看板設定高度、不讓文件接手捲動的原因。
#平板與手機
看板中沒有任何內容會重新排列。各欄在任何尺寸下都維持原本的寬度,由畫面決定能顯示幾欄。
- 桌面,寬 1280:三欄加上第四欄的一部分。露出的這一部分暗示看板還有後續。
- 平板,寬 768:框架恰好是 48rem,因此側邊欄仍然顯示。看板有 34rem:一欄加上下一欄的大半。
- 手機,寬 390:框架小於 48rem 時,側邊欄會收起,標題上方的一列放著按鈕,用來在抽屜中開啟相同的導覽。看板顯示一欄和第二欄的邊緣。欄寬為
min(17.5rem, 100% - 2rem),因此即使在更窄的手機上,下一欄也會從邊緣露出,四欄絕不會被擠成四條細縫。
按鈕獨占一列,這一列是 shell-toggle,會隨抽屜一起退場,因此在任何寬度下,標題都與第一欄從同一條線開始。按鈕以 btn-hang-start 伸入邊距,圖示也因此落在同一條線上。
在觸控螢幕上,從卡片開始的滑動會捲動:橫向移動看板,縱向移動清單。只有握把會接收觸控來拖曳,卡片的兩個控制項也都達到 44px。
#資料
卡片移動期間,範例不寫入任何東西。行為確認移動後,會從看板派送 change;範例接著讀取排列 value,並依各欄項目的數量寫入該欄的計數,因此計數不可能與下方的卡片不一致。「Reset」會把 value 設為標記一開始的排列。設定 value 不會派送任何事件,因此計數會緊接著寫入。
這個事件監聽器也是應用程式儲存資料的地方。範例不保存任何東西:排列只存在於頁面中,重新載入後就會消失。行為說明了 value、move() 和兩個事件所保證的內容。
這個看板沒有搜尋、沒有篩選、無法新增或刪除卡片,欄也沒有數量上限。這些功能都會改變「位置」的意義:篩選後的欄會把第三張卡片顯示成第一張,已滿的欄則必須拒絕放入。加入這些功能之前,請先決定各情況的規則。
#使用時機
當事物所處的階段是它最重要的資訊,而移動它是最主要的操作時,請使用看板頁面。兩到六個階段易於閱讀;超過這個數量,就該改用帶有狀態欄的表格。
#無障礙
- 地標。 側邊欄是
<aside>,內含品牌、<nav aria-label="Workspace">和帳號;看板及其工具區是唯一的<main>。工具區的<header>位於<main>內,因此不是 banner 地標。skip連結排在最前面,並通往主區域。 - 大綱。 頁面的
<h1>是看板的名稱,每一欄的標題是<h2>。看板是與頁面同名的role="group"。 - 各欄都是區域。 每一欄都是以其標題命名的
<section>,欄內的卡片是原生清單,會說出卡片的數量。標題旁的計數讓眼睛看到同一個數字,螢幕閱讀器則會在數字後讀到「cards」。 - 抽屜是原生模態
<dialog>:開啟期間把焦點留在內部,可用 Esc、在外部按下或關閉按鈕關閉,並把焦點交還給開啟它的按鈕。它的導覽有自己的標籤「Workspace, in the drawer」。 - 每個捲動容器都能用按鍵到達。 看板和清單內含按鈕,因此 Tab 會依序逐欄走過各張卡片,瀏覽器則會橫向和縱向把每張卡片捲入可見範圍。移動之後,卡片會在新位置被捲入可見範圍,焦點則留在它的握把上。
- 移動表單是所有卡片共用的一個表單。範例會以開啟它的卡片為它命名,例如「Move Draft the launch post」;狀態區域則會說出每次拿起、選擇位置和放下,以及看板已重設。
- 占滿整個畫面的外框無法隨文字增高。文字放大為兩倍時,工具區會換行,看板會變矮,但所有內容仍可透過同樣的兩種捲動方式到達。
#相關項目
- 看板由多個欄組成的看板,可透過拖曳、按鍵或選擇位置,在欄內或跨欄移動項目。
- 可排序清單拖曳把手或使用按鍵即可調整項目順序的清單。
- 卡片帶有浮起效果的面板,各部分會依卡片可用空間調整。
- 徽章顯示狀態、類別或數量的小型膠囊標籤;只有在顏色具有意義時才使用色彩。
- 頭像以相片或姓名縮寫代表個人或團隊,可單獨顯示或重疊排列。
- 彈出面板錨定在開啟按鈕旁的彈出面板。
- 下拉選單原生下拉選單,選項清單採用與介面一致的樣式。
- 按鈕凸起的控制項,懸停時微微抬升,按下時向內凹陷。
- 標題以頁面的高對比文字色呈現標題,搭配上方的前導標籤與下方的引言。
- 導覽清單適合側邊欄或設定頁面的直向導覽清單,目前所在的項目會微微浮起。
- 對話框以覆疊面板呈現的原生模態對話框,無須腳本即可開啟和關閉。
- 略過連結頁面上的第一個連結,取得焦點時才顯示,可略過導覽並跳到內容。