コンポーネント研究 / CTA
グラデーションCTA
グラデーション背景とメール入力を組み合わせた、ワイドなCTA。
見込み顧客の獲得メールの登録グラデーションモダン大胆サンセリフ中央配置全幅レスポンシブSaaSスタートアップ
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: 'linear-gradient(135deg, #6C4BEF 0%, #3B82F6 100%)',
heading: '#FFFFFF',
subheading: 'rgba(255,255,255,0.85)',
inputBg: 'rgba(255,255,255,0.95)',
inputText: '#111111',
inputPlaceholder: '#999999',
buttonBg: '#111111',
buttonText: '#FFFFFF',
trust: 'rgba(255,255,255,0.7)',
},
dark: {
background: 'linear-gradient(135deg, #4C1D95 0%, #1E40AF 100%)',
heading: '#FFFFFF',
subheading: 'rgba(255,255,255,0.8)',
inputBg: 'rgba(255,255,255,0.1)',
inputText: '#FFFFFF',
inputPlaceholder: 'rgba(255,255,255,0.5)',
buttonBg: '#FFFFFF',
buttonText: '#111111',
trust: 'rgba(255,255,255,0.6)',
},
} as const;
interface SampleCta2Props {
mode?: 'light' | 'dark';
title?: string;
subtitle?: string;
placeholder?: string;
buttonText?: string;
trustText?: string;
}
export default function SampleCta2({
mode = 'dark',
title = '지금 바로 시작하세요',
subtitle = '이메일을 입력하고 무료 체험을 시작하세요.\n설치 없이 바로 사용할 수 있습니다.',
placeholder = '이메일 주소 입력',
buttonText = '무료 체험 시작',
trustText = '무료 체험 14일 · 신용카드 불필요 · 언제든 해지 가능',
}: SampleCta2Props) {
const colors = COLORS[mode];
return (
<section className="px-6 py-24" style={{ background: colors.background }}>
<div className="max-w-2xl mx-auto text-center">
<h2 className="text-4xl md:text-5xl font-bold" style={{ color: colors.heading }}>
{title}
</h2>
<p
className="mt-4 text-lg whitespace-pre-line leading-relaxed"
style={{ color: colors.subheading }}
>
{subtitle}
</p>
<div className="mt-10 flex flex-col sm:flex-row gap-3 max-w-md mx-auto">
<input
type="email"
placeholder={placeholder}
className="flex-1 px-5 py-3.5 rounded-lg text-base outline-none"
style={{
backgroundColor: colors.inputBg,
color: colors.inputText,
}}
/>
<button
className="px-7 py-3.5 rounded-lg text-base font-semibold transition-opacity hover:opacity-90 whitespace-nowrap"
style={{ backgroundColor: colors.buttonBg, color: colors.buttonText }}
>
{buttonText}
</button>
</div>
<p className="mt-4 text-sm" style={{ color: colors.trust }}>
{trustText}
</p>
</div>
</section>
);
}