mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-25 02:56:38 +00:00
Merge branch 'dev' of https://github.com/nbtca/Home into dev
This commit is contained in:
commit
c2b22faa20
4 changed files with 36 additions and 7 deletions
BIN
src/pages/freshman/_assets/nbtca.gif
Normal file
BIN
src/pages/freshman/_assets/nbtca.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
|
|
@ -1,10 +1,12 @@
|
||||||
---
|
---
|
||||||
import BaseLayout from "../../layouts/BaseLayout.astro"
|
import BaseLayout from "../../layouts/BaseLayout.astro"
|
||||||
import ReactChild from "./react/join.tsx";
|
import ReactChild from "./react/join.tsx"
|
||||||
|
import logo from "./_assets/nbtca.gif";
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout title="加入我们">
|
<BaseLayout title="加入我们">
|
||||||
<main>
|
<main>
|
||||||
<ReactChild client:load />
|
<ReactChild client:load />
|
||||||
|
<img src={logo.src} />
|
||||||
</main>
|
</main>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
import BaseLayout from "../../layouts/BaseLayout.astro"
|
import BaseLayout from "../../layouts/BaseLayout.astro"
|
||||||
import ReactChild from "./react/list.tsx";
|
// import ReactChild from "./react/list.tsx";
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout title="加入我们">
|
<BaseLayout title="列表">
|
||||||
<main>
|
<main>
|
||||||
<ReactChild client:load />
|
<!-- <ReactChild client:load /> -->
|
||||||
</main>
|
</main>
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ export default function JoinForm() {
|
||||||
phone: "",
|
phone: "",
|
||||||
qq: "",
|
qq: "",
|
||||||
email: "",
|
email: "",
|
||||||
|
memo: "",
|
||||||
})
|
})
|
||||||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
const { name, value } = e.target
|
const { name, value } = e.target
|
||||||
|
|
@ -33,10 +34,23 @@ export default function JoinForm() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div
|
||||||
|
style={{
|
||||||
|
justifyContent: "center",
|
||||||
|
alignItems: "center",
|
||||||
|
display: "flex",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<form>
|
<form>
|
||||||
<Card>
|
<Card>
|
||||||
<CardBody>
|
<CardBody
|
||||||
|
style={{
|
||||||
|
maxWidth: "700px",
|
||||||
|
display: "grid",
|
||||||
|
gridTemplateColumns: "1fr 1fr",
|
||||||
|
gap: "1rem",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Input
|
<Input
|
||||||
name="name"
|
name="name"
|
||||||
placeholder="姓名"
|
placeholder="姓名"
|
||||||
|
|
@ -86,8 +100,21 @@ export default function JoinForm() {
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
<Input
|
||||||
|
name="memo"
|
||||||
|
placeholder="备注"
|
||||||
|
value={formData.memo}
|
||||||
|
onChange={handleChange}
|
||||||
|
required
|
||||||
|
/>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
<CardFooter>
|
<CardFooter
|
||||||
|
style={{
|
||||||
|
justifyContent: "center",
|
||||||
|
alignItems: "center",
|
||||||
|
display: "flex",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Button onClick={handleSubmit}>提交表单</Button>
|
<Button onClick={handleSubmit}>提交表单</Button>
|
||||||
</CardFooter>
|
</CardFooter>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue