@@ -5,12 +5,18 @@ import { Form, type MetaFunction, useActionData } from "@remix-run/react";
5
5
import { type ActionFunction , json } from "@remix-run/server-runtime" ;
6
6
import { z } from "zod" ;
7
7
import { UserProfilePhoto } from "~/components/UserProfilePhoto" ;
8
- import { MainCenteredContainer , PageBody , PageContainer } from "~/components/layout/AppLayout" ;
8
+ import {
9
+ MainCenteredContainer ,
10
+ MainHorizontallyCenteredContainer ,
11
+ PageBody ,
12
+ PageContainer ,
13
+ } from "~/components/layout/AppLayout" ;
9
14
import { Button } from "~/components/primitives/Buttons" ;
10
15
import { CheckboxWithLabel } from "~/components/primitives/Checkbox" ;
11
16
import { Fieldset } from "~/components/primitives/Fieldset" ;
12
17
import { FormButtons } from "~/components/primitives/FormButtons" ;
13
18
import { FormError } from "~/components/primitives/FormError" ;
19
+ import { Header2 } from "~/components/primitives/Headers" ;
14
20
import { Hint } from "~/components/primitives/Hint" ;
15
21
import { Input } from "~/components/primitives/Input" ;
16
22
import { InputGroup } from "~/components/primitives/InputGroup" ;
@@ -138,14 +144,17 @@ export default function Page() {
138
144
</ NavBar >
139
145
140
146
< PageBody >
141
- < div className = "grid place-items-center pt-12" >
142
- < Form method = "post" { ...form . props } className = "w-80 max-w-md" >
147
+ < MainHorizontallyCenteredContainer className = "grid place-items-center" >
148
+ < div className = "mb-3 w-full border-b border-grid-dimmed pb-3" >
149
+ < Header2 > Profile</ Header2 >
150
+ </ div >
151
+ < Form method = "post" { ...form . props } className = "w-full" >
143
152
< InputGroup className = "mb-4" >
144
153
< Label htmlFor = { name . id } > Profile picture</ Label >
145
- < UserProfilePhoto className = "h-24 w -24" />
154
+ < UserProfilePhoto className = "size -24" />
146
155
</ InputGroup >
147
156
< Fieldset >
148
- < InputGroup >
157
+ < InputGroup fullWidth >
149
158
< Label htmlFor = { name . id } > Full name</ Label >
150
159
< Input
151
160
{ ...conform . input ( name , { type : "text" } ) }
@@ -156,7 +165,7 @@ export default function Page() {
156
165
< Hint > Your teammates will see this</ Hint >
157
166
< FormError id = { name . errorId } > { name . error } </ FormError >
158
167
</ InputGroup >
159
- < InputGroup >
168
+ < InputGroup fullWidth >
160
169
< Label htmlFor = { email . id } > Email address</ Label >
161
170
< Input
162
171
{ ...conform . input ( email , { type : "text" } ) }
@@ -180,14 +189,14 @@ export default function Page() {
180
189
181
190
< FormButtons
182
191
confirmButton = {
183
- < Button type = "submit" variant = { "primary /small" } >
192
+ < Button type = "submit" variant = { "secondary /small" } >
184
193
Update
185
194
</ Button >
186
195
}
187
196
/>
188
197
</ Fieldset >
189
198
</ Form >
190
- </ div >
199
+ </ MainHorizontallyCenteredContainer >
191
200
</ PageBody >
192
201
</ PageContainer >
193
202
) ;
0 commit comments