import React, { useState } from 'react'; import axios from 'axios'; import './Contact.css'; import './MemberAuth.css'; import { MemberOnly } from '../hooks/useMemberAuth.jsx'; export default function Contact() { const [form, setForm] = useState({ name:'', email:'', phone:'', category:'제품문의', subject:'', content:'', agreePrivacy: false }); const [status, setStatus] = useState(null); const [loading, setLoading] = useState(false); const handleChange = e => { const { name, value, type, checked } = e.target; setForm(f => ({ ...f, [name]: type === 'checkbox' ? checked : value })); }; const handleSubmit = async e => { e.preventDefault(); if (!form.agreePrivacy) { setStatus({ type: 'error', msg: '개인정보 수집·이용에 동의해주세요.' }); return; } setLoading(true); try { await axios.post('/api/inquiry', form); setStatus({ type: 'success', msg: '문의가 접수되었습니다. 빠른 시일 내에 연락드리겠습니다.' }); setForm({ name:'', email:'', phone:'', category:'제품문의', subject:'', content:'', agreePrivacy: false }); } catch { setStatus({ type: 'error', msg: '문의 접수 중 오류가 발생했습니다. 잠시 후 다시 시도해주세요.' }); } finally { setLoading(false); } }; return (
Contact Us

문의하기

GUARDiA ITSM 도입 문의 및 제품 상담을 받아드립니다.

{/* 연락처 정보 */}

연락처 정보

{[ { icon: '📞', label: '대표전화', value: '02-000-0000' }, { icon: '✉️', label: '이메일', value: 'info@zioinfo.co.kr' }, { icon: '🕐', label: '운영시간', value: '평일 09:00 ~ 18:00' }, { icon: '📍', label: '주소', value: '서울특별시' }, ].map((c,i) => (
{c.icon}
{c.label}

{c.value}

))}
{/* 문의 폼 */}

온라인 문의

{status && (
{status.type === 'success' ? '✅' : '❌'} {status.msg}
)}