home nav
This commit is contained in:
parent
235e3f7bc9
commit
dcb77ae10e
|
@ -1,35 +1,60 @@
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import {
|
import {
|
||||||
Text,
|
Text,
|
||||||
HStack,
|
HStack,
|
||||||
IconButton,
|
|
||||||
Box,
|
Box,
|
||||||
StatusBar,
|
|
||||||
Icon,
|
Icon,
|
||||||
MaterialIcons,
|
MaterialIcons,
|
||||||
Center
|
Center,
|
||||||
|
Pressable
|
||||||
} from "native-base";
|
} from "native-base";
|
||||||
|
|
||||||
export default function Home(){
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
||||||
|
|
||||||
|
export default function Home({navigation}){
|
||||||
|
|
||||||
|
const [selected, setSelected] = React.useState(1);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Center width={"100%"} marginTop={"auto"}>
|
|
||||||
<StatusBar bg="#D7A86E" barStyle="light-content" />
|
|
||||||
<Box safeAreaTop bg="#D7A86E" />
|
|
||||||
<HStack bg="#D7A86E" px="2" py="4" justifyContent="space-between" alignItems="center" w="100%" maxW="100%">
|
|
||||||
<HStack alignItems="center">
|
|
||||||
<IconButton icon={<Icon size="sm" as={MaterialIcons} name="menu" color="white" />} />
|
|
||||||
<Text color="white" fontSize="20" fontWeight="bold">
|
|
||||||
Home
|
|
||||||
</Text>
|
|
||||||
</HStack>
|
|
||||||
<HStack>
|
|
||||||
<IconButton icon={<Icon as={MaterialIcons} name="favorite" size="sm" color="white" />} />
|
|
||||||
<IconButton icon={<Icon as={MaterialIcons} name="search" size="sm" color="white" />} />
|
|
||||||
<IconButton icon={<Icon as={MaterialIcons} name="more-vert" size="sm" color="white" />} />
|
|
||||||
</HStack>
|
|
||||||
</HStack>
|
|
||||||
</Center>
|
|
||||||
|
|
||||||
)
|
<Box flex={1} bg="white" safeAreaTop width="100%" maxW="300px" alignSelf="center">
|
||||||
|
<Center flex={1}></Center>
|
||||||
|
<HStack bg="indigo.600" alignItems="center" safeAreaBottom shadow={6}>
|
||||||
|
<Pressable opacity={selected === 0 ? 1 : 0.5} py="3" flex={1} onPress={() => setSelected(0)}>
|
||||||
|
<Center>
|
||||||
|
<Icon mb="1" as={<MaterialCommunityIcons name={selected === 0 ? 'home' : 'home-outline'} />} color="white" size="sm" />
|
||||||
|
<Text color="white" fontSize="12">
|
||||||
|
Inicio
|
||||||
|
</Text>
|
||||||
|
</Center>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable opacity={selected === 1 ? 1 : 0.5} py="2" flex={1} onPress={() => setSelected(1)}>
|
||||||
|
<Center>
|
||||||
|
<Icon mb="1" as={<MaterialIcons name="search" />} color="white" size="sm" />
|
||||||
|
<Text color="white" fontSize="12">
|
||||||
|
Comunicados
|
||||||
|
</Text>
|
||||||
|
</Center>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable opacity={selected === 2 ? 1 : 0.6} py="2" flex={1} onPress={() => setSelected(2)}>
|
||||||
|
<Center>
|
||||||
|
<Icon mb="1" as={<MaterialCommunityIcons name={selected === 2 ? 'cart' : 'cart-outline'} />} color="white" size="sm" />
|
||||||
|
<Text color="white" fontSize="12">
|
||||||
|
Reservas
|
||||||
|
</Text>
|
||||||
|
</Center>
|
||||||
|
</Pressable>
|
||||||
|
<Pressable opacity={selected === 3 ? 1 : 0.5} py="2" flex={1} onPress={() => setSelected(3)}>
|
||||||
|
<Center>
|
||||||
|
<Icon mb="1" as={<MaterialCommunityIcons name={selected === 3 ? 'account' : 'account-outline'} />} color="white" size="sm" />
|
||||||
|
<Text color="white" fontSize="12">
|
||||||
|
Perfil
|
||||||
|
</Text>
|
||||||
|
</Center>
|
||||||
|
</Pressable>
|
||||||
|
</HStack>
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
|
||||||
|
);
|
||||||
}
|
}
|
|
@ -9,7 +9,8 @@ import {
|
||||||
FormControl,
|
FormControl,
|
||||||
Input,
|
Input,
|
||||||
Button,
|
Button,
|
||||||
Image
|
Image,
|
||||||
|
Container
|
||||||
} from "native-base";
|
} from "native-base";
|
||||||
import logo from "../assets/logo-katoikia.png";
|
import logo from "../assets/logo-katoikia.png";
|
||||||
import { Entypo } from '@expo/vector-icons';
|
import { Entypo } from '@expo/vector-icons';
|
||||||
|
@ -40,7 +41,11 @@ const styles = StyleSheet.create({
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
marginTop: 5
|
margin: 10
|
||||||
|
},
|
||||||
|
|
||||||
|
container: {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -77,6 +82,7 @@ export default function LogIn({navigation}) {
|
||||||
Su app de comunidad de confianza
|
Su app de comunidad de confianza
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
||||||
|
<View style={styles.container}>
|
||||||
<VStack space={3} mt="5">
|
<VStack space={3} mt="5">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormControl.Label> Correo Electrónico </FormControl.Label>
|
<FormControl.Label> Correo Electrónico </FormControl.Label>
|
||||||
|
@ -114,7 +120,8 @@ export default function LogIn({navigation}) {
|
||||||
<Text>Continuar</Text>
|
<Text>Continuar</Text>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
</VStack>
|
</VStack></View>
|
||||||
|
|
||||||
</Box>
|
</Box>
|
||||||
</Center>
|
</Center>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue