11import type { Step1User } from "common/zod/types" ;
22import type { BackProp , StepProps } from "~/app/signup/common" ;
33import CardBasicInfo from "~/components/CardBasicInfo" ;
4+ import UserAvatar from "~/components/human/avatar" ;
45import type { Step2Data } from "./step2_img" ;
56
67interface inputDataProps {
@@ -18,27 +19,40 @@ export default function Confirmation({
1819 throw new Error ( "don't skip the steps" ) ;
1920 }
2021 return (
21- < div className = "px-8 py-2" >
22- < h1 className = "mb-2 text-xl" > 確認</ h1 >
23- < p > 以下の内容で登録する場合は「次へ」を押してください。</ p >
24- < h3 className = "pt-4 text-lg" > 基本情報</ h3 >
25- < div className = "flex flex-col items-center py-4" >
26- < div
27- className = "rounded-md border-2 border-primary bg-secondary p-5"
28- style = { { width : "min(50dvh, 87.5vw)" } }
29- >
30- < CardBasicInfo
31- displayedUser = { {
32- ...Step1Data ,
33- ...Step2Data ,
34- id : 0 , // dummy
35- guid : "zero" , // dummy
36- } }
37- />
22+ < >
23+ < div className = "px-8 py-2" >
24+ < h1 className = "mb-2 text-xl" > 確認(3/5)</ h1 >
25+ < p > 以下の内容で登録する場合は「次へ」を押してください。</ p >
26+ < div className = "p-6 space-y-10" >
27+ < div className = "w-6/6 mx-auto" >
28+ < h3 className = "text-xl font-bold mb-2" > プロフィール画像</ h3 >
29+ < div className = "card bg-white p-6" >
30+ < UserAvatar
31+ pictureUrl = { Step2Data . pictureUrl }
32+ width = { "200" }
33+ height = { "200" }
34+ />
35+ </ div >
36+ </ div >
37+ < div className = "w-6/6 mx-auto" >
38+ < h3 className = "text-xl font-bold mb-2" > 基本情報</ h3 >
39+ < div className = "card bg-white p-6" >
40+ < p > 名前: { Step1Data . name } </ p >
41+ < p > 学年: { Step1Data . grade } </ p >
42+ < p >
43+ 学部学科:{ Step1Data . faculty }
44+ { Step1Data . department }
45+ </ p >
46+ </ div >
47+ </ div >
48+ < div className = "w-6/6 mx-auto" >
49+ < h3 className = "text-xl font-bold mb-2" > 自己紹介</ h3 >
50+ < div className = "card bg-white p-6" >
51+ < p className = "pt-2" > { Step1Data . intro } </ p >
52+ </ div >
53+ </ div >
3854 </ div >
3955 </ div >
40- < h3 className = "pt-4 text-lg" > 自己紹介</ h3 >
41- < p className = "pt-2" > { Step1Data . intro } </ p >
4256 < div className = "fixed bottom-0 left-0 flex w-full justify-between p-3" >
4357 < button type = "button" onClick = { back } className = "btn" >
4458 前へ
@@ -51,6 +65,6 @@ export default function Confirmation({
5165 次へ
5266 </ button >
5367 </ div >
54- </ div >
68+ </ >
5569 ) ;
5670}
0 commit comments