@@ -16,6 +16,7 @@ import { ClipboardField } from "~/components/primitives/ClipboardField";
1616import { Fieldset } from "~/components/primitives/Fieldset" ;
1717import { FormButtons } from "~/components/primitives/FormButtons" ;
1818import { FormError } from "~/components/primitives/FormError" ;
19+ import { Header2 } from "~/components/primitives/Headers" ;
1920import { Hint } from "~/components/primitives/Hint" ;
2021import { Input } from "~/components/primitives/Input" ;
2122import { InputGroup } from "~/components/primitives/InputGroup" ;
@@ -149,48 +150,50 @@ export default function Page() {
149150
150151 < PageBody >
151152 < MainHorizontallyCenteredContainer >
152- < div className = "flex flex-col gap-4" >
153- < div className = "flex flex-col gap-4" >
154- < Fieldset >
155- < InputGroup >
156- < Label > Project ref</ Label >
157- < ClipboardField value = { project . externalRef } variant = { "secondary/small" } />
158- < Hint >
159- This goes in your{ " " }
160- < InlineCode variant = "extra-extra-small" > trigger.config</ InlineCode > file.
161- </ Hint >
162- </ InputGroup >
163- </ Fieldset >
153+ < div className = "mb-3 border-b border-grid-dimmed pb-3" >
154+ < Header2 > Project settings</ Header2 >
155+ </ div >
156+ < div className = "flex flex-col gap-6" >
157+ < Fieldset >
158+ < InputGroup fullWidth >
159+ < Label > Project ref</ Label >
160+ < ClipboardField value = { project . externalRef } variant = { "secondary/medium" } />
161+ < Hint >
162+ This goes in your{ " " }
163+ < InlineCode variant = "extra-extra-small" > trigger.config</ InlineCode > file.
164+ </ Hint >
165+ </ InputGroup >
166+ </ Fieldset >
164167
165- < Form method = "post" { ...renameForm . props } className = "max-w-md" >
166- < input type = "hidden" name = "action" value = "rename" />
167- < Fieldset >
168- < InputGroup >
169- < Label htmlFor = { projectName . id } > Rename your project</ Label >
170- < Input
171- { ...conform . input ( projectName , { type : "text" } ) }
172- defaultValue = { project . name }
173- placeholder = "Your project name"
174- icon = { FolderIcon }
175- autoFocus
176- />
177- < FormError id = { projectName . errorId } > { projectName . error } </ FormError >
178- </ InputGroup >
179- < FormButtons
180- confirmButton = {
181- < Button
182- type = "submit"
183- variant = { "primary/small" }
184- disabled = { isRenameLoading }
185- LeadingIcon = { isRenameLoading ? SpinnerWhite : undefined }
186- >
187- Rename project
188- </ Button >
189- }
168+ < Form method = "post" { ...renameForm . props } >
169+ < input type = "hidden" name = "action" value = "rename" />
170+ < Fieldset className = "gap-y-0" >
171+ < InputGroup fullWidth >
172+ < Label htmlFor = { projectName . id } > Rename your project</ Label >
173+ < Input
174+ { ...conform . input ( projectName , { type : "text" } ) }
175+ defaultValue = { project . name }
176+ placeholder = "Your project name"
177+ icon = { FolderIcon }
178+ autoFocus
190179 />
191- </ Fieldset >
192- </ Form >
193- </ div >
180+ < FormError id = { projectName . errorId } > { projectName . error } </ FormError >
181+ </ InputGroup >
182+ < FormButtons
183+ confirmButton = {
184+ < Button
185+ type = "submit"
186+ variant = { "secondary/small" }
187+ disabled = { isRenameLoading }
188+ LeadingIcon = { isRenameLoading ? SpinnerWhite : undefined }
189+ >
190+ Rename project
191+ </ Button >
192+ }
193+ className = "border-t-0"
194+ />
195+ </ Fieldset >
196+ </ Form >
194197 </ div >
195198 </ MainHorizontallyCenteredContainer >
196199 </ PageBody >
0 commit comments