@@ -8,84 +8,87 @@ import HCBInfo from '../../../components/fiscal-sponsorship/apply/hcb-info'
8
8
import Watermark from '../../../components/fiscal-sponsorship/apply/watermark'
9
9
import ContactBanner from '../../../components/fiscal-sponsorship/contact'
10
10
import ApplicationForm from '../../../components/fiscal-sponsorship/apply/application-form'
11
+ import { MultiStepProvider } from '../../../components/fiscal-sponsorship/apply/multi-step-context'
11
12
12
13
export default function Apply ( ) {
13
14
return (
14
15
< >
15
16
< Meta as = { Head } title = "Apply for HCB" />
16
17
< ForceTheme theme = "light" />
17
18
18
- < Grid
19
- columns = { [ null , null , 2 ] }
20
- sx = { {
21
- gap : 0 ,
22
- width : '100%' ,
23
- minHeight : '100vh' ,
24
- alignItems : 'start'
25
- } }
26
- >
27
- < Flex
19
+ < MultiStepProvider >
20
+ < Grid
21
+ columns = { [ null , null , 2 ] }
28
22
sx = { {
29
- flexDirection : 'column' ,
30
- px : [ 3 , 5 ] ,
31
- py : 4 ,
32
- gap : 4 ,
33
- height : [ null , '100svh' ] ,
34
- position : [ null , null , 'sticky' ] ,
35
- top : 0 ,
36
- overflowY : [ null , null , 'auto' ]
23
+ gap : 0 ,
24
+ width : '100%' ,
25
+ minHeight : '100vh' ,
26
+ alignItems : 'start'
37
27
} }
38
28
>
39
- { /* vertically align h1 to top of form */ }
40
- < Box as = "header" sx = { { mt : [ null , 3 ] , mb : 'auto' } } >
41
- < Link href = "/fiscal-sponsorship" passHref legacyBehavior >
42
- < Text
43
- as = "a"
44
- variant = "subheadline"
45
- sx = { {
46
- mb : 3 ,
47
- gap : 2 ,
48
- display : 'flex' ,
49
- alignItems : 'center' ,
50
- color : 'muted' ,
51
- textDecoration : 'none' ,
52
- ':hover' : { color : 'primary' }
53
- } }
54
- >
55
- < Icon
56
- size = { 24 }
57
- glyph = "inserter"
58
- style = { { transform : 'rotate(180deg)' } }
59
- />
60
- Back
61
- </ Text >
62
- </ Link >
63
- < Heading as = "h1" variant = "title" >
64
- Apply to join
65
- < br />
66
- < Flex sx = { { alignItems : 'center' , gap : 3 } } >
67
- < img
68
- src = "/fiscal-sponsorship/hcb-icon-small.png"
69
- width = { 48 }
70
- height = { 48 }
71
- alt = "HCB logo"
72
- style = { {
73
- width : '1em' ,
74
- height : '1em' ,
75
- verticalAlign : 'baseline'
29
+ < Flex
30
+ sx = { {
31
+ flexDirection : 'column' ,
32
+ px : [ 3 , 5 ] ,
33
+ py : 4 ,
34
+ gap : 4 ,
35
+ height : [ null , '100svh' ] ,
36
+ position : [ null , null , 'sticky' ] ,
37
+ top : 0 ,
38
+ overflowY : [ null , null , 'auto' ]
39
+ } }
40
+ >
41
+ { /* vertically align h1 to top of form */ }
42
+ < Box as = "header" sx = { { mt : [ null , 3 ] , mb : 'auto' } } >
43
+ < Link href = "/fiscal-sponsorship" passHref legacyBehavior >
44
+ < Text
45
+ as = "a"
46
+ variant = "subheadline"
47
+ sx = { {
48
+ mb : 3 ,
49
+ gap : 2 ,
50
+ display : 'flex' ,
51
+ alignItems : 'center' ,
52
+ color : 'muted' ,
53
+ textDecoration : 'none' ,
54
+ ':hover' : { color : 'primary' }
76
55
} }
77
- /> { ' ' }
78
- HCB
79
- </ Flex >
80
- </ Heading >
81
- </ Box >
82
- < HCBInfo />
83
- < ContactBanner
84
- sx = { { borderRadius : 'default' , bg : 'snow' , width : 'fit-content' } }
85
- />
86
- </ Flex >
87
- < ApplicationForm />
88
- </ Grid >
56
+ >
57
+ < Icon
58
+ size = { 24 }
59
+ glyph = "inserter"
60
+ style = { { transform : 'rotate(180deg)' } }
61
+ />
62
+ Back
63
+ </ Text >
64
+ </ Link >
65
+ < Heading as = "h1" variant = "title" >
66
+ Apply to join
67
+ < br />
68
+ < Flex sx = { { alignItems : 'center' , gap : 3 } } >
69
+ < img
70
+ src = "/fiscal-sponsorship/hcb-icon-small.png"
71
+ width = { 48 }
72
+ height = { 48 }
73
+ alt = "HCB logo"
74
+ style = { {
75
+ width : '1em' ,
76
+ height : '1em' ,
77
+ verticalAlign : 'baseline'
78
+ } }
79
+ /> { ' ' }
80
+ HCB
81
+ </ Flex >
82
+ </ Heading >
83
+ </ Box >
84
+ < HCBInfo />
85
+ < ContactBanner
86
+ sx = { { borderRadius : 'default' , bg : 'snow' , width : 'fit-content' } }
87
+ />
88
+ </ Flex >
89
+ < ApplicationForm />
90
+ </ Grid >
91
+ </ MultiStepProvider >
89
92
< Watermark />
90
93
</ >
91
94
)
0 commit comments