01웰컴 이메일
가입 직후 자동으로 나가는 첫 이메일. 배지가 살짝 튀어오르며 첫인상을 만들고, 버튼을 누르면 실제로 '시작했어요'로 바뀝니다.
쓰임신규 가입 직후 자동 발송하는 웰컴 메일
table role=presentationmax-width:400pxaria-pressed

<main class="stage">
<div class="ema is-demo" id="ema">
<!--[if mso]>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0"><tr><td>
<![endif]-->
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="ema__table">
<tr><td align="center" class="ema__wrap">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" class="ema__card" style="max-width:400px">
<tr><td class="ema__brand">◆ Acme</td></tr>
<tr><td align="center" class="ema__hero"><span class="ema__badge" aria-hidden="true">👋</span></td></tr>
<tr><td align="center" class="ema__title">환영합니다, 지훈님!</td></tr>
<tr><td align="center" class="ema__body">가입해주셔서 감사합니다.<br>시작하려면 아래 버튼을 누르세요.</td></tr>
<tr><td align="center" class="ema__ctawrap">
<table role="presentation" cellpadding="0" cellspacing="0"><tr>
<td class="ema__ctabtn"><a href="#" role="button" class="ema__cta" id="cta">시작하기</a></td>
</tr></table>
</td></tr>
<tr><td align="center" class="ema__footer">Acme Inc · 서울 · <a href="#" class="ema__unsub">수신거부</a></td></tr>
</table>
</td></tr>
</table>
<!--[if mso]>
</td></tr></table>
<![endif]-->
</div>
<button type="button" class="ema-darktoggle" id="darktoggle" aria-pressed="false">다크 모드 미리보기</button>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-base;
$easing: $ease-spring;
$color: $subject-blue;
@include stage($stage-ink);
.stage { position: relative; }
.ema { width: min(100%, 400px); }
.ema__table { border-collapse: collapse; }
.ema__wrap { padding: 0; }
.ema__card {
border-collapse: collapse; background: $stage-paper; border-radius: $r-card;
box-shadow: $shadow-raised; overflow: hidden;
}
.ema__card td { padding: $sp-1 $sp-5; font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif; -webkit-text-size-adjust: 100%; line-height: 1; }
.ema__brand { font-weight: 800; font-size: 11px; line-height: 1;
font-family: inherit; color: rgba($subject-ink, .72); letter-spacing: .02em; padding-top: $sp-2 !important; }
.ema__hero { padding-top: $sp-1 !important; padding-bottom: $sp-1 !important; }
.ema__badge {
display: inline-flex; align-items: center; justify-content: center;
width: clamp(26px, 8vw, 34px); height: clamp(26px, 8vw, 34px);
border-radius: 50%; background: $subject-blue; font-size: clamp(13px, 4vw, 16px); line-height: 1;
}
.ema__title { font-weight: 800; font-size: clamp(12px, 3.6vw, 14px); line-height: 1.25;
font-family: inherit; color: $subject-ink; padding-top: $sp-1 !important; padding-bottom: $sp-1 !important; }
.ema__body { font-weight: 500; font-size: clamp(10px, 3vw, 11px); line-height: 1.4;
font-family: inherit; color: rgba(23,20,26,.62); padding-top: 0 !important; padding-bottom: $sp-1 !important; }
.ema__ctawrap { padding-top: $sp-1 !important; padding-bottom: $sp-1 !important; }
.ema__ctabtn { border-radius: $r-control; background: $subject-blue; }
.ema__cta {
display: inline-block; padding: $sp-1 $sp-6; font-weight: 700; font-size: 11px; line-height: 1.6;
font-family: inherit;
color: $stage-paper; text-decoration: none; border-radius: $r-control;
}
.ema__footer { font-weight: 500; font-size: 8px; line-height: 1.4;
font-family: inherit; color: rgba($subject-ink, .72); padding-top: $sp-2 !important; padding-bottom: $sp-2 !important; }
.ema__footer a { color: inherit; }
// ── 다크모드 미리보기(수동 토글) + prefers-color-scheme(자동) — 실제 이메일 클라이언트 지원 흉내
.ema.is-dark .ema__card { background: $stage-ink; }
.ema.is-dark .ema__title { color: $subject-cream; }
.ema.is-dark .ema__body,
.ema.is-dark .ema__footer { color: rgba(255,247,230,.6); }
.ema.is-dark .ema__brand { color: rgba(255,247,230,.7); }
@media (prefers-color-scheme: dark) {
.ema__card { background: $stage-ink; }
.ema__title { color: $subject-cream; }
.ema__body, .ema__footer { color: rgba(255,247,230,.6); }
.ema__brand { color: rgba(255,247,230,.7); }
}
// 레이아웃 흐름에서 빼 카드 높이에 영향을 주지 않는다 (480×300 무대에 맞추려고)
.ema-darktoggle {
position: absolute; top: $sp-2; right: $sp-2;
background: $stage-ink; border: 1px solid rgba(255,247,230,.3);
color: $subject-cream; border-radius: $r-pill; padding: $sp-1 $sp-3; font-weight: 600; font-size: 9px; line-height: 1.4;
font-family: inherit; cursor: pointer;
font-family: inherit;
}
.ema.is-demo .ema__badge { animation: ema-bounce 2s ease-in-out infinite; }
@keyframes ema-bounce { 0%, 15% { transform: translateY(0) scale(1); } 30% { transform: translateY(-7px) scale(1.06); } 45%, 65% { transform: translateY(0) scale(1); } 100% { transform: translateY(0) scale(1); } }
// 320×200 폰 실측(BD9 규칙)에서 6개 항목(추가 줄이 있는 02·03·04·05·06·07)이 10~46px 넘쳐
// 행마다 세로 패딩을 !important 로 다시 줄인다 (가로 폭만 줄이던 첫 시도로는 안 됐다 — 실측 2026-09-11)
@media (max-width: 340px), (max-height: 220px) {
.ema__card td { padding-left: $sp-3; padding-right: $sp-3; padding-top: 0; padding-bottom: 0; }
.ema__brand { padding-top: 0 !important; font-size: 9px !important; }
.ema__hero { padding-top: 0 !important; padding-bottom: 0 !important; }
.ema__badge { width: 22px; height: 22px; font-size: 11px; }
.ema__title { font-size: 10px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.ema__body { font-size: 8px !important; padding-bottom: 0 !important; }
.ema__ctawrap { padding-top: 0 !important; padding-bottom: 0 !important; }
.ema__cta { padding: 0 $sp-5 !important; }
.ema__footer { font-size: 7px !important; padding-top: $sp-1 !important; padding-bottom: $sp-1 !important; }
.ema-darktoggle { font-size: 8px; padding: 0 $sp-2; top: $sp-1; right: $sp-1; }
// 항목별 "extra" 줄(펼침 버튼·카운트다운·안읽음·복사·금액) 공통 압축 — 해당 클래스가 없는 항목엔 영향 없음
.ema__detailtoggle, .ema__countdown, .ema__unreadrow, .ema__amount, .ema__copyrow, .ema__steprow {
padding-top: 0 !important; padding-bottom: 0 !important; font-size: 9px !important;
}
.ema__li { padding: 0 $sp-3 !important; font-size: 9px !important; }
.ema__track { margin-bottom: 0 !important; }
.ema__copybtn { padding: 0 $sp-2 !important; }
}
@media (prefers-reduced-motion: reduce) {
.ema.is-demo .ema__badge,
.ema.is-demo .ema__fill,
.ema.is-demo .ema__badge::after { animation: none !important; }
.ema__detail, .ema__card, .ema__cta { transition: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #17141a;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.stage {
position: relative;
}
.ema {
width: min(100%, 400px);
}
.ema__table {
border-collapse: collapse;
}
.ema__wrap {
padding: 0;
}
.ema__card {
border-collapse: collapse;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
overflow: hidden;
}
.ema__card td {
padding: 4px 20px;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
-webkit-text-size-adjust: 100%;
line-height: 1;
}
.ema__brand {
font-weight: 800;
font-size: 11px;
line-height: 1;
font-family: inherit;
color: rgba(23, 20, 26, 0.72);
letter-spacing: 0.02em;
padding-top: 8px !important;
}
.ema__hero {
padding-top: 4px !important;
padding-bottom: 4px !important;
}
.ema__badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: clamp(26px, 8vw, 34px);
height: clamp(26px, 8vw, 34px);
border-radius: 50%;
background: #2f6df6;
font-size: clamp(13px, 4vw, 16px);
line-height: 1;
}
.ema__title {
font-weight: 800;
font-size: clamp(12px, 3.6vw, 14px);
line-height: 1.25;
font-family: inherit;
color: #17141a;
padding-top: 4px !important;
padding-bottom: 4px !important;
}
.ema__body {
font-weight: 500;
font-size: clamp(10px, 3vw, 11px);
line-height: 1.4;
font-family: inherit;
color: rgba(23, 20, 26, 0.62);
padding-top: 0 !important;
padding-bottom: 4px !important;
}
.ema__ctawrap {
padding-top: 4px !important;
padding-bottom: 4px !important;
}
.ema__ctabtn {
border-radius: 12px;
background: #2f6df6;
}
.ema__cta {
display: inline-block;
padding: 4px 24px;
font-weight: 700;
font-size: 11px;
line-height: 1.6;
font-family: inherit;
color: #ffffff;
text-decoration: none;
border-radius: 12px;
}
.ema__footer {
font-weight: 500;
font-size: 8px;
line-height: 1.4;
font-family: inherit;
color: rgba(23, 20, 26, 0.72);
padding-top: 8px !important;
padding-bottom: 8px !important;
}
.ema__footer a {
color: inherit;
}
.ema.is-dark .ema__card {
background: #17141a;
}
.ema.is-dark .ema__title {
color: #fff7e6;
}
.ema.is-dark .ema__body,
.ema.is-dark .ema__footer {
color: rgba(255, 247, 230, 0.6);
}
.ema.is-dark .ema__brand {
color: rgba(255, 247, 230, 0.7);
}
@media (prefers-color-scheme: dark) {
.ema__card {
background: #17141a;
}
.ema__title {
color: #fff7e6;
}
.ema__body, .ema__footer {
color: rgba(255, 247, 230, 0.6);
}
.ema__brand {
color: rgba(255, 247, 230, 0.7);
}
}
.ema-darktoggle {
position: absolute;
top: 8px;
right: 8px;
background: #17141a;
border: 1px solid rgba(255, 247, 230, 0.3);
color: #fff7e6;
border-radius: 999px;
padding: 4px 12px;
font-weight: 600;
font-size: 9px;
line-height: 1.4;
font-family: inherit;
cursor: pointer;
font-family: inherit;
}
.ema.is-demo .ema__badge {
animation: ema-bounce 2s ease-in-out infinite;
}
@keyframes ema-bounce {
0%, 15% {
transform: translateY(0) scale(1);
}
30% {
transform: translateY(-7px) scale(1.06);
}
45%, 65% {
transform: translateY(0) scale(1);
}
100% {
transform: translateY(0) scale(1);
}
}
@media (max-width: 340px), (max-height: 220px) {
.ema__card td {
padding-left: 12px;
padding-right: 12px;
padding-top: 0;
padding-bottom: 0;
}
.ema__brand {
padding-top: 0 !important;
font-size: 9px !important;
}
.ema__hero {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.ema__badge {
width: 22px;
height: 22px;
font-size: 11px;
}
.ema__title {
font-size: 10px !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.ema__body {
font-size: 8px !important;
padding-bottom: 0 !important;
}
.ema__ctawrap {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.ema__cta {
padding: 0 20px !important;
}
.ema__footer {
font-size: 7px !important;
padding-top: 4px !important;
padding-bottom: 4px !important;
}
.ema-darktoggle {
font-size: 8px;
padding: 0 8px;
top: 4px;
right: 4px;
}
.ema__detailtoggle, .ema__countdown, .ema__unreadrow, .ema__amount, .ema__copyrow, .ema__steprow {
padding-top: 0 !important;
padding-bottom: 0 !important;
font-size: 9px !important;
}
.ema__li {
padding: 0 12px !important;
font-size: 9px !important;
}
.ema__track {
margin-bottom: 0 !important;
}
.ema__copybtn {
padding: 0 8px !important;
}
}
@media (prefers-reduced-motion: reduce) {
.ema.is-demo .ema__badge,
.ema.is-demo .ema__fill,
.ema.is-demo .ema__badge::after {
animation: none !important;
}
.ema__detail, .ema__card, .ema__cta {
transition: none;
}
}var ema = document.getElementById('ema');
var cta = document.getElementById('cta');
var darktoggle = document.getElementById('darktoggle');
darktoggle.addEventListener('click', function () {
var on = ema.classList.toggle('is-dark');
darktoggle.setAttribute('aria-pressed', String(on));
});
cta.addEventListener('click', function (e) {
e.preventDefault();
ema.classList.remove('is-demo');
var on = ema.classList.toggle('is-done');
cta.setAttribute('aria-pressed', String(on));
cta.textContent = on ? '시작했어요 ✓' : '시작하기';
});import { useState, useEffect, useRef } from "react";
import styles from "./Welcome.module.scss";
export type WelcomeProps = { duration?: number; easing?: string; color?: string };
export default function Welcome({ duration = 300, easing = "cubic-bezier(.2,.8,.2,1)", color = "#2f6df6" }: WelcomeProps) {
const [dark, setDark] = useState(false);
const [open, setOpen] = useState(false);
const [done, setDone] = useState(false);
return (
<main className={styles.stage} style={{ background: "#17141a" }}>
<div className={`${styles.ema}`}>
<div className={`${styles.card} ${dark ? styles.dark : ""}`}>
<div className={styles.row + " " + styles.brand}>◆ Acme</div>
<div className={styles.hero}>
<span className={`${styles.badge} ${styles.anim}`} style={{ background: "#2f6df6", animationName: "bounce", animationDuration: "2s", animationTimingFunction: "ease-in-out", animationIterationCount: "infinite" }} aria-hidden="true">👋</span>
</div>
<div className={styles.title}>환영합니다, 지훈님!</div>
<div className={styles.body}>가입해주셔서 감사합니다.<br/>시작하려면 아래 버튼을 누르세요.</div>
<div className={styles.ctawrap}>
<a href="#" role="button" className={styles.cta} style={{ background: "#2f6df6" }} onClick={(e: { preventDefault: () => void }) => { e.preventDefault(); setDone((v) => !v); }}>{done ? "시작했어요 ✓" : "시작하기"}</a>
</div>
<div className={styles.footer}>Acme Inc · 서울 · <a href="#">수신거부</a></div>
</div>
<button type="button" className={styles.darktoggle} aria-pressed={dark} onClick={() => setDark((v) => !v)}>다크 모드 미리보기</button>
</div>
</main>
);
}01 웰컴 이메일 — 측정 누적면적 0.631% · 움직인 프레임 9/23GODRICH 원작 · zip 에 SCSS·React 포함 · 이메일 템플릿 디자인 9종 — 웰컴부터 보안 알림까지
이 데모가 속한 글
이메일 템플릿 디자인 9종 — 웰컴부터 보안 알림까지이메일 템플릿 디자인은 완성된 뉴스레터 하나를 예쁘게 꾸미는 일이 아니라, 웰컴·영수증·비밀번호 재설정처럼 서비스가 실제로 자동 발송하는 아홉 가지 "거래형" 메일 종류별로 나눠 만드는 일입니다. 아홉 개 중 하나는 이 글의 데모 전부 보기


