탐색

v2.1.0
사이트 페이지

페이지

최소 높이가 뷰포트 높이인 프레임에 헤더, 본문 영역, 푸터를 배치하는 레이아웃입니다.

페이지는 헤더, 본문 영역, 푸터를 담고 전체가 함께 스크롤되는 문서 프레임입니다. 레이아웃 클래스 page를 사용해 프레임의 최소 높이를 뷰포트 높이로 지정하고 나머지는 유틸리티로 구성합니다.

페이지

<div class="page bg-surface-base fg-text-body text-sm">  <a class="skip" href="#page-main">Skip to content</a>  <header class="navbar" style="--navbar-padding-x: max(1.5rem, calc(50% - 21rem))">    <a class="navbar-brand" 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="navbar-nav" aria-label="Main">      <a class="navbar-link" href="#">Product</a>      <a class="navbar-link" href="#">Pricing</a>      <a class="navbar-link" href="#">Docs</a>      <a class="navbar-link" href="#" aria-current="page">Changelog</a>    </nav>    <div class="navbar-end">      <a class="btn btn-sm" href="#">Sign in</a>      <button type="button" class="btn btn-quiet btn-square btn-sm navbar-toggle" popovertarget="page-menu" aria-label="Open the menu">        <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>      <div class="menu menu-end" id="page-menu" popover>        <a class="menu-item" href="#">Product</a>        <a class="menu-item" href="#">Pricing</a>        <a class="menu-item" href="#">Docs</a>        <a class="menu-item" href="#" aria-current="page">Changelog</a>      </div>    </div>  </header>  <main class="grow(1) w-full max-w(720) mx-auto px-lg py-2xl" id="page-main" tabindex="-1">    <p class="eyebrow">Changelog</p>    <h1 class="heading heading-2xl mt-xs">What shipped this month</h1>    <p class="lead mt-md">      Every change to Atlas, newest first. Subscribe to the feed to hear about them as they land.    </p>    <div class="flex flex-col gap-xl mt-2xl">      <article class="flex flex-col gap-xs">        <p class="m(0) text-xs fg-text-muted">          <span class="badge badge-sm">4.2</span>          <time class="ml-xs" datetime="2026-10-28">28 October</time>        </p>        <h2 class="heading">Faster cold builds</h2>        <p class="m(0) leading-md">          Dependency caches are now restored before the install step, which removes about forty seconds from a cold build. Nothing to configure.        </p>      </article>      <article class="flex flex-col gap-xs">        <p class="m(0) text-xs fg-text-muted">          <span class="badge badge-sm">4.1</span>          <time class="ml-xs" datetime="2026-10-14">14 October</time>        </p>        <h2 class="heading">Preview comments</h2>        <p class="m(0) leading-md">          Leave a comment on any preview deployment, pinned to the element you clicked. Comments follow the element between deployments.        </p>      </article>      <article class="flex flex-col gap-xs">        <p class="m(0) text-xs fg-text-muted">          <span class="badge badge-sm">4.0</span>          <time class="ml-xs" datetime="2026-10-01">1 October</time>        </p>        <h2 class="heading">A new dashboard</h2>        <p class="m(0) leading-md">          Projects, domains and usage now live on one page, and every list can be filtered from the keyboard.        </p>      </article>    </div>  </main>  <footer class="bt(1) bt-solid b-line-hair">    <div class="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">      <span>© 2026 Atlas Labs</span>      <nav class="flex flex-wrap gap-lg" aria-label="Footer">        <a class="link link-quiet" href="#">Privacy</a>        <a class="link link-quiet" href="#">Terms</a>        <a class="link link-quiet" href="#">Status</a>      </nav>    </div>  </footer></div>
import ContrastIcon from '@master/icons-react/native/16/soft/contrast'import MenuIcon from '@master/icons-react/native/16/soft/menu'<div className="page bg-surface-base fg-text-body text-sm">  <a className="skip" href="#page-main">Skip to content</a>  <header className="navbar" style={{ '--navbar-padding-x': 'max(1.5rem, calc(50% - 21rem))' } as React.CSSProperties}>    <a className="navbar-brand" href="#"><ContrastIcon className="icon" />Atlas</a>    <nav className="navbar-nav" aria-label="Main">      <a className="navbar-link" href="#">Product</a>      <a className="navbar-link" href="#">Pricing</a>      <a className="navbar-link" href="#">Docs</a>      <a className="navbar-link" href="#" aria-current="page">Changelog</a>    </nav>    <div className="navbar-end">      <a className="btn btn-sm" href="#">Sign in</a>      <button type="button" className="btn btn-quiet btn-square btn-sm navbar-toggle" popoverTarget="page-menu" aria-label="Open the menu">        <MenuIcon className="icon" />      </button>      <div className="menu menu-end" id="page-menu" popover="">        <a className="menu-item" href="#">Product</a>        <a className="menu-item" href="#">Pricing</a>        <a className="menu-item" href="#">Docs</a>        <a className="menu-item" href="#" aria-current="page">Changelog</a>      </div>    </div>  </header>  <main className="grow(1) w-full max-w(720) mx-auto px-lg py-2xl" id="page-main" tabIndex={-1}>    <p className="eyebrow">Changelog</p>    <h1 className="heading heading-2xl mt-xs">What shipped this month</h1>    <p className="lead mt-md">      Every change to Atlas, newest first. Subscribe to the feed to hear about them as they land.    </p>    <div className="flex flex-col gap-xl mt-2xl">      <article className="flex flex-col gap-xs">        <p className="m(0) text-xs fg-text-muted">          <span className="badge badge-sm">4.2</span>          <time className="ml-xs" dateTime="2026-10-28">28 October</time>        </p>        <h2 className="heading">Faster cold builds</h2>        <p className="m(0) leading-md">          Dependency caches are now restored before the install step, which removes about forty seconds from a cold build. Nothing to configure.        </p>      </article>      <article className="flex flex-col gap-xs">        <p className="m(0) text-xs fg-text-muted">          <span className="badge badge-sm">4.1</span>          <time className="ml-xs" dateTime="2026-10-14">14 October</time>        </p>        <h2 className="heading">Preview comments</h2>        <p className="m(0) leading-md">          Leave a comment on any preview deployment, pinned to the element you clicked. Comments follow the element between deployments.        </p>      </article>      <article className="flex flex-col gap-xs">        <p className="m(0) text-xs fg-text-muted">          <span className="badge badge-sm">4.0</span>          <time className="ml-xs" dateTime="2026-10-01">1 October</time>        </p>        <h2 className="heading">A new dashboard</h2>        <p className="m(0) leading-md">          Projects, domains and usage now live on one page, and every list can be filtered from the keyboard.        </p>      </article>    </div>  </main>  <footer className="bt(1) bt-solid b-line-hair">    <div className="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">      <span>© 2026 Atlas Labs</span>      <nav className="flex flex-wrap gap-lg" aria-label="Footer">        <a className="link link-quiet" href="#">Privacy</a>        <a className="link link-quiet" href="#">Terms</a>        <a className="link link-quiet" href="#">Status</a>      </nav>    </div>  </footer></div>
<script>  import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast'  import MenuIcon from '@master/icons-svelte/native/16/soft/menu'</script><div class="page bg-surface-base fg-text-body text-sm">  <a class="skip" href="#page-main">Skip to content</a>  <header class="navbar" style="--navbar-padding-x: max(1.5rem, calc(50% - 21rem))">    <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a>    <nav class="navbar-nav" aria-label="Main">      <a class="navbar-link" href="#">Product</a>      <a class="navbar-link" href="#">Pricing</a>      <a class="navbar-link" href="#">Docs</a>      <a class="navbar-link" href="#" aria-current="page">Changelog</a>    </nav>    <div class="navbar-end">      <a class="btn btn-sm" href="#">Sign in</a>      <button type="button" class="btn btn-quiet btn-square btn-sm navbar-toggle" popovertarget="page-menu" aria-label="Open the menu">        <MenuIcon class="icon" />      </button>      <div class="menu menu-end" id="page-menu" popover>        <a class="menu-item" href="#">Product</a>        <a class="menu-item" href="#">Pricing</a>        <a class="menu-item" href="#">Docs</a>        <a class="menu-item" href="#" aria-current="page">Changelog</a>      </div>    </div>  </header>  <main class="grow(1) w-full max-w(720) mx-auto px-lg py-2xl" id="page-main" tabindex="-1">    <p class="eyebrow">Changelog</p>    <h1 class="heading heading-2xl mt-xs">What shipped this month</h1>    <p class="lead mt-md">      Every change to Atlas, newest first. Subscribe to the feed to hear about them as they land.    </p>    <div class="flex flex-col gap-xl mt-2xl">      <article class="flex flex-col gap-xs">        <p class="m(0) text-xs fg-text-muted">          <span class="badge badge-sm">4.2</span>          <time class="ml-xs" datetime="2026-10-28">28 October</time>        </p>        <h2 class="heading">Faster cold builds</h2>        <p class="m(0) leading-md">          Dependency caches are now restored before the install step, which removes about forty seconds from a cold build. Nothing to configure.        </p>      </article>      <article class="flex flex-col gap-xs">        <p class="m(0) text-xs fg-text-muted">          <span class="badge badge-sm">4.1</span>          <time class="ml-xs" datetime="2026-10-14">14 October</time>        </p>        <h2 class="heading">Preview comments</h2>        <p class="m(0) leading-md">          Leave a comment on any preview deployment, pinned to the element you clicked. Comments follow the element between deployments.        </p>      </article>      <article class="flex flex-col gap-xs">        <p class="m(0) text-xs fg-text-muted">          <span class="badge badge-sm">4.0</span>          <time class="ml-xs" datetime="2026-10-01">1 October</time>        </p>        <h2 class="heading">A new dashboard</h2>        <p class="m(0) leading-md">          Projects, domains and usage now live on one page, and every list can be filtered from the keyboard.        </p>      </article>    </div>  </main>  <footer class="bt(1) bt-solid b-line-hair">    <div class="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">      <span>© 2026 Atlas Labs</span>      <nav class="flex flex-wrap gap-lg" aria-label="Footer">        <a class="link link-quiet" href="#">Privacy</a>        <a class="link link-quiet" href="#">Terms</a>        <a class="link link-quiet" href="#">Status</a>      </nav>    </div>  </footer></div>
<script setup>import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import MenuIcon from '@master/icons-vue/native/16/soft/menu'</script><template>  <div class="page bg-surface-base fg-text-body text-sm">    <a class="skip" href="#page-main">Skip to content</a>    <header class="navbar" style="--navbar-padding-x: max(1.5rem, calc(50% - 21rem))">      <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="navbar-nav" aria-label="Main">        <a class="navbar-link" href="#">Product</a>        <a class="navbar-link" href="#">Pricing</a>        <a class="navbar-link" href="#">Docs</a>        <a class="navbar-link" href="#" aria-current="page">Changelog</a>      </nav>      <div class="navbar-end">        <a class="btn btn-sm" href="#">Sign in</a>        <button type="button" class="btn btn-quiet btn-square btn-sm navbar-toggle" popovertarget="page-menu" aria-label="Open the menu">          <MenuIcon class="icon" />        </button>        <div class="menu menu-end" id="page-menu" popover>          <a class="menu-item" href="#">Product</a>          <a class="menu-item" href="#">Pricing</a>          <a class="menu-item" href="#">Docs</a>          <a class="menu-item" href="#" aria-current="page">Changelog</a>        </div>      </div>    </header>    <main class="grow(1) w-full max-w(720) mx-auto px-lg py-2xl" id="page-main" tabindex="-1">      <p class="eyebrow">Changelog</p>      <h1 class="heading heading-2xl mt-xs">What shipped this month</h1>      <p class="lead mt-md">        Every change to Atlas, newest first. Subscribe to the feed to hear about them as they land.      </p>      <div class="flex flex-col gap-xl mt-2xl">        <article class="flex flex-col gap-xs">          <p class="m(0) text-xs fg-text-muted">            <span class="badge badge-sm">4.2</span>            <time class="ml-xs" datetime="2026-10-28">28 October</time>          </p>          <h2 class="heading">Faster cold builds</h2>          <p class="m(0) leading-md">            Dependency caches are now restored before the install step, which removes about forty seconds from a cold build. Nothing to configure.          </p>        </article>        <article class="flex flex-col gap-xs">          <p class="m(0) text-xs fg-text-muted">            <span class="badge badge-sm">4.1</span>            <time class="ml-xs" datetime="2026-10-14">14 October</time>          </p>          <h2 class="heading">Preview comments</h2>          <p class="m(0) leading-md">            Leave a comment on any preview deployment, pinned to the element you clicked. Comments follow the element between deployments.          </p>        </article>        <article class="flex flex-col gap-xs">          <p class="m(0) text-xs fg-text-muted">            <span class="badge badge-sm">4.0</span>            <time class="ml-xs" datetime="2026-10-01">1 October</time>          </p>          <h2 class="heading">A new dashboard</h2>          <p class="m(0) leading-md">            Projects, domains and usage now live on one page, and every list can be filtered from the keyboard.          </p>        </article>      </div>    </main>    <footer class="bt(1) bt-solid b-line-hair">      <div class="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">        <span>© 2026 Atlas Labs</span>        <nav class="flex flex-wrap gap-lg" aria-label="Footer">          <a class="link link-quiet" href="#">Privacy</a>          <a class="link link-quiet" href="#">Terms</a>          <a class="link link-quiet" href="#">Status</a>        </nav>      </div>    </footer>  </div></template>
페이지를 스크롤하면 콘텐츠가 내비게이션 바 뒤로 지나갈 때 내비게이션 바에 표면 효과가 적용됩니다.

#구성 방법

  • 프레임에 page 적용. 프레임은 세로로 배치되며 최소 높이는 100dvh입니다. 동적 뷰포트 단위는 휴대폰의 도구 모음이 나타나거나 사라질 때 화면에 보이는 높이를 따라가므로, 프레임의 최소 높이가 가시 영역을 넘거나 빈 공간을 남기지 않습니다. 이 구성에서 유틸리티로 표현할 수 없는 부분은 이 설정뿐입니다.
  • 본문 영역에 grow(1) 적용. 본문 영역이 남은 공간을 채우므로 짧은 페이지에서도 푸터가 맨 아래에 놓입니다.
  • 영역 대신 콘텐츠에 너비 제한 적용. 헤더와 푸터는 전체 너비를 차지합니다. 본문 영역과 푸터 내부 콘텐츠는 같은 너비 제한인 max-w(720) mx-auto px-lg를 사용하므로 양쪽 가장자리가 맞춰집니다. 내비게이션 바는 --navbar-padding-x: max(1.5rem, calc(50% - 21rem))로 같은 가장자리에 맞춥니다. 가운데에서 너비의 절반만큼 바깥쪽입니다. 색인 페이지에는 더 넓은 너비를 사용하고, 글을 읽는 페이지에는 이 너비를 사용합니다.
  • 컴포넌트로 표면 구성. 상단에는 스크롤할 때 자체적으로 상단에 붙는 내비게이션 바를 사용합니다. 푸터 위의 가는 선은 테두리 유틸리티로 만듭니다.

#짧은 페이지

콘텐츠가 뷰포트보다 짧아도 본문 영역이 남은 공간을 채우므로 푸터는 맨 아래에 유지됩니다. 본문 영역에 flex items-center justify-center를 적용해 짧은 콘텐츠를 가운데에 배치합니다.

짧은 페이지

<div class="page bg-surface-base fg-text-body text-sm">  <a class="skip" href="#page-main-short">Skip to content</a>  <header class="navbar" style="--navbar-padding-x: 1.5rem">    <a class="navbar-brand" 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="navbar-nav" aria-label="Main">      <a class="navbar-link" href="#">Product</a>      <a class="navbar-link" href="#">Pricing</a>      <a class="navbar-link" href="#">Docs</a>      <a class="navbar-link" href="#" aria-current="page">Changelog</a>    </nav>    <div class="navbar-end">      <a class="btn btn-sm" href="#">Sign in</a>      <button type="button" class="btn btn-quiet btn-square btn-sm navbar-toggle" popovertarget="page-menu-short" aria-label="Open the menu">        <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>      <div class="menu menu-end" id="page-menu-short" popover>        <a class="menu-item" href="#">Product</a>        <a class="menu-item" href="#">Pricing</a>        <a class="menu-item" href="#">Docs</a>        <a class="menu-item" href="#" aria-current="page">Changelog</a>      </div>    </div>  </header>  <main class="grow(1) flex items-center justify-center p-lg" id="page-main-short" tabindex="-1">    <div class="empty">      <div class="icon-frame empty-media" aria-hidden="true">        <svg class="icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <path d="M10 1.6667C5 5.8333 4.5833 10.8333 7.0833 15.4167H12.9167C15.4167 10.8333 15 5.8333 10 1.6667Z" /><circle cx="10" cy="8.3333" r="1" fill="currentColor" stroke="none" /><path d="M12.5059 15.4167Q12.6134 15.5471 12.7721 15.6266L15.7283 17.1047A0.8249 0.8249 0 0 0 16.9109 16.5023L17.6842 11.8631A0.8257 0.8257 0 0 0 17.4914 11.1839L14.9083 8.2317A0.8274 0.8274 0 0 0 14.1839 7.9561C14.3744 8.793 14.4431 9.6377 14.3995 10.4832L14.5438 9.7135L16.4181 11.8557L15.7727 15.7292L13.6179 14.6519L13.9005 13.1446C13.6551 13.9094 13.3247 14.6686 12.9167 15.4167H12.5059ZM5.8161 7.9561A0.8199 0.8199 0 0 0 5.0917 8.2318L2.5086 11.1839A0.8257 0.8257 0 0 0 2.3158 11.8631L3.089 16.5023A0.825 0.825 0 0 0 4.2717 17.1047L7.2279 15.6266Q7.3866 15.5471 7.4941 15.4167H7.0833C6.6753 14.6686 6.3449 13.9094 6.0995 13.1446L6.3821 14.6519L4.2274 15.7292L3.5818 11.8557L5.4562 9.7135L5.6005 10.4832C5.5569 9.6377 5.6256 8.793 5.8161 7.9561Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M8.3333 18.75L11.6667 18.75" />        </svg>      </div>      <h1 class="empty-title">Nothing has shipped yet</h1>      <p class="empty-description">The first entry appears here with the first release.</p>      <div class="empty-actions">        <button type="button" class="btn btn-sm">Subscribe to the feed</button>      </div>    </div>  </main>  <footer class="bt(1) bt-solid b-line-hair">    <div class="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">      <span>© 2026 Atlas Labs</span>      <nav class="flex flex-wrap gap-lg" aria-label="Footer">        <a class="link link-quiet" href="#">Privacy</a>        <a class="link link-quiet" href="#">Terms</a>        <a class="link link-quiet" href="#">Status</a>      </nav>    </div>  </footer></div>
import ContrastIcon from '@master/icons-react/native/16/soft/contrast'import MenuIcon from '@master/icons-react/native/16/soft/menu'import RocketIcon from '@master/icons-react/native/20/soft/rocket'<div className="page bg-surface-base fg-text-body text-sm">  <a className="skip" href="#page-main-short">Skip to content</a>  <header className="navbar" style={{ '--navbar-padding-x': '1.5rem' } as React.CSSProperties}>    <a className="navbar-brand" href="#"><ContrastIcon className="icon" />Atlas</a>    <nav className="navbar-nav" aria-label="Main">      <a className="navbar-link" href="#">Product</a>      <a className="navbar-link" href="#">Pricing</a>      <a className="navbar-link" href="#">Docs</a>      <a className="navbar-link" href="#" aria-current="page">Changelog</a>    </nav>    <div className="navbar-end">      <a className="btn btn-sm" href="#">Sign in</a>      <button type="button" className="btn btn-quiet btn-square btn-sm navbar-toggle" popoverTarget="page-menu-short" aria-label="Open the menu">        <MenuIcon className="icon" />      </button>      <div className="menu menu-end" id="page-menu-short" popover="">        <a className="menu-item" href="#">Product</a>        <a className="menu-item" href="#">Pricing</a>        <a className="menu-item" href="#">Docs</a>        <a className="menu-item" href="#" aria-current="page">Changelog</a>      </div>    </div>  </header>  <main className="grow(1) flex items-center justify-center p-lg" id="page-main-short" tabIndex={-1}>    <div className="empty">      <div className="icon-frame empty-media" aria-hidden="true">        <RocketIcon className="icon" />      </div>      <h1 className="empty-title">Nothing has shipped yet</h1>      <p className="empty-description">The first entry appears here with the first release.</p>      <div className="empty-actions">        <button type="button" className="btn btn-sm">Subscribe to the feed</button>      </div>    </div>  </main>  <footer className="bt(1) bt-solid b-line-hair">    <div className="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">      <span>© 2026 Atlas Labs</span>      <nav className="flex flex-wrap gap-lg" aria-label="Footer">        <a className="link link-quiet" href="#">Privacy</a>        <a className="link link-quiet" href="#">Terms</a>        <a className="link link-quiet" href="#">Status</a>      </nav>    </div>  </footer></div>
<script>  import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast'  import MenuIcon from '@master/icons-svelte/native/16/soft/menu'  import RocketIcon from '@master/icons-svelte/native/20/soft/rocket'</script><div class="page bg-surface-base fg-text-body text-sm">  <a class="skip" href="#page-main-short">Skip to content</a>  <header class="navbar" style="--navbar-padding-x: 1.5rem">    <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a>    <nav class="navbar-nav" aria-label="Main">      <a class="navbar-link" href="#">Product</a>      <a class="navbar-link" href="#">Pricing</a>      <a class="navbar-link" href="#">Docs</a>      <a class="navbar-link" href="#" aria-current="page">Changelog</a>    </nav>    <div class="navbar-end">      <a class="btn btn-sm" href="#">Sign in</a>      <button type="button" class="btn btn-quiet btn-square btn-sm navbar-toggle" popovertarget="page-menu-short" aria-label="Open the menu">        <MenuIcon class="icon" />      </button>      <div class="menu menu-end" id="page-menu-short" popover>        <a class="menu-item" href="#">Product</a>        <a class="menu-item" href="#">Pricing</a>        <a class="menu-item" href="#">Docs</a>        <a class="menu-item" href="#" aria-current="page">Changelog</a>      </div>    </div>  </header>  <main class="grow(1) flex items-center justify-center p-lg" id="page-main-short" tabindex="-1">    <div class="empty">      <div class="icon-frame empty-media" aria-hidden="true"><RocketIcon class="icon" /></div>      <h1 class="empty-title">Nothing has shipped yet</h1>      <p class="empty-description">The first entry appears here with the first release.</p>      <div class="empty-actions">        <button type="button" class="btn btn-sm">Subscribe to the feed</button>      </div>    </div>  </main>  <footer class="bt(1) bt-solid b-line-hair">    <div class="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">      <span>© 2026 Atlas Labs</span>      <nav class="flex flex-wrap gap-lg" aria-label="Footer">        <a class="link link-quiet" href="#">Privacy</a>        <a class="link link-quiet" href="#">Terms</a>        <a class="link link-quiet" href="#">Status</a>      </nav>    </div>  </footer></div>
<script setup>import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import MenuIcon from '@master/icons-vue/native/16/soft/menu'import RocketIcon from '@master/icons-vue/native/20/soft/rocket'</script><template>  <div class="page bg-surface-base fg-text-body text-sm">    <a class="skip" href="#page-main-short">Skip to content</a>    <header class="navbar" style="--navbar-padding-x: 1.5rem">      <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="navbar-nav" aria-label="Main">        <a class="navbar-link" href="#">Product</a>        <a class="navbar-link" href="#">Pricing</a>        <a class="navbar-link" href="#">Docs</a>        <a class="navbar-link" href="#" aria-current="page">Changelog</a>      </nav>      <div class="navbar-end">        <a class="btn btn-sm" href="#">Sign in</a>        <button type="button" class="btn btn-quiet btn-square btn-sm navbar-toggle" popovertarget="page-menu-short" aria-label="Open the menu">          <MenuIcon class="icon" />        </button>        <div class="menu menu-end" id="page-menu-short" popover>          <a class="menu-item" href="#">Product</a>          <a class="menu-item" href="#">Pricing</a>          <a class="menu-item" href="#">Docs</a>          <a class="menu-item" href="#" aria-current="page">Changelog</a>        </div>      </div>    </header>    <main class="grow(1) flex items-center justify-center p-lg" id="page-main-short" tabindex="-1">      <div class="empty">        <div class="icon-frame empty-media" aria-hidden="true"><RocketIcon class="icon" /></div>        <h1 class="empty-title">Nothing has shipped yet</h1>        <p class="empty-description">The first entry appears here with the first release.</p>        <div class="empty-actions">          <button type="button" class="btn btn-sm">Subscribe to the feed</button>        </div>      </div>    </main>    <footer class="bt(1) bt-solid b-line-hair">      <div class="flex flex-wrap items-center justify-between gap-sm w-full max-w(720) mx-auto px-lg py-lg text-xs fg-text-muted">        <span>© 2026 Atlas Labs</span>        <nav class="flex flex-wrap gap-lg" aria-label="Footer">          <a class="link link-quiet" href="#">Privacy</a>          <a class="link link-quiet" href="#">Terms</a>          <a class="link link-quiet" href="#">Status</a>        </nav>      </div>    </footer>  </div></template>

#이 프레임으로 만드는 페이지

사이트의 페이지 대부분은 이 프레임의 본문 영역에 다른 것을 넣은 것입니다.

페이지본문 영역에 넣는 것
아티클, 블로그 게시글, 변경 이력브레이크아웃: 이미지나 표가 밖으로 확장될 수 있는 읽기 단
옆에 목차를 둔 긴 아티클탐색 메뉴와 목차를 더한 문서 페이지
검색, 리소스 디렉터리검색 결과 페이지: 조건과 그 조건으로 찾은 결과를 나란히 배치
랜딩 페이지차례로 이어지는 블록: 히어로, 기능 소개, 요금제, 행동 유도
로그인, 오류가운데에 놓인 카드 하나: 가운데 정렬 페이지

#접근성

  • 랜드마크로 <header>, <main>, <footer>를 각각 하나씩 사용하고 모든 <nav>에 레이블을 지정합니다.
  • 페이지의 첫 요소는 본문 영역으로 이동하는 건너뛰기 링크입니다. 본문 영역에는 tabindex="-1"을 지정해 링크를 실행할 때 포커스도 함께 이동하도록 합니다. 키보드 사용자는 키를 한 번 눌러 헤더를 건너뛸 수 있습니다.
  • 스크롤할 때 상단에 붙는 헤더는 페이지 위쪽을 가립니다. 링크로 이동한 제목이 헤더에 가려지지 않도록 루트의 scroll-padding-top을 헤더 높이로 설정하거나, 링크 대상인 각 제목에 flash를 적용해 해당 제목이 보이도록 합니다.

#클래스

클래스설명
page프레임은 뷰포트 높이 이상을 확보하는 세로 열입니다. 최소 높이는 dvh 단위로 지정하며, 프레임 자체에는 시각적 스타일이 없습니다.

#소스

@master/ui/layouts/page.css
/* * Page: the frame of a document that scrolls as a whole. A header, the main region and a footer stack in it. * The frame is at least as tall as the viewport, measured in dvh, so the toolbars a phone shows and hides * neither leave a gap under the footer nor push it out of reach. Give the main region `grow(1)` and it takes * the room that is left, which keeps the footer at the foot of a short page. * A page draws nothing: its surfaces come from components. */@layer components.ui {  .page {    display: flex;    flex-direction: column;    min-width: 0;    /* vh for engines without dynamic viewport units; dvh replaces it where it is known. */    min-height: 100vh;    min-height: 100dvh;  }}