コンポーネント研究 / CTA
センター配置のCTA
見出し、説明、2つのボタンを中央にまとめたアクション導線。
見込み顧客の獲得モダンダークテーマミニマルサンセリフ中央配置1カラムレスポンシブSaaSスタートアップ
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: '#F5F3FF',
heading: '#111111',
text: '#555555',
buttonBg: '#6C4BEF',
buttonText: '#FFFFFF',
secondaryText: '#6C4BEF',
},
dark: {
background: '#110E1F',
heading: '#FFFFFF',
text: '#A0A0A0',
buttonBg: '#A78BFA',
buttonText: '#000000',
secondaryText: '#A78BFA',
},
} as const;
interface SampleCta1Props {
mode?: 'light' | 'dark';
title?: string;
subtitle?: string;
primaryCta?: string;
secondaryCta?: string;
}
export default function SampleCta1({
mode = 'dark',
title = '지금 바로 시작하세요',
subtitle = '5분 안에 웹사이트의 디자인 시스템을 추출하고 프로덕션 코드를 생성합니다.\n무료로 시작하세요, 신용카드 없이.',
primaryCta = '무료로 시작하기',
secondaryCta = '자세히 알아보기 →',
}: SampleCta1Props) {
const colors = COLORS[mode];
return (
<section className="px-6 py-24" style={{ backgroundColor: colors.background }}>
<div className="max-w-3xl mx-auto text-center">
<h2
className="text-4xl md:text-5xl font-bold leading-tight"
style={{ color: colors.heading }}
>
{title}
</h2>
<p
className="mt-6 text-lg leading-relaxed whitespace-pre-line"
style={{ color: colors.text }}
>
{subtitle}
</p>
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 mt-10">
<button
className="px-8 py-3.5 rounded-lg text-base font-semibold transition-opacity hover:opacity-90"
style={{
backgroundColor: colors.buttonBg,
color: colors.buttonText,
}}
>
{primaryCta}
</button>
<button
className="px-4 py-3.5 text-base font-medium transition-opacity hover:opacity-80"
style={{ color: colors.secondaryText }}
>
{secondaryCta}
</button>
</div>
</div>
</section>
);
}