@@ -5,12 +5,18 @@ import { Form, type MetaFunction, useActionData } from "@remix-run/react";
55import { type ActionFunction , json } from "@remix-run/server-runtime" ;
66import { z } from "zod" ;
77import { 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" ;
914import { Button } from "~/components/primitives/Buttons" ;
1015import { CheckboxWithLabel } from "~/components/primitives/Checkbox" ;
1116import { Fieldset } from "~/components/primitives/Fieldset" ;
1217import { FormButtons } from "~/components/primitives/FormButtons" ;
1318import { FormError } from "~/components/primitives/FormError" ;
19+ import { Header2 } from "~/components/primitives/Headers" ;
1420import { Hint } from "~/components/primitives/Hint" ;
1521import { Input } from "~/components/primitives/Input" ;
1622import { InputGroup } from "~/components/primitives/InputGroup" ;
@@ -138,14 +144,17 @@ export default function Page() {
138144 </ NavBar >
139145
140146 < 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" >
143152 < InputGroup className = "mb-4" >
144153 < Label htmlFor = { name . id } > Profile picture</ Label >
145- < UserProfilePhoto className = "h-24 w -24" />
154+ < UserProfilePhoto className = "size -24" />
146155 </ InputGroup >
147156 < Fieldset >
148- < InputGroup >
157+ < InputGroup fullWidth >
149158 < Label htmlFor = { name . id } > Full name</ Label >
150159 < Input
151160 { ...conform . input ( name , { type : "text" } ) }
@@ -156,7 +165,7 @@ export default function Page() {
156165 < Hint > Your teammates will see this</ Hint >
157166 < FormError id = { name . errorId } > { name . error } </ FormError >
158167 </ InputGroup >
159- < InputGroup >
168+ < InputGroup fullWidth >
160169 < Label htmlFor = { email . id } > Email address</ Label >
161170 < Input
162171 { ...conform . input ( email , { type : "text" } ) }
@@ -180,14 +189,14 @@ export default function Page() {
180189
181190 < FormButtons
182191 confirmButton = {
183- < Button type = "submit" variant = { "primary /small" } >
192+ < Button type = "submit" variant = { "secondary /small" } >
184193 Update
185194 </ Button >
186195 }
187196 />
188197 </ Fieldset >
189198 </ Form >
190- </ div >
199+ </ MainHorizontallyCenteredContainer >
191200 </ PageBody >
192201 </ PageContainer >
193202 ) ;
0 commit comments