Peas先行公開申請フォーム削除

This commit is contained in:
Last2014 2025-07-24 10:23:44 +09:00
parent 32815c4e78
commit 0dc492d599
2 changed files with 0 additions and 144 deletions

View File

@ -1,130 +0,0 @@
"use client";
import { Icon } from "@iconify/react";
import Link from "next/link";
import { useState } from "react";
export default function PeasAlphaOpenClient() {
const [Load, setLoad] = useState(false);
const FormSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
setLoad(true);
try {
const req = await fetch("/api/peasForm", {
method: "POST",
body: JSON.stringify({
uwuzunetUser: e.currentTarget.uwuzunetUser.value,
email: e.currentTarget.email.value,
})
});
const res = await req.json();
if (res.status === "error") {
alert(`エラー: ${res.error}`);
} else {
alert("送信完了");
}
} catch (err) {
alert(`通信エラー: ${err}`);
} finally {
setLoad(false);
}
};
return (
<div className="content has-text-centered">
{Load && (
<div style={{ marginBottom: "1rem" }}>
<Icon icon="svg-spinners:6-dots-scale" width={32} height={32} />
</div>
)}
<h1>Peas公式サーバー先行公開申請</h1>
<h2>2025/07/16 19:00 - 2025/07/23 23:59:59</h2>
<h2></h2>
<ul>
<li>GIGAスクール端末での参加は不可</li>
<li>13</li>
<li>NDAへの同意が必要()</li>
<li></li>
<li>使</li>
<li>(2,3)</li>
</ul>
<h2></h2>
<ul>
<li>Last2014が必要な情報をメールで尋ねる可能性があります</li>
<li>Last2014はlast2014yh@yahoo.co.jpのメールアドレスを使用します</li>
</ul>
<h2></h2>
<div className="box">
Q1.
<br />
A. GIGAスクール端末は先行公開への参加は拒否させていただきます
<br />
</div>
<div className="box">
Q2. NDAを教えてください
<br />
A.
<br />
<br />
Last2014まで折り返しメールをお願い致します
<br />
(Last2014のみに返信してください)
</div>
<div className="box">
Q3.
<br />
A. Q2に記載されている通り
<br />
NDAのいずれかに同意いただけない場合は
<br />
<br />
Last2014に送信し承認された場合も申請取り消しが可能です
</div>
<h1></h1>
<form onSubmit={FormSubmit}>
<label className="label">
ID
</label>
<input className="input" name="uwuzunetUser" placeholder="@から始まるID" />
<label className="label">
</label>
<input className="input" type="email" name="email" placeholder="有効なメールアドレス" />
<label className="label checkbox" style={{ justifyContent: "center" }}>
<input type="checkbox" name="ruleCheck" required disabled={Load} />
<Link href="/privacypolicy">
</Link>
<strong></strong>
</label>
<button
className="button"
disabled={Load}
>
</button>
</form>
</div>
);
}

View File

@ -1,14 +0,0 @@
import { isAfter } from "date-fns/fp";
import { redirect } from "next/navigation";
import PeasAlphaOpenClient from "./client";
export default function PeasAlphaOpen() {
if (isAfter(new Date(), new Date("2025-07-23T23:59:59"))) {
return (
<PeasAlphaOpenClient />
);
} else {
redirect("/");
}
}