コンポーネント研究 / ニュースレター
ニュースレター登録
読者の情報とメール入力をまとめた購読セクション。
メールの登録見込み顧客の獲得モダンミニマルサンセリフ中央配置1カラムレスポンシブSaaSスタートアップ
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: '#F5F5F5',
heading: '#111111',
subheading: '#555555',
inputBg: '#FFFFFF',
inputText: '#111111',
inputBorder: '#E5E5E5',
buttonBg: '#6C4BEF',
buttonText: '#FFFFFF',
trust: '#999999',
avatarBorder: '#FFFFFF',
},
dark: {
background: '#111111',
heading: '#FFFFFF',
subheading: '#999999',
inputBg: '#1A1A1A',
inputText: '#FFFFFF',
inputBorder: '#333333',
buttonBg: '#A78BFA',
buttonText: '#000000',
trust: '#666666',
avatarBorder: '#111111',
},
} as const;
interface SampleNewsletter1Props {
mode?: 'light' | 'dark';
title?: string;
subtitle?: string;
buttonText?: string;
trustText?: string;
}
export default function SampleNewsletter1({
mode = 'dark',
title = '뉴스레터 구독',
subtitle = '매주 최신 디자인 트렌드와 개발 팁을 받아보세요',
buttonText = '구독하기',
trustText = '5,000명 이상의 개발자가 구독 중',
}: SampleNewsletter1Props) {
const colors = COLORS[mode];
const avatarColors = ['#6C4BEF', '#3B82F6', '#10B981', '#F59E0B'];
return (
<section className="px-6 py-24" style={{ backgroundColor: colors.background }}>
<div className="max-w-xl mx-auto text-center">
<h2 className="text-3xl md:text-4xl font-bold" style={{ color: colors.heading }}>
{title}
</h2>
<p className="mt-3 text-base" style={{ color: colors.subheading }}>
{subtitle}
</p>
<div className="mt-8 flex flex-col sm:flex-row gap-3">
<input
type="email"
placeholder="이메일 주소를 입력하세요"
className="flex-1 px-5 py-3 rounded-lg text-sm outline-none"
style={{
backgroundColor: colors.inputBg,
color: colors.inputText,
border: `1px solid ${colors.inputBorder}`,
}}
/>
<button
className="px-7 py-3 rounded-lg text-sm font-semibold transition-opacity hover:opacity-90 whitespace-nowrap"
style={{ backgroundColor: colors.buttonBg, color: colors.buttonText }}
>
{buttonText}
</button>
</div>
<div className="flex items-center justify-center gap-2 mt-6">
<div className="flex -space-x-2">
{avatarColors.map((color, i) => (
<div
key={i}
className="w-7 h-7 rounded-full"
style={{ backgroundColor: color, border: `2px solid ${colors.avatarBorder}` }}
/>
))}
</div>
<span className="text-sm ml-1" style={{ color: colors.trust }}>
{trustText}
</span>
</div>
</div>
</section>
);
}