パーツ番号 11-13-07 ・ CSSのみ
通知許可を促すイラスト付き画面
放射状の装飾とベルアイコンを組み合わせたオンボーディング風の通知許可画面。会員登録直後の導線に配置する静止デザイン見本になる。
プレビュー
ソースコード
HTML
<div class="d11-13-07-wrap">
<div class="d11-13-07-illust">
<span class="d11-13-07-ray r1"></span>
<span class="d11-13-07-ray r2"></span>
<span class="d11-13-07-ray r3"></span>
<span class="d11-13-07-ray r4"></span>
<svg width="40" height="40" viewBox="0 0 24 24" fill="none"><path d="M12 3a5 5 0 0 0-5 5v3.2c0 .6-.2 1.1-.6 1.6L5 15h14l-1.4-2.2c-.4-.5-.6-1-.6-1.6V8a5 5 0 0 0-5-5Z" fill="#fff"/><path d="M9.5 18a2.5 2.5 0 0 0 5 0" stroke="#fff" stroke-width="1.8" stroke-linecap="round"/></svg>
</div>
<div class="d11-13-07-title">大事なお知らせを見逃さない</div>
<p class="d11-13-07-text">セール開始や予約確認など、必要な通知だけをお届けします</p>
<span class="d11-13-07-btn">通知を有効にする</span>
<p class="d11-13-07-skip">あとでする</p>
</div>CSS
.d11-13-07-wrap{ text-align:center; }
.d11-13-07-illust{
position:relative; width:72px; height:72px; border-radius:50%; margin:0 auto 16px;
background:linear-gradient(135deg,#f472b6,#ec4899);
display:flex; align-items:center; justify-content:center;
}
.d11-13-07-ray{ position:absolute; width:3px; height:10px; background:#fbcfe8; border-radius:2px; }
.d11-13-07-ray.r1{ top:-14px; left:50%; margin-left:-1.5px; }
.d11-13-07-ray.r2{ bottom:-14px; left:50%; margin-left:-1.5px; }
.d11-13-07-ray.r3{ left:-14px; top:50%; margin-top:-1.5px; transform:rotate(90deg); }
.d11-13-07-ray.r4{ right:-14px; top:50%; margin-top:-1.5px; transform:rotate(90deg); }
.d11-13-07-title{ font-size:15px; font-weight:800; color:#1f2937; }
.d11-13-07-text{ margin:8px auto 0; max-width:230px; font-size:11.5px; color:#6b7280; line-height:1.6; }
.d11-13-07-btn{
display:inline-block; margin-top:16px; padding:10px 30px; border-radius:999px;
background:#ec4899; color:#fff; font-size:12.5px; font-weight:700;
}
.d11-13-07-skip{ margin-top:10px; font-size:11px; color:#9ca3af; font-weight:600; }クラス名 .d11-13-07 は本ライブラリ内での識別用です。複数のパーツを同じページで使う場合は、重複しないよう名前を変更してください。