@@ -5,16 +5,14 @@ import { ErrorAlert } from "components/Alert/ErrorAlert";
5
5
import { Badges , PremiumBadge } from "components/Badges/Badges" ;
6
6
import { ChooseOne , Cond } from "components/Conditionals/ChooseOne" ;
7
7
import {
8
+ Form ,
8
9
FormFields ,
9
10
FormFooter ,
10
11
FormSection ,
11
- VerticalForm ,
12
12
} from "components/Form/Form" ;
13
13
import { IconField } from "components/IconField/IconField" ;
14
14
import { Paywall } from "components/Paywall/Paywall" ;
15
15
import { PopoverPaywall } from "components/Paywall/PopoverPaywall" ;
16
- import { SettingsHeader } from "components/SettingsHeader/SettingsHeader" ;
17
- import { Stack } from "components/Stack/Stack" ;
18
16
import {
19
17
Popover ,
20
18
PopoverContent ,
@@ -67,8 +65,8 @@ export const CreateOrganizationPageView: FC<
67
65
const getFieldHelpers = getFormHelpers ( form , error ) ;
68
66
69
67
return (
70
- < div className = "flex flex-row gap-72 font-medium" >
71
- < div >
68
+ < div className = "flex flex-row font-medium" >
69
+ < div className = "absolute top-40 left-12" >
72
70
< Link
73
71
to = "/organizations"
74
72
className = "flex flex-row items-center gap-2 no-underline text-content-secondary hover:text-content-primary"
@@ -77,13 +75,8 @@ export const CreateOrganizationPageView: FC<
77
75
Go Back
78
76
</ Link >
79
77
</ div >
80
- < Stack >
81
- < div >
82
- < SettingsHeader
83
- title = "New Organization"
84
- description = "Organize your deployment into multiple platform teams with unique provisioners, templates, groups, and members."
85
- />
86
-
78
+ < div className = "flex flex-col gap-4 max-w-2xl mx-auto" >
79
+ < div className = "flex flex-col items-center" >
87
80
{ Boolean ( error ) && ! isApiValidationError ( error ) && (
88
81
< div css = { { marginBottom : 32 } } >
89
82
< ErrorAlert error = { error } />
@@ -109,6 +102,14 @@ export const CreateOrganizationPageView: FC<
109
102
</ PopoverContent >
110
103
</ Popover >
111
104
</ Badges >
105
+
106
+ < header className = "flex flex-col gap-2 items-center" >
107
+ < h1 className = "text-3xl font-bold m-0" > New Organization</ h1 >
108
+ < p className = "max-w-md text-sm text-content-secondary text-center" >
109
+ Organize your deployment into multiple platform teams with unique
110
+ provisioners, templates, groups, and members.
111
+ </ p >
112
+ </ header >
112
113
</ div >
113
114
114
115
< ChooseOne >
@@ -120,14 +121,12 @@ export const CreateOrganizationPageView: FC<
120
121
/>
121
122
</ Cond >
122
123
< Cond >
123
- < VerticalForm
124
+ < Form
125
+ direction = "vertical"
124
126
onSubmit = { form . handleSubmit }
125
127
aria-label = "Organization settings form"
126
128
>
127
- < FormSection
128
- title = "General info"
129
- description = "The name and description of the organization."
130
- >
129
+ < FormSection title = "" description = "" >
131
130
< fieldset
132
131
disabled = { form . isSubmitting }
133
132
css = { {
@@ -167,10 +166,10 @@ export const CreateOrganizationPageView: FC<
167
166
</ fieldset >
168
167
</ FormSection >
169
168
< FormFooter isLoading = { form . isSubmitting } />
170
- </ VerticalForm >
169
+ </ Form >
171
170
</ Cond >
172
171
</ ChooseOne >
173
- </ Stack >
172
+ </ div >
174
173
</ div >
175
174
) ;
176
175
} ;
0 commit comments