marker: start working on cards
This commit is contained in:
1 parent
70615202dc
commit
fb090fca55
4 files changed
+46
-13
No files matched your search
@@ -1,27 +1,38 @@
|
||||
import { Link } from "expo-router";
|
||||
import {Image, SafeAreaView, Text, View} from "react-native";
|
||||
import {Image, SafeAreaView, Text, TouchableOpacity, View} from "react-native";
|
||||
import images from "@/constants/images";
|
||||
import icons from "@/constants/icons";
|
||||
import search from "@/components/Search";
|
||||
import Search from "@/components/Search";
|
||||
import {useGlobalContext} from "@/lib/globalProvider";
|
||||
|
||||
export default function Index() {
|
||||
// create func that determines the time od day [morning, evening, night]
|
||||
const {user, refetch} = useGlobalContext();
|
||||
return (
|
||||
<SafeAreaView className={'bg-white h-full'}>
|
||||
<View className={'px-5'}>
|
||||
<View className={'flex flex-row items-center justify-between mt-5'}>
|
||||
<View className={'flex flex-row items-cente'}>
|
||||
<Image source={images.car1} className={'rounded-full size-24'}/>
|
||||
<View className={'flex flex-col items-start ml-2 justify-center'}>
|
||||
<Text>good morning</Text>
|
||||
<Text>pero</Text>
|
||||
<View className={'flex flex-row items-center'}>
|
||||
<Image source={{uri: user?.avatar}} className={'rounded-full size-12'}/>
|
||||
<View className={'flex flex-col items-start ml-4 justify-center'}>
|
||||
<Text className={'capitalize'}>good morning</Text>
|
||||
<Text className={'capitalize font-bold'}>{user?.name}</Text>
|
||||
</View>
|
||||
</View>
|
||||
<Image source={icons.bell} className={'size-6'}/>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<Search />
|
||||
<Search />
|
||||
<View className={'my-5'}>
|
||||
<View className={'flex flex-row items-center justify-between'}>
|
||||
<Text className={'capitalize font-bold text-base'}>featured</Text>
|
||||
<TouchableOpacity>
|
||||
<Text className={'capitalize text-base text-blue-500'}>see all</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
@@ -6,7 +6,6 @@ import {settings} from "@/constants/data";
|
||||
import {useGlobalContext} from "@/lib/globalProvider";
|
||||
import {logOut} from "@/lib/appwrite";
|
||||
import {parseJson} from "ajv/dist/runtime/parseJson";
|
||||
import message = parseJson.message;
|
||||
|
||||
interface SettingsItemsProps{
|
||||
icon: ImageSourcePropType,
|
||||
|
||||
Reference in new issue
Block a user