コンポーネント研究 / プロセス
3ステップのプロセス
番号と接続線で、利用の流れを順番に説明するセクション。
モダンミニマルサンセリフ3カラムインラインレスポンシブSaaSスタートアップ
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: '#FAFAFA',
heading: '#111111',
subheading: '#555555',
stepNumber: '#6C4BEF',
stepBg: '#F0EDFF',
title: '#111111',
description: '#777777',
line: '#E5E5E5',
},
dark: {
background: '#0A0A0A',
heading: '#FFFFFF',
subheading: '#999999',
stepNumber: '#A78BFA',
stepBg: '#1A1535',
title: '#FFFFFF',
description: '#888888',
line: '#222222',
},
} as const;
interface Step {
number: string;
title: string;
description: string;
}
interface SampleHowItWorks1Props {
mode?: 'light' | 'dark';
title?: string;
subtitle?: string;
steps?: Step[];
}
export default function SampleHowItWorks1({
mode = 'dark',
title = '어떻게 작동하나요?',
subtitle = '3단계로 간단하게 시작하세요',
steps = [
{
number: '01',
title: 'URL 입력',
description: '분석하고 싶은 웹사이트의 URL을 입력하세요. 어떤 사이트든 분석할 수 있습니다.',
},
{
number: '02',
title: '자동 분석',
description: 'AI가 디자인 토큰, 컴포넌트 구조, 레이아웃 패턴을 자동으로 분석합니다.',
},
{
number: '03',
title: '코드 다운로드',
description: 'React, Vue, HTML 형식으로 프로덕션 수준의 코드를 즉시 다운로드하세요.',
},
],
}: SampleHowItWorks1Props) {
const colors = COLORS[mode];
return (
<section className="px-6 py-24" style={{ backgroundColor: colors.background }}>
<div className="max-w-5xl mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-bold" style={{ color: colors.heading }}>
{title}
</h2>
<p className="mt-4 text-lg" style={{ color: colors.subheading }}>
{subtitle}
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8 relative">
<div
className="hidden md:block absolute top-10 left-[20%] right-[20%] h-px"
style={{ backgroundColor: colors.line }}
/>
{steps.map((step, i) => (
<div key={i} className="text-center relative">
<div
className="w-20 h-20 rounded-2xl flex items-center justify-center text-2xl font-bold mx-auto mb-6"
style={{ backgroundColor: colors.stepBg, color: colors.stepNumber }}
>
{step.number}
</div>
<h3 className="text-xl font-semibold mb-3" style={{ color: colors.title }}>
{step.title}
</h3>
<p
className="text-sm leading-relaxed max-w-xs mx-auto"
style={{ color: colors.description }}
>
{step.description}
</p>
</div>
))}
</div>
</div>
</section>
);
}