コンポーネント研究 / ヒーロー
スプリットヒーロー
左にメッセージ、右にダッシュボードを置いた2カラム構成。
ホバー効果モダングラデーションダークテーマサンセリフ分割レイアウト2カラムレスポンシブSaaSスタートアップ
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: '#FAFAFA',
heading: '#111111',
subheading: '#555555',
buttonBg: '#6C4BEF',
buttonText: '#FFFFFF',
buttonSecondaryBg: 'transparent',
buttonSecondaryText: '#111111',
buttonSecondaryBorder: '#DDDDDD',
badge: '#F0EDFF',
badgeText: '#6C4BEF',
trust: '#888888',
previewBg: 'linear-gradient(135deg, #E0D7FF 0%, #C4B5FD 50%, #A78BFA 100%)',
previewInner: '#FFFFFF',
previewDot: '#E5E5E5',
},
dark: {
background: '#0A0A0A',
heading: '#FFFFFF',
subheading: '#A0A0A0',
buttonBg: '#A78BFA',
buttonText: '#000000',
buttonSecondaryBg: 'transparent',
buttonSecondaryText: '#FFFFFF',
buttonSecondaryBorder: '#333333',
badge: '#1A1535',
badgeText: '#A78BFA',
trust: '#666666',
previewBg: 'linear-gradient(135deg, #1A1535 0%, #2D1B69 50%, #4C1D95 100%)',
previewInner: '#141414',
previewDot: '#333333',
},
} as const;
interface SampleHero2Props {
mode?: 'light' | 'dark';
badge?: string;
title?: string;
subtitle?: string;
primaryCta?: string;
secondaryCta?: string;
trustItems?: string[];
}
export default function SampleHero2({
mode = 'dark',
badge = '새로운 기능 출시',
title = '디자인에서 코드까지,\n한 번에 완성하세요',
subtitle = '웹사이트의 디자인 시스템을 자동으로 분석하고\n프로덕션 수준의 컴포넌트 코드를 즉시 생성합니다.',
primaryCta = '무료로 시작하기',
secondaryCta = '라이브 데모',
trustItems = ['10,000+ 사용자', '4.9 평점'],
}: SampleHero2Props) {
const colors = COLORS[mode];
return (
<section
className="min-h-[80vh] px-6 py-20 flex items-center"
style={{ backgroundColor: colors.background }}
>
<div className="max-w-7xl mx-auto w-full grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 items-center">
<div className="flex flex-col">
{badge && (
<span
className="inline-flex self-start items-center rounded-full px-4 py-1.5 text-sm font-medium mb-6"
style={{ backgroundColor: colors.badge, color: colors.badgeText }}
>
{badge}
</span>
)}
<h1
className="text-4xl md:text-5xl lg:text-6xl font-bold leading-tight whitespace-pre-line"
style={{ color: colors.heading }}
>
{title}
</h1>
<p
className="mt-5 text-lg leading-relaxed whitespace-pre-line max-w-lg"
style={{ color: colors.subheading }}
>
{subtitle}
</p>
<div className="flex flex-col sm:flex-row gap-3 mt-8">
<button
className="px-7 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-7 py-3.5 rounded-lg text-base font-semibold border transition-opacity hover:opacity-80"
style={{
backgroundColor: colors.buttonSecondaryBg,
color: colors.buttonSecondaryText,
borderColor: colors.buttonSecondaryBorder,
}}
>
{secondaryCta}
</button>
</div>
{trustItems.length > 0 && (
<div className="flex items-center gap-4 mt-6">
{trustItems.map((item) => (
<span key={item} className="text-sm" style={{ color: colors.trust }}>
✓ {item}
</span>
))}
</div>
)}
</div>
<div
className="rounded-2xl p-6 aspect-[4/3] flex flex-col gap-3"
style={{ background: colors.previewBg }}
>
<div className="flex items-center gap-2 mb-2">
<span className="w-3 h-3 rounded-full" style={{ backgroundColor: colors.previewDot }} />
<span className="w-3 h-3 rounded-full" style={{ backgroundColor: colors.previewDot }} />
<span className="w-3 h-3 rounded-full" style={{ backgroundColor: colors.previewDot }} />
</div>
<div
className="flex-1 rounded-xl"
style={{ backgroundColor: colors.previewInner, opacity: 0.9 }}
/>
</div>
</div>
</section>
);
}