@@ -7,14 +7,18 @@ import {
77 ScrollView ,
88} from 'react-native' ;
99import { useSignUp } from '@/context/SignUpContext' ;
10- import { useRouter } from 'expo-router' ;
10+ import { usePathname , useRouter } from 'expo-router' ;
1111import { Colors } from '@/constants/Colors' ;
1212import { Fonts } from '@/constants/Fonts' ;
13+ import { Image } from 'expo-image' ;
1314import { SignUpFlowButton } from '@/components/signup/SignUpFlowButton' ;
1415import { Qualification } from '@/types/api/volunteer' ;
1516import { Ionicons } from '@expo/vector-icons' ;
17+ import { SignUpProgress } from '@/components/signup/SignUpProgress' ;
1618
1719function SignUpQualifications ( ) {
20+ const pathname = usePathname ( ) ;
21+ const isIndexPage = pathname === '/signup' ;
1822 const { data, setData, setCurrentStep } = useSignUp ( ) ;
1923 const router = useRouter ( ) ;
2024
@@ -56,6 +60,13 @@ function SignUpQualifications() {
5660
5761 return (
5862 < View style = { styles . container } >
63+ < Image
64+ source = { require ( '@/assets/images/qualifications.png' ) }
65+ style = { StyleSheet . absoluteFill }
66+ contentFit = "cover"
67+ pointerEvents = "none"
68+ />
69+ { ! isIndexPage && < SignUpProgress /> }
5970 < View style = { styles . header } >
6071 < Text style = { styles . title } > What qualifications do you have?</ Text >
6172 </ View >
@@ -119,13 +130,14 @@ const styles = StyleSheet.create({
119130 container : {
120131 flex : 1 ,
121132 backgroundColor : Colors . light . white ,
122- paddingHorizontal : 20 ,
123133 paddingTop : 75 ,
124134 paddingBottom : 100 ,
125135 } ,
126136 header : {
137+ marginTop : 50 ,
127138 marginBottom : 32 ,
128139 alignItems : 'center' ,
140+ paddingHorizontal : 20 ,
129141 } ,
130142 title : {
131143 fontSize : 24 ,
@@ -145,6 +157,7 @@ const styles = StyleSheet.create({
145157 flexWrap : 'wrap' ,
146158 justifyContent : 'center' ,
147159 gap : 8 ,
160+ paddingHorizontal : 20 ,
148161 } ,
149162 qualificationButton : {
150163 backgroundColor : Colors . light . white ,
@@ -176,10 +189,9 @@ const styles = StyleSheet.create({
176189 } ,
177190 fixedButtonContainer : {
178191 position : 'absolute' ,
179- bottom : 0 ,
192+ bottom : 20 ,
180193 left : 0 ,
181194 right : 0 ,
182195 padding : 20 ,
183- backgroundColor : Colors . light . white ,
184196 } ,
185197} ) ;
0 commit comments