From 8148d33728d7004883145d70c5520635b8a06a7f Mon Sep 17 00:00:00 2001 From: Wisdom Ekpotu Date: Sat, 10 Dec 2022 00:44:13 -0800 Subject: [PATCH] fix: fixed hungry and home screens --- App.js | 150 +++++++++++++++++++++---------------------- assets/slider.png | Bin 0 -> 1841 bytes screens/Avoiding.js | 12 ++++ screens/HowHungry.js | 102 +++++++++++++++++++++++++---- 4 files changed, 176 insertions(+), 88 deletions(-) create mode 100644 assets/slider.png create mode 100644 screens/Avoiding.js diff --git a/App.js b/App.js index fd01ec9..dfb6afe 100644 --- a/App.js +++ b/App.js @@ -9,6 +9,7 @@ import { useFonts } from 'expo-font'; //import screens import Budget from './screens/Budget'; import Final from './screens/Final'; +import Avoiding from './screens/Avoiding'; import HowHungry from './screens/HowHungry'; import MealOptions from './screens/MealOptions'; import OrderDetails from './screens/OrderDetails'; @@ -20,12 +21,23 @@ import HowLong from './screens/HowLong'; const Tab = createBottomTabNavigator(); -function Home() { +// function Home() { +// return ( + +// ); +// } + +function Otherscreens() { return ( - - + + ( - - ), - }} - /> - ( - - ), }} /> - + ( - - ), - }} - /> - ( - - ), + headerShown: false, + title: 'Savour it', + headerTitleStyle: { + color: 'white', + position: 'absolute', + width: 91, + height: 78, + left: 140, + top: 10, + fontFamily: 'Lactosa', + fontStyle: 'normal', + color: '#FFFFFF', + border: '2.36364px solid #DA0091', + textShadow: '0px 2.36364px 0px rgba(218, 0, 145, 0.25)', + fontWeight: '400', + }, + headerStyle: { backgroundColor: '#DA0091' }, }} /> - + + + + + ); } - const Stack = createNativeStackNavigator(); export default function App() { const [loaded] = useFonts({ @@ -98,17 +101,12 @@ export default function App() { return ( - - - + - - ( - + + ), + }} + /> + ( + + ), + }} + /> + ( + ), }} /> - - - - + ); } diff --git a/assets/slider.png b/assets/slider.png new file mode 100644 index 0000000000000000000000000000000000000000..e4e4c34a8129415fd442999ef164466a4cbeb9e6 GIT binary patch literal 1841 zcmbuAYakN}8^`CeHFjn+bD1G2l*3#mT^PF@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$i&ME6A>^~MR*+%1oO=~*wWc%>&G)jR1X!yR)exO-x$n}Y(gsY9mpGL73 zUnu0>ZQ7n>AN-=FrNzl09<2Uw<$b|d!ei9ziBNU9zp2<%3m7fM zu{QM84KFcgtSb>I8{&pe!#pAU0jBT)OG{d)EV7y5?Z*?~L#p^Vob+Eg1~G0Ip4i5#cvJ_h#U zq!w`kH=>Lg_0${bc6q$oD_0C0(4n>njCC_TA7NCERUU|ihXwi3%$ok~DXv3a?epg5<^>g#))KAXV8GvR$=bRcRzRe_<907y$%}@DhEvo49q(_;`bDw^Wgu)vVBsi>dss_Z>DfoMG(eVI z=+%;FhQFH#P3y9m8@wYstPNL7r`m!-QM&Kq2x|-01mQ`IyNyrkzr5UOpk@h7pZMO9 zR0nc-JcF^`QeojG8}Z@7jj5@r3hW + Avaoiding + + ); +} + +const styles = StyleSheet.create({}); diff --git a/screens/HowHungry.js b/screens/HowHungry.js index bff63c8..bf39db2 100644 --- a/screens/HowHungry.js +++ b/screens/HowHungry.js @@ -1,21 +1,97 @@ -import { StyleSheet, Text, View } from 'react-native'; +import { Image, Pressable, StyleSheet, Text, View } from 'react-native'; import React from 'react'; -import Slider from '@react-native-community/slider'; -export default function HowHungry() { +export default function HowHungry({ navigation }) { return ( - + How hungry are{'\n'}you? + + Very hungry + Not very hungry + Not hungry + + navigation.navigate('Avoiding')}> + Continue + + ); } -const styles = StyleSheet.create({}); +const styles = StyleSheet.create({ + text1: { + position: 'absolute', + width: 119, + height: 26, + left: 159, + top: 214, + fontStyle: 'normal', + fontWeight: '800', + fontSize: 22, + lineHeight: 26, + letterSpacing: -0.03, + color: '#DA0091', + }, + + text2: { + position: 'absolute', + width: 122, + height: 20, + left: 159, + top: 353, + fontStyle: 'normal', + fontWeight: '700', + fontSize: 17, + lineHeight: 20, + letterSpacing: -0.03, + color: '#DA0091', + }, + + text3: { + position: 'absolute', + width: 69, + height: 17, + left: 159, + top: 500, + fontStyle: 'normal', + fontWeight: '500', + fontSize: 14, + lineHeight: 17, + letterSpacing: -0.03, + color: '#DA0091', + }, + img: { position: 'absolute', left: 80, top: 210 }, + + text: { + color: '#4D0033', + position: 'absolute', + width: 273, + height: 64, + left: 60, + top: 45, + fontfamily: 'Clash', + fontStyle: 'normal', + fontWeight: '600', + fontSize: 28, + lineHeight: 40, + textAlign: 'center', + color: '#4D0033', + }, + button: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'center', + alignitems: 'center', + paddingTop: 20, + paddingBottom: 0, + gap: 8, + position: 'absolute', + width: 329, + height: 62, + left: 32, + top: 600, + color: 'white', + backgroundColor: '#B9B9B9', + borderRadius: 89, + }, +});