-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sofia Cantero
committed
Dec 3, 2024
1 parent
5248a59
commit a3f13b2
Showing
8 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
import images from 'assets'; | ||
|
||
import { HeaderLogo } from '@/components/header-logo'; | ||
import { HorizontalCarousel } from '@/components/home/carousel'; | ||
import { SafeAreaView } from '@/ui'; | ||
import PaymentMethods from '@/components/home/payment-methods'; | ||
import { Image, SafeAreaView, ScrollView, Text, View } from '@/ui'; | ||
|
||
export default function Feed() { | ||
return ( | ||
<SafeAreaView> | ||
<SafeAreaView className="bg-light_background"> | ||
<HeaderLogo /> | ||
<HorizontalCarousel /> | ||
<ScrollView> | ||
<HorizontalCarousel /> | ||
<View className="h-52"> | ||
<Image | ||
className="w-full flex-1" | ||
source={images.productsBanner()} | ||
contentFit="contain" | ||
/> | ||
</View> | ||
<View className="bg-white"> | ||
<Text className="my-8 self-center text-lg font-bold"> | ||
Payment methods | ||
</Text> | ||
<PaymentMethods /> | ||
</View> | ||
<View className="h-48"> | ||
<Image | ||
className="w-full flex-1" | ||
source={images.fedexBanner()} | ||
contentFit="contain" | ||
/> | ||
</View> | ||
</ScrollView> | ||
</SafeAreaView> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import images from 'assets'; | ||
|
||
import { Image, Text, TouchableOpacity, View } from '@/ui'; | ||
|
||
const PaymentMethods = () => { | ||
return ( | ||
<View className="my-4 h-20 w-4/5 flex-row items-center justify-evenly self-center"> | ||
<TouchableOpacity className="mx-3 items-center justify-items-center"> | ||
<Image | ||
source={images.creditCard()} | ||
className="mb-6 h-9 w-9" | ||
contentFit="contain" | ||
/> | ||
<Text>Credit</Text> | ||
</TouchableOpacity> | ||
<View className="mx-5 h-full w-px bg-black" /> | ||
<TouchableOpacity className="mx-3 items-center justify-items-center"> | ||
<Image | ||
source={images.paypal()} | ||
className="mb-6 h-9 w-9" | ||
contentFit="contain" | ||
/> | ||
<Text>Paypal</Text> | ||
</TouchableOpacity> | ||
<View className="mx-5 h-full w-px bg-black" /> | ||
<TouchableOpacity className="mx-3 items-center justify-items-center"> | ||
<Image | ||
source={images.crypto()} | ||
className="mb-6 h-9 w-9" | ||
contentFit="contain" | ||
/> | ||
<Text>Crypto</Text> | ||
</TouchableOpacity> | ||
</View> | ||
); | ||
}; | ||
|
||
export default PaymentMethods; |