행동 유도 블록은 페이지의 마지막 제안입니다. 앞에서 설명한 내용을 바탕으로 방문자에게 행동할 기회를 한 번 더 줍니다. 페이지의 마무리로 읽히도록 별도의 표면에 배치합니다. 이 예에서는 이 용도를 위해 남겨 둔, 페이지에서 가장 강조된 표면인 잉크색 시트를 사용합니다.
행동 유도
<section class="container-inline px-lg py-4xl" aria-labelledby="cta-title"> <div class="sheet sheet-inverse flex flex-col items-center gap-lg max-w(1040) mx-auto px-lg py-3xl text-center"> <h2 class="heading heading-2xl fg-text-inverse max-w(560)" id="cta-title"> Your next push could already be live. </h2> <p class="lead max-w(480) fg-text-inverse"> Connect a repository and deploy in under a minute. Free for personal projects. </p> <div class="flex flex-wrap justify-center gap-sm"> <a class="btn btn-lg" href="#">Start deploying</a> <a class="btn btn-quiet btn-lg fg-text-inverse" href="#"> Talk to sales<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="M17.2077 9.4105A0.6234 0.6234 0 0 0 17 9.375L2.9693 9.3758A0.625 0.625 0 0 0 2.9083 10.6182L3 10.625H17A0.6234 0.6234 0 0 0 17.2077 10.5895A0.8258 0.8258 0 0 0 17.2077 9.4105Z" fill="currentColor" stroke="none" fill-rule="evenodd" /><path d="M10 5.5L16.7383 9.8318A0.2 0.2 0 0 1 16.7383 10.1682L10 14.5" /> </svg> </a> </div> </div></section>import ArrowRightIcon from '@master/icons-react/native/20/soft/arrow-right'<section className="container-inline px-lg py-4xl" aria-labelledby="cta-title"> <div className="sheet sheet-inverse flex flex-col items-center gap-lg max-w(1040) mx-auto px-lg py-3xl text-center"> <h2 className="heading heading-2xl fg-text-inverse max-w(560)" id="cta-title"> Your next push could already be live. </h2> <p className="lead max-w(480) fg-text-inverse"> Connect a repository and deploy in under a minute. Free for personal projects. </p> <div className="flex flex-wrap justify-center gap-sm"> <a className="btn btn-lg" href="#">Start deploying</a> <a className="btn btn-quiet btn-lg fg-text-inverse" href="#"> Talk to sales<ArrowRightIcon className="icon" /> </a> </div> </div></section><script> import ArrowRightIcon from '@master/icons-svelte/native/20/soft/arrow-right'</script><section class="container-inline px-lg py-4xl" aria-labelledby="cta-title"> <div class="sheet sheet-inverse flex flex-col items-center gap-lg max-w(1040) mx-auto px-lg py-3xl text-center"> <h2 class="heading heading-2xl fg-text-inverse max-w(560)" id="cta-title"> Your next push could already be live. </h2> <p class="lead max-w(480) fg-text-inverse"> Connect a repository and deploy in under a minute. Free for personal projects. </p> <div class="flex flex-wrap justify-center gap-sm"> <a class="btn btn-lg" href="#">Start deploying</a> <a class="btn btn-quiet btn-lg fg-text-inverse" href="#"> Talk to sales<ArrowRightIcon class="icon" /> </a> </div> </div></section><script setup>import ArrowRightIcon from '@master/icons-vue/native/20/soft/arrow-right'</script><template> <section class="container-inline px-lg py-4xl" aria-labelledby="cta-title"> <div class="sheet sheet-inverse flex flex-col items-center gap-lg max-w(1040) mx-auto px-lg py-3xl text-center"> <h2 class="heading heading-2xl fg-text-inverse max-w(560)" id="cta-title"> Your next push could already be live. </h2> <p class="lead max-w(480) fg-text-inverse"> Connect a repository and deploy in under a minute. Free for personal projects. </p> <div class="flex flex-wrap justify-center gap-sm"> <a class="btn btn-lg" href="#">Start deploying</a> <a class="btn btn-quiet btn-lg fg-text-inverse" href="#"> Talk to sales<ArrowRightIcon class="icon" /> </a> </div> </div> </section></template>블록은 복사해서 쓰는 마크업입니다. 페이지의 텍스트 색상과 크기를 그대로 사용하며, 미리보기에서는 body에 fg-text-body text-sm을 설정합니다. 각 블록은 크기 컨테이너이므로 자체 너비에 따라 레이아웃이 바뀝니다.
#구성 요소
sheet sheet-inverse. moonstone에서는 잉크색, obsidian에서는 진주색을 사용하며, 강조 버튼과 같은 방향으로 빛이 비치는 효과를 줍니다. 페이지당 하나만 사용하세요.- 텍스트에 반전 잉크색을 적용합니다. 제목과 도입 문구에는
fg-text-inverse를 적용합니다. 유틸리티는 제목 자체의 색상 선언 뒤에 적용됩니다. - 행동 유도에는 기본 버튼을 사용합니다. 잉크색 표면에서는 일반적인 볼록한 버튼이 가장 밝게 보입니다. 강조 버튼을 사용하면 잉크색 표면 위에 잉크색 버튼이 놓입니다.
- 문장 하나와 행동 하나를 제시하고, 아직 준비되지 않은 방문자를 위해 덜 강조된 보조 행동을 둡니다.
#강조를 낮춘 행동 유도
페이지의 마무리가 이미 강하게 강조되어 있거나 모든 페이지에서 같은 행동을 요청한다면 일반적인 표면 조합을 사용하세요. 트레이 안에 시트을 두고, 시작 쪽에는 문구를, 끝 쪽에는 버튼을 배치합니다. flex flex-wrap justify-between을 적용하면 공간이 부족할 때 버튼이 문구 아래로 내려갑니다.
강조를 낮춘 행동 유도
<section class="container-inline px-lg py-4xl" aria-labelledby="cta-quiet-title"> <div class="tray max-w(1040) mx-auto"> <div class="sheet flex flex-wrap items-center justify-between gap-lg p-xl"> <div class="flex flex-col gap-xs"> <h2 class="heading heading-lg" id="cta-quiet-title">Ready when you are.</h2> <p class="m(0) leading-md">Deploy your first project in under a minute. No card needed.</p> </div> <div class="flex flex-wrap gap-sm"> <a class="btn btn-primary" href="#">Start deploying</a> <a class="btn" href="#">Read the docs</a> </div> </div> </div></section><section className="container-inline px-lg py-4xl" aria-labelledby="cta-quiet-title"> <div className="tray max-w(1040) mx-auto"> <div className="sheet flex flex-wrap items-center justify-between gap-lg p-xl"> <div className="flex flex-col gap-xs"> <h2 className="heading heading-lg" id="cta-quiet-title">Ready when you are.</h2> <p className="m(0) leading-md"> Deploy your first project in under a minute. No card needed. </p> </div> <div className="flex flex-wrap gap-sm"> <a className="btn btn-primary" href="#">Start deploying</a> <a className="btn" href="#">Read the docs</a> </div> </div> </div></section><section class="container-inline px-lg py-4xl" aria-labelledby="cta-quiet-title"> <div class="tray max-w(1040) mx-auto"> <div class="sheet flex flex-wrap items-center justify-between gap-lg p-xl"> <div class="flex flex-col gap-xs"> <h2 class="heading heading-lg" id="cta-quiet-title">Ready when you are.</h2> <p class="m(0) leading-md">Deploy your first project in under a minute. No card needed.</p> </div> <div class="flex flex-wrap gap-sm"> <a class="btn btn-primary" href="#">Start deploying</a> <a class="btn" href="#">Read the docs</a> </div> </div> </div></section><template> <section class="container-inline px-lg py-4xl" aria-labelledby="cta-quiet-title"> <div class="tray max-w(1040) mx-auto"> <div class="sheet flex flex-wrap items-center justify-between gap-lg p-xl"> <div class="flex flex-col gap-xs"> <h2 class="heading heading-lg" id="cta-quiet-title">Ready when you are.</h2> <p class="m(0) leading-md"> Deploy your first project in under a minute. No card needed. </p> </div> <div class="flex flex-wrap gap-sm"> <a class="btn btn-primary" href="#">Start deploying</a> <a class="btn" href="#">Read the docs</a> </div> </div> </div> </section></template>#입력 필드를 포함한 행동 유도
주소 입력을 유도할 때는 필드와 버튼을 줄바꿈이 가능한 행에 배치하세요. grow(1) basis(200)을 적용하면 필드가 200px를 기준으로 행의 가용 공간을 채웁니다. 이 기준 너비의 필드와 버튼이 한 행에 들어가지 않으면 버튼이 다음 줄로 내려갑니다.
입력 필드를 포함한 행동 유도
<section class="container-inline px-lg py-4xl" aria-labelledby="cta-form-title"> <div class="flex flex-col items-center gap-lg max-w(520) mx-auto text-center"> <h2 class="heading heading-2xl" id="cta-form-title">One email when something ships.</h2> <p class="lead">The changelog, about twice a month. Nothing else, and one click to stop.</p> <form class="flex flex-wrap gap-xs w-full max-w(420)"> <input class="input grow(1) basis(200)" type="email" name="email" placeholder="you@example.com" aria-label="Email" autocomplete="email" required> <button class="btn btn-primary">Subscribe</button> </form> </div></section><section className="container-inline px-lg py-4xl" aria-labelledby="cta-form-title"> <div className="flex flex-col items-center gap-lg max-w(520) mx-auto text-center"> <h2 className="heading heading-2xl" id="cta-form-title">One email when something ships.</h2> <p className="lead">The changelog, about twice a month. Nothing else, and one click to stop.</p> <form className="flex flex-wrap gap-xs w-full max-w(420)"> <input className="input grow(1) basis(200)" type="email" name="email" placeholder="you@example.com" aria-label="Email" autoComplete="email" required /> <button className="btn btn-primary">Subscribe</button> </form> </div></section><section class="container-inline px-lg py-4xl" aria-labelledby="cta-form-title"> <div class="flex flex-col items-center gap-lg max-w(520) mx-auto text-center"> <h2 class="heading heading-2xl" id="cta-form-title">One email when something ships.</h2> <p class="lead">The changelog, about twice a month. Nothing else, and one click to stop.</p> <form class="flex flex-wrap gap-xs w-full max-w(420)"> <input class="input grow(1) basis(200)" type="email" name="email" placeholder="you@example.com" aria-label="Email" autocomplete="email" required> <button class="btn btn-primary">Subscribe</button> </form> </div></section><template> <section class="container-inline px-lg py-4xl" aria-labelledby="cta-form-title"> <div class="flex flex-col items-center gap-lg max-w(520) mx-auto text-center"> <h2 class="heading heading-2xl" id="cta-form-title">One email when something ships.</h2> <p class="lead">The changelog, about twice a month. Nothing else, and one click to stop.</p> <form class="flex flex-wrap gap-xs w-full max-w(420)"> <input class="input grow(1) basis(200)" type="email" name="email" placeholder="you@example.com" aria-label="Email" autocomplete="email" required> <button class="btn btn-primary">Subscribe</button> </form> </div> </section></template>#접근성
- 반전 시트는 두 색상 모드 모두에서 텍스트 대비를 온전히 유지합니다. 배경의 잉크색과 텍스트 색상에 테마가 정의한 반전 색상 쌍을 사용하기 때문입니다.
- 입력 필드에는 접근성 이름이 필요합니다. 이 예에서는
aria-label="Email"속성으로 이름을 지정하며, 공간이 충분하면 화면에 표시되는 레이블이 더 좋습니다. - 버튼을 클릭하면 어떤 일이 일어나는지 알려 주세요. "배포 시작"은 결과를 분명히 알려 주지만 "제출"만으로는 결과를 알기 어렵습니다.