Connect partnership form to email

This commit is contained in:
Codex
2026-07-21 13:00:44 +02:00
parent 1b741bbe0b
commit 4cdf50c27b
2 changed files with 31 additions and 3 deletions
+29 -3
View File
@@ -1,3 +1,29 @@
"use client";import { FormEvent,useState } from "react";
const interests=["真人授权 AI 分身","年轻时期 AI 分身","原创数字人 IP","内容增长","评论与私聊运营","粉丝变现","MCN / Agency 合作"];
export function ContactForm(){const [sent,setSent]=useState(false);function submit(e:FormEvent){e.preventDefault();setSent(true)}if(sent)return <div className="success" role="status"><i></i><p className="eyebrow">INQUIRY SAVED</p><h2></h2><p>线CRM </p><button className="link" type="button" onClick={()=>setSent(false)}> <b></b></button></div>;return <form className="form" onSubmit={submit}><div className="form-row"><label><input required placeholder="怎么称呼你"/></label><label><select required defaultValue=""><option value="" disabled></option><option></option><option> / </option><option> IP / </option><option>MCN / Agency</option><option></option></select></label></div><label><input required type="url" placeholder="https://"/></label><div className="form-row"><label><select required defaultValue=""><option value="" disabled></option><option>Facebook</option><option>Instagram</option><option>TikTok</option><option>YouTube</option><option></option></select></label><label><select required defaultValue=""><option value="" disabled></option><option></option><option>1 </option><option>110 </option><option>10100 </option><option>100 </option></select></label></div><fieldset><legend></legend><div className="checks">{interests.map(x=><label key={x}><input type="checkbox"/><span>{x}</span></label>)}</div></fieldset><label><textarea rows={5} placeholder="例如:想从零打造一个面向拉美市场的原创数字人 IP……"/></label><label className="consent"><input required type="checkbox"/><span>使</span></label><button className="btn primary submit" type="submit"> <b></b></button><p className="note"></p></form>}
"use client";
import { useEffect, useState } from "react";
const interests = ["真人当前形象 AI 分身","年轻时期 AI 分身","原创数字人 IP","内容增长","评论与私信运营","粉丝变现","全链路转化分析"];
const returnUrl = "https://ai-creator-partnership.liuxiaorong2025.chatgpt.site/contact?sent=1";
export function ContactForm(){
const [sent,setSent]=useState(false);
useEffect(()=>{if(new URLSearchParams(window.location.search).get("sent")==="1")setSent(true)},[]);
if(sent)return <div className="success" role="status"><i></i><p className="eyebrow">INQUIRY SENT</p><h2></h2><p></p><button className="link" type="button" onClick={()=>{window.history.replaceState({},"","/contact");setSent(false)}}> <b></b></button></div>;
return <form className="form" action="https://formsubmit.co/liuxiaorong2018@gmail.com" method="POST">
<input type="hidden" name="_subject" value="COZCREATOR:收到新的创作者合作意向"/>
<input type="hidden" name="_template" value="table"/>
<input type="hidden" name="_next" value={returnUrl}/>
<input type="text" name="_honey" className="form-honey" tabIndex={-1} autoComplete="off"/>
<div className="form-row"><label><input name="称呼" required placeholder="怎么称呼你"/></label><label><select name="合作身份" required defaultValue=""><option value="" disabled></option><option></option><option> / </option><option> IP / </option><option>MCN / Agency</option><option></option></select></label></div>
<label> WhatsApp<input name="联系方式" required placeholder="方便我们与你联系"/></label>
<label><input name="账号或作品链接" required type="url" placeholder="https://"/></label>
<div className="form-row"><label><select name="主要平台" required defaultValue=""><option value="" disabled></option><option>Facebook</option><option>Instagram</option><option>TikTok</option><option>YouTube</option><option></option></select></label><label><select name="粉丝规模" required defaultValue=""><option value="" disabled></option><option></option><option>1 </option><option>110 </option><option>10100 </option><option>100 </option></select></label></div>
<fieldset><legend></legend><div className="checks">{interests.map(x=><label key={x}><input name="合作方向" value={x} type="checkbox"/><span>{x}</span></label>)}</div></fieldset>
<label><textarea name="合作需求" rows={5} placeholder="例如:想从零打造一个面向拉美市场的原创数字人 IP……"/></label>
<label className="consent"><input required type="checkbox"/><span>使</span></label>
<button className="btn primary submit" type="submit"> <b></b></button>
<p className="note"></p>
</form>
}