mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +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 ReactChild from "./react/join.tsx";
|
||||
import ReactChild from "./react/join.tsx"
|
||||
import logo from "./_assets/nbtca.gif";
|
||||
---
|
||||
|
||||
<BaseLayout title="加入我们">
|
||||
<main>
|
||||
<ReactChild client:load />
|
||||
<img src={logo.src} />
|
||||
</main>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
import BaseLayout from "../../layouts/BaseLayout.astro"
|
||||
import ReactChild from "./react/list.tsx";
|
||||
// import ReactChild from "./react/list.tsx";
|
||||
---
|
||||
|
||||
<BaseLayout title="加入我们">
|
||||
<BaseLayout title="列表">
|
||||
<main>
|
||||
<ReactChild client:load />
|
||||
<!-- <ReactChild client:load /> -->
|
||||
</main>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export default function JoinForm() {
|
|||
phone: "",
|
||||
qq: "",
|
||||
email: "",
|
||||
memo: "",
|
||||
})
|
||||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const { name, value } = e.target
|
||||
|
|
@ -33,10 +34,23 @@ export default function JoinForm() {
|
|||
}
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
<div
|
||||
style={{
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
display: "flex",
|
||||
}}
|
||||
>
|
||||
<form>
|
||||
<Card>
|
||||
<CardBody>
|
||||
<CardBody
|
||||
style={{
|
||||
maxWidth: "700px",
|
||||
display: "grid",
|
||||
gridTemplateColumns: "1fr 1fr",
|
||||
gap: "1rem",
|
||||
}}
|
||||
>
|
||||
<Input
|
||||
name="name"
|
||||
placeholder="姓名"
|
||||
|
|
@ -86,8 +100,21 @@ export default function JoinForm() {
|
|||
onChange={handleChange}
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
name="memo"
|
||||
placeholder="备注"
|
||||
value={formData.memo}
|
||||
onChange={handleChange}
|
||||
required
|
||||
/>
|
||||
</CardBody>
|
||||
<CardFooter>
|
||||
<CardFooter
|
||||
style={{
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
display: "flex",
|
||||
}}
|
||||
>
|
||||
<Button onClick={handleSubmit}>提交表单</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
|
|
|||
Loading…
Reference in a new issue