diff --git a/assets/credit.png b/assets/credit.png new file mode 100644 index 0000000..498b9be Binary files /dev/null and b/assets/credit.png differ diff --git a/assets/crypto.png b/assets/crypto.png new file mode 100644 index 0000000..c5d6781 Binary files /dev/null and b/assets/crypto.png differ diff --git a/assets/fedex-ad.png b/assets/fedex-ad.png new file mode 100644 index 0000000..5447c60 Binary files /dev/null and b/assets/fedex-ad.png differ diff --git a/assets/fedex-banner.png b/assets/fedex-banner.png new file mode 100644 index 0000000..67b406b Binary files /dev/null and b/assets/fedex-banner.png differ diff --git a/assets/furniture-banner.png b/assets/furniture-banner.png new file mode 100644 index 0000000..21ac6bf Binary files /dev/null and b/assets/furniture-banner.png differ diff --git a/assets/index.ts b/assets/index.ts index 033342d..60f4628 100644 --- a/assets/index.ts +++ b/assets/index.ts @@ -9,6 +9,11 @@ const images = { filterIcon: () => require('./filter_list.png'), trashIcon: () => require('./trash.png'), plusIcon: () => require('./plus.png'), + fedexBanner: () => require('./fedex-banner.png'), + furnitureBanner: () => require('./furniture-banner.png'), + creditCard: () => require('./credit.png'), + paypal: () => require('./paypal.png'), + crypto: () => require('./crypto.png'), }; export type Images = keyof typeof images; diff --git a/assets/paypal.png b/assets/paypal.png new file mode 100644 index 0000000..cf0e0ae Binary files /dev/null and b/assets/paypal.png differ diff --git a/src/app/(app)/index.tsx b/src/app/(app)/index.tsx index 3e66b01..5880ea5 100644 --- a/src/app/(app)/index.tsx +++ b/src/app/(app)/index.tsx @@ -1,12 +1,48 @@ +import images from 'assets'; + import { HeaderLogo } from '@/components/header-logo'; +import { Banner } from '@/components/home/bannner'; import { HorizontalCarousel } from '@/components/home/carousel'; -import { SafeAreaView } from '@/ui'; +import PaymentMethods from '@/components/home/payment-methods'; +import { SafeAreaView, ScrollView, Text, View } from '@/ui'; export default function Feed() { return ( - + - + + + + + Check out our new and restored furniture + + + Shop today and get a 10% discount! + + + + + Payment methods + + + + + + We upgraded our shipments many levels up + + + Powered by FedEx + + + ); } diff --git a/src/components/home/bannner.tsx b/src/components/home/bannner.tsx new file mode 100644 index 0000000..4b3f155 --- /dev/null +++ b/src/components/home/bannner.tsx @@ -0,0 +1,41 @@ +import { Image, View } from '@/ui'; + +type BannerProps = { + background: string; + alignment: 'left' | 'right'; + image: any; + children: React.ReactNode; +}; + +export const Banner = ({ + background, + alignment, + image, + children, +}: BannerProps) => { + const isLeftAligned = alignment === 'left'; + + return ( + + + + + {children} + + + ); +}; diff --git a/src/components/home/payment-methods.tsx b/src/components/home/payment-methods.tsx new file mode 100644 index 0000000..0984d2d --- /dev/null +++ b/src/components/home/payment-methods.tsx @@ -0,0 +1,38 @@ +import images from 'assets'; + +import { Image, Text, TouchableOpacity, View } from '@/ui'; + +const PaymentMethods = () => { + return ( + + + + Credit + + + + + Paypal + + + + + Crypto + + + ); +}; + +export default PaymentMethods;