File tree Expand file tree Collapse file tree 6 files changed +22
-9
lines changed
_app.orgs.$organizationSlug_.projects.new Expand file tree Collapse file tree 6 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,26 @@ export function PageBody({
6060export function MainCenteredContainer ( {
6161 children,
6262 className,
63+ variant = "default" ,
6364} : {
6465 children : React . ReactNode ;
6566 className ?: string ;
67+ variant ?: "default" | "onboarding" ;
6668} ) {
6769 return (
68- < div className = "flex h-full w-full flex-col overflow-y-auto p-4 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600 lg:p-0" >
69- < div className = { cn ( "m-auto max-w-xs p-1 lg:mx-auto lg:mb-0 lg:mt-[22vh]" , className ) } >
70+ < div
71+ className = { cn (
72+ "h-full w-full overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600" ,
73+ variant === "onboarding" && "flex flex-col p-4 lg:p-0"
74+ ) }
75+ >
76+ < div
77+ className = { cn (
78+ "mx-auto max-w-xs p-1" ,
79+ variant === "onboarding" ? "m-auto lg:mx-auto lg:mb-0 lg:mt-[22vh]" : "mt-6 md:mt-[22vh]" ,
80+ className
81+ ) }
82+ >
7083 { children }
7184 </ div >
7285 </ div >
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ export default function Page() {
361361 return (
362362 < AppContainer className = "bg-charcoal-900" >
363363 < BackgroundWrapper >
364- < MainCenteredContainer className = "max-w-[29rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
364+ < MainCenteredContainer variant = "onboarding" className = "max-w-[29rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
365365 < div >
366366 < FormTitle
367367 LeadingIcon = { < FolderIcon className = "size-7 text-indigo-500" /> }
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export default function NewOrganizationPage() {
143143 return (
144144 < AppContainer className = "bg-charcoal-900" >
145145 < BackgroundWrapper >
146- < MainCenteredContainer className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
146+ < MainCenteredContainer variant = "onboarding" className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
147147 < FormTitle
148148 LeadingIcon = { < BuildingOffice2Icon className = "size-6 text-fuchsia-600" /> }
149149 title = "Create an Organization"
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export default function Page() {
241241 return (
242242 < AppContainer className = "bg-charcoal-900" >
243243 < BackgroundWrapper >
244- < MainCenteredContainer className = "max-w-[29rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
244+ < MainCenteredContainer variant = "onboarding" className = "max-w-[29rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
245245 < Form method = "post" { ...form . props } >
246246 < FormTitle
247247 title = "Welcome to Trigger.dev"
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default function Page() {
101101 return (
102102 < AppContainer className = "bg-charcoal-900" >
103103 < BackgroundWrapper >
104- < MainCenteredContainer className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
104+ < MainCenteredContainer variant = "onboarding" className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
105105 < div >
106106 < FormTitle
107107 LeadingIcon = { < EnvelopeIcon className = "size-6 text-cyan-500" /> }
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ export default function VercelOnboardingPage() {
293293 return (
294294 < AppContainer className = "bg-charcoal-900" >
295295 < BackgroundWrapper >
296- < MainCenteredContainer className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
296+ < MainCenteredContainer variant = "onboarding" className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
297297 < FormTitle title = "Installation Expired" description = { data . error } />
298298 < Button
299299 variant = "primary/medium"
@@ -325,7 +325,7 @@ export default function VercelOnboardingPage() {
325325 return (
326326 < AppContainer className = "bg-charcoal-900" >
327327 < BackgroundWrapper >
328- < MainCenteredContainer className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
328+ < MainCenteredContainer variant = "onboarding" className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
329329 < FormTitle
330330 LeadingIcon = { < BuildingOfficeIcon className = "size-7 text-indigo-500" /> }
331331 title = "Select Organization"
@@ -401,7 +401,7 @@ export default function VercelOnboardingPage() {
401401 return (
402402 < AppContainer className = "bg-charcoal-900" >
403403 < BackgroundWrapper >
404- < MainCenteredContainer className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
404+ < MainCenteredContainer variant = "onboarding" className = "max-w-[26rem] rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg" >
405405 < FormTitle
406406 LeadingIcon = { < FolderIcon className = "size-7 text-indigo-500" /> }
407407 title = "Select Project"
You can’t perform that action at this time.
0 commit comments