Skip to content

Commit 403930e

Browse files
committed
Improv responsive UI
1 parent b768f3e commit 403930e

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

app/mobile/screens/AppIntroScreen.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const styles = StyleSheet.create({
1313
container: {
1414
flex: 1,
1515
height: '100%',
16-
backgroundColor: DEFAULT_BACKGROUND,
16+
backgroundColor: DEFAULT_BACKGROUND
1717
},
1818
slide: {
1919
flex: 1,
@@ -23,9 +23,10 @@ const styles = StyleSheet.create({
2323
image: {
2424
width: 200,
2525
height: 200,
26+
marginTop: -70,
2627
justifyContent: 'center',
2728
alignItems: 'center',
28-
marginTop: 150,
29+
alignSelf: 'center'
2930
},
3031
buttonCircle: {
3132
width: 40,
@@ -39,6 +40,8 @@ const styles = StyleSheet.create({
3940
width: 140,
4041
height: 60,
4142
marginTop: 4,
43+
//position: 'absolute',
44+
//top: 0,
4245
alignSelf: 'center',
4346
},
4447
});
@@ -112,7 +115,7 @@ export default function AppIntroScreen(props) {
112115
resizeMode="contain"
113116
style={styles.logo}></Image>
114117
) : (
115-
<View style={{height: 70}}></View>
118+
<View style={{height: 60}}></View>
116119
)}
117120
<View
118121
style={{
@@ -121,7 +124,9 @@ export default function AppIntroScreen(props) {
121124
marginRight: 50,
122125
marginLeft: 50,
123126
backgroundColor: DEFAULT_BACKGROUND,
127+
justifyContent: 'center',
124128
}}>
129+
125130
<Image style={styles.image} source={item.image} />
126131
<Headline style={{fontSize: 32}}>{item.title}</Headline>
127132
<Paragraph style={{fontSize: 17, marginTop: 15, textAlign: 'center'}}>

app/mobile/screens/NewUserScreen.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const styles = StyleSheet.create({
1919
image: {
2020
width: 180,
2121
height: 180,
22-
marginTop: 150,
2322
alignItems: 'center',
2423
alignSelf: 'center',
2524
},
@@ -37,7 +36,7 @@ const styles = StyleSheet.create({
3736
fontSize: 20,
3837
fontFamily: 'roboto-regular',
3938
textAlign: 'center',
40-
marginTop: 60,
39+
marginTop: 50,
4140
marginRight: 45,
4241
marginLeft: 45,
4342
alignSelf: 'center',
@@ -49,13 +48,16 @@ export default function NewUserScreen(props) {
4948

5049
return (
5150
<View style={styles.container}>
51+
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center',}}>
5252
<Image
5353
source={require('../assets/images/cotect-logo.png')}
5454
resizeMode="contain"
5555
style={styles.image}></Image>
5656
<Text style={styles.cotectLogo}>{APP_NAME}</Text>
5757
<Text style={styles.welcomeMessage}>{t('home.welcomeMessage')}</Text>
58-
<View style={{flex: 1, justifyContent: 'flex-end', marginBottom: 36}}>
58+
</View>
59+
60+
<View style={{justifyContent: 'flex-end', marginBottom: 36}}>
5961
<Button
6062
mode="outlined"
6163
style={{...styles.actionButton, marginBottom: 24}}

0 commit comments

Comments
 (0)