8.7 제휴문의: 접수 폼/관리자 승인 워크플로우/알림 o

This commit is contained in:
koreacomp5
2025-10-09 17:43:24 +09:00
parent 9fb4b0c783
commit 66a68c2bfa
7 changed files with 85 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
"use client";
import { useState } from "react";
export default function PartnerInquiryPage() {
const [form, setForm] = useState({ name: "", contact: "", category: "", message: "" });
const [done, setDone] = useState(false);
async function submit() {
const r = await fetch("/api/partner-inquiries", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(form) });
setDone(r.ok);
}
if (done) return <div>. .</div>;
return (
<div style={{ display: "flex", flexDirection: "column", gap: 8 }}>
<h1> </h1>
<input placeholder="업체명" value={form.name} onChange={(e) => setForm({ ...form, name: e.target.value })} />
<input placeholder="연락처/이메일" value={form.contact} onChange={(e) => setForm({ ...form, contact: e.target.value })} />
<input placeholder="카테고리(선택)" value={form.category} onChange={(e) => setForm({ ...form, category: e.target.value })} />
<textarea placeholder="문의 내용" value={form.message} onChange={(e) => setForm({ ...form, message: e.target.value })} rows={8} />
<button onClick={submit}></button>
</div>
);
}