diff --git a/app/(root)/(tabs)/index.tsx b/app/(root)/(tabs)/index.tsx index 8cc4f54..5ba0e7f 100644 --- a/app/(root)/(tabs)/index.tsx +++ b/app/(root)/(tabs)/index.tsx @@ -2,9 +2,9 @@ import { Link } from "expo-router"; 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"; +import {Card, FeaturedCard} from "@/components/Cards"; export default function Index() { // create func that determines the time od day [morning, evening, night] @@ -31,6 +31,9 @@ export default function Index() { see all + + + diff --git a/components/Cards.tsx b/components/Cards.tsx index db4ec87..db78ed1 100644 --- a/components/Cards.tsx +++ b/components/Cards.tsx @@ -1,11 +1,46 @@ -import {View, Text} from 'react-native' +import {View, Text, TouchableOpacity, Image} from 'react-native' import React from 'react' +import images from "@/constants/images"; +import icons from "@/constants/icons"; -const Cards = () => { + +interface Props { + onPress?: () => void +} + +export const FeaturedCard = ({onPress} :Props) => { return ( - - Cards - + + + + + + + 5.0 + + + Honda - xyz + Skopje + + + + 25.000 + + + + + ) } -export default Cards + +export const Card = ({onPress} :Props) => { + return ( + + + + 5.0 + + + + ) +} \ No newline at end of file diff --git a/constants/images.ts b/constants/images.ts index 3566475..c37e9d5 100644 --- a/constants/images.ts +++ b/constants/images.ts @@ -3,7 +3,7 @@ import onboarding from "@/assets/images/onboarding.png"; // import avatar from "@/assets/images/avatar.png"; // import newYork from "@/assets/images/new-york.png"; // import japan from "@/assets/images/japan.png"; -// import cardGradient from "@/assets/images/card-gradient.png"; +import cardGradient from "@/assets/images/card-gradient.png"; // import barChart from "@/assets/images/bar-chart.png"; // import whiteGradient from "@/assets/images/white-gradient.png"; // import map from "@/assets/images/map.png"; @@ -18,4 +18,5 @@ export default { car2, onboarding, collage, + cardGradient, };