コンポーネント研究 / お問い合わせ
コンタクトフォーム
連絡先カードと入力フォームを並べた、2カラムの問い合わせセクション。
問い合わせフォームモダンミニマルサンセリフ2カラム分割レイアウトレスポンシブSaaSエンタープライズ
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: '#FAFAFA',
heading: '#111111',
subheading: '#555555',
cardBg: '#FFFFFF',
cardBorder: '#E5E5E5',
cardTitle: '#111111',
cardText: '#666666',
inputBg: '#FFFFFF',
inputBorder: '#E5E5E5',
inputText: '#111111',
label: '#333333',
buttonBg: '#111111',
buttonText: '#FFFFFF',
},
dark: {
background: '#0A0A0A',
heading: '#FFFFFF',
subheading: '#999999',
cardBg: '#111111',
cardBorder: '#1A1A1A',
cardTitle: '#FFFFFF',
cardText: '#888888',
inputBg: '#111111',
inputBorder: '#222222',
inputText: '#FFFFFF',
label: '#CCCCCC',
buttonBg: '#FFFFFF',
buttonText: '#000000',
},
} as const;
interface SampleContact1Props {
mode?: 'light' | 'dark';
title?: string;
subtitle?: string;
}
export default function SampleContact1({
mode = 'dark',
title = '문의하기',
subtitle = '궁금한 점이 있으시면 언제든 연락 주세요',
}: SampleContact1Props) {
const colors = COLORS[mode];
const contactInfo = [
{ icon: '📧', label: '이메일', value: 'support@designquest.io' },
{ icon: '📞', label: '전화', value: '+82-2-1234-5678' },
{ icon: '📍', label: '위치', value: '서울특별시 강남구 테헤란로 123' },
];
return (
<section className="px-6 py-24" style={{ backgroundColor: colors.background }}>
<div className="max-w-6xl 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-2 gap-12">
<div className="space-y-4">
{contactInfo.map((info) => (
<div
key={info.label}
className="rounded-xl p-6 flex items-center gap-4"
style={{ backgroundColor: colors.cardBg, border: `1px solid ${colors.cardBorder}` }}
>
<span className="text-2xl">{info.icon}</span>
<div>
<div className="text-sm font-medium" style={{ color: colors.cardTitle }}>
{info.label}
</div>
<div className="text-sm" style={{ color: colors.cardText }}>
{info.value}
</div>
</div>
</div>
))}
</div>
<div className="space-y-4">
<div>
<label className="block text-sm font-medium mb-1.5" style={{ color: colors.label }}>
이름
</label>
<input
type="text"
placeholder="홍길동"
className="w-full px-4 py-3 rounded-lg text-sm outline-none"
style={{
backgroundColor: colors.inputBg,
color: colors.inputText,
border: `1px solid ${colors.inputBorder}`,
}}
/>
</div>
<div>
<label className="block text-sm font-medium mb-1.5" style={{ color: colors.label }}>
이메일
</label>
<input
type="email"
placeholder="email@example.com"
className="w-full px-4 py-3 rounded-lg text-sm outline-none"
style={{
backgroundColor: colors.inputBg,
color: colors.inputText,
border: `1px solid ${colors.inputBorder}`,
}}
/>
</div>
<div>
<label className="block text-sm font-medium mb-1.5" style={{ color: colors.label }}>
메시지
</label>
<textarea
rows={4}
placeholder="문의 내용을 작성해 주세요"
className="w-full px-4 py-3 rounded-lg text-sm outline-none resize-none"
style={{
backgroundColor: colors.inputBg,
color: colors.inputText,
border: `1px solid ${colors.inputBorder}`,
}}
/>
</div>
<button
className="w-full py-3 rounded-lg text-sm font-semibold transition-opacity hover:opacity-90"
style={{ backgroundColor: colors.buttonBg, color: colors.buttonText }}
>
전송하기
</button>
</div>
</div>
</div>
</section>
);
}