Add contact form backend and deployment guide

- Resend API 통합 (이메일 발송)
- ContactForm 클라이언트 컴포넌트 생성
- API Route (/api/contact) 구현
- 입력 검증 및 에러 처리
- 성공/실패 메시지 표시
- 환경변수 설정 (.env.local, .env.example)
- 배포 가이드 작성 (DEPLOYMENT.md)
  - Resend 설정 방법
  - Vercel 배포 가이드
  - 가비아 도메인 연결 방법
  - 트러블슈팅 가이드

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-10 02:01:05 +09:00
parent 81e81aa810
commit e05def83d6
6 changed files with 862 additions and 73 deletions

View File

@@ -1,3 +1,5 @@
import ContactForm from './components/ContactForm';
export default function Home() {
return (
<div className="min-h-screen">
@@ -331,77 +333,7 @@ export default function Home() {
<p className="text-xl text-gray-600"> . 24 .</p>
</div>
<div className="bg-white rounded-2xl shadow-xl p-8 md:p-12">
<form className="space-y-6">
<div className="grid md:grid-cols-2 gap-6">
<div>
<label className="block text-sm font-semibold text-gray-700 mb-2"></label>
<input
type="text"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none"
placeholder="홍길동"
/>
</div>
<div>
<label className="block text-sm font-semibold text-gray-700 mb-2"></label>
<input
type="tel"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none"
placeholder="010-0000-0000"
/>
</div>
</div>
<div>
<label className="block text-sm font-semibold text-gray-700 mb-2"></label>
<input
type="email"
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none"
placeholder="example@email.com"
/>
</div>
<div>
<label className="block text-sm font-semibold text-gray-700 mb-2"> </label>
<select className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none">
<option>RPA </option>
<option> </option>
<option> </option>
<option> </option>
</select>
</div>
<div>
<label className="block text-sm font-semibold text-gray-700 mb-2"> </label>
<textarea
rows={6}
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none resize-none"
placeholder="프로젝트에 대해 자세히 설명해주세요. 목적, 예상 기간, 예산 등을 포함하면 더 정확한 상담이 가능합니다."
></textarea>
</div>
<button
type="submit"
className="w-full bg-blue-700 text-white py-4 rounded-lg text-lg font-bold hover:bg-blue-800 transition shadow-lg"
>
</button>
</form>
<div className="mt-8 pt-8 border-t border-gray-200">
<div className="text-center text-gray-600">
<p className="mb-4"> </p>
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<a href="mailto:bgg8988@gmail.com" className="flex items-center justify-center text-blue-700 hover:text-blue-800">
<span className="mr-2">📧</span> bgg8988@gmail.com
</a>
<a href="tel:010-3907-1392" className="flex items-center justify-center text-blue-700 hover:text-blue-800">
<span className="mr-2">📱</span> 010-3907-1392
</a>
</div>
</div>
</div>
</div>
<ContactForm />
</div>
</section>