@ -1,7 +1,6 @@
import React from 'react' ;
import React , { useState , useEffect } from 'react' ;
import { useNavigate } from 'react-router-dom' ;
import { useNavigate } from 'react-router-dom' ;
import { MobileShell } from '../../components/layout/MobileShell' ;
import { MobileShell } from '../../components/layout/MobileShell' ;
import { StatusBar } from '../../components/layout/StatusBar' ;
import { BottomNavBar } from '../../components/layout/BottomNavBar' ;
import { BottomNavBar } from '../../components/layout/BottomNavBar' ;
import { SearchBar } from '../../components/common/SearchBar' ;
import { SearchBar } from '../../components/common/SearchBar' ;
import { CompactProductCard } from '../../components/common/CompactProductCard' ;
import { CompactProductCard } from '../../components/common/CompactProductCard' ;
@ -11,50 +10,58 @@ import {
HOME_NEW_STORES_PRODUCTS ,
HOME_NEW_STORES_PRODUCTS ,
} from '../../data/catalogData' ;
} from '../../data/catalogData' ;
const HERO_BANNER_SLIDES = [
{
id : 'global-marketplace' ,
imageSrc : '/assets/images/banner-habib-marketplace-relatable.jpg' ,
objectPosition : 'center 68%' ,
imageScale : undefined ,
tag : 'Habib Shop' ,
title : 'Global Marketplace for the Muslim Community' ,
subtitle : 'Diverse stores, products, and cultures united in one shared marketplace.' ,
ctaLabel : 'Explore Products' ,
ctaRoute : '/shop-catitems' ,
} ,
{
id : 'trusted-booths' ,
imageSrc : '/assets/images/banner-habib-marketplace.png' ,
objectPosition : 'center center' ,
imageScale : 'scale(1.03)' ,
tag : 'Habib Shop' ,
title : 'Authentic Crafts from Trusted Muslim Sellers' ,
subtitle : 'Curated books, handicrafts, modest fashion, and home essentials worldwide.' ,
ctaLabel : 'Browse Booths' ,
ctaRoute : '/shop-booth' ,
} ,
] as const ;
/ * *
/ * *
* Node 4080 :9587 — ` shop-home ` ( 375 × 1150 )
* Node 4080 :9587 — ` shop-home ` ( 375 × 1074 )
* /
* /
export const ShopHomePage : React.FC = ( ) = > {
export const ShopHomePage : React.FC = ( ) = > {
const navigate = useNavigate ( ) ;
const navigate = useNavigate ( ) ;
const [ activeSlide , setActiveSlide ] = useState ( 0 ) ;
const [ isPaused , setIsPaused ] = useState ( false ) ;
useEffect ( ( ) = > {
if ( isPaused ) return ;
const timer = window . setTimeout ( ( ) = > {
setActiveSlide ( ( prev ) = > ( prev + 1 ) % HERO_BANNER_SLIDES . length ) ;
} , 3800 ) ;
return ( ) = > window . clearTimeout ( timer ) ;
} , [ activeSlide , isPaused ] ) ;
return (
return (
< MobileShell width = { 375 } height = { 1150 } backgroundColor = "#f3f1ef" >
{ /* Top background pattern & golden blur glow (4080:9589 & 4080:9627) */ }
< img
src = "/assets/images/bg-islamic-pattern.png"
alt = ""
style = { {
position : 'absolute' ,
left : 0 ,
top : 2 ,
width : 375 ,
height : 375 ,
opacity : 0.2 ,
pointerEvents : 'none' ,
objectFit : 'cover' ,
} }
/ >
< img
src = "/assets/images/bg-islamic-pattern.png"
alt = ""
style = { {
position : 'absolute' ,
left : 0 ,
top : 0 ,
width : 375 ,
height : 375 ,
opacity : 0.05 ,
pointerEvents : 'none' ,
objectFit : 'cover' ,
} }
/ >
{ /* Ellipse 428 (4080:9590) */ }
< MobileShell width = { 375 } height = { 1074 } backgroundColor = "#f3f1ef" >
{ /* Decorative Top Glow & Islamic Pattern */ }
< div
< div
style = { {
style = { {
position : 'absolute' ,
position : 'absolute' ,
left : 16 ,
left : '50%' ,
top : - 31 ,
top : - 31 ,
width : 343 ,
transform : 'translateX(-50%)' ,
width : '92%' ,
maxWidth : 480 ,
height : 45 ,
height : 45 ,
borderRadius : '50%' ,
borderRadius : '50%' ,
backgroundColor : '#d78e06' ,
backgroundColor : '#d78e06' ,
@ -63,12 +70,12 @@ export const ShopHomePage: React.FC = () => {
pointerEvents : 'none' ,
pointerEvents : 'none' ,
} }
} }
/ >
/ >
{ /* Ellipse 431 (4080:9591) */ }
< div
< div
style = { {
style = { {
position : 'absolute' ,
position : 'absolute' ,
left : 93 ,
left : '50%' ,
top : - 13 ,
top : - 13 ,
transform : 'translateX(-50%)' ,
width : 190 ,
width : 190 ,
height : 35 ,
height : 35 ,
borderRadius : '50%' ,
borderRadius : '50%' ,
@ -78,12 +85,12 @@ export const ShopHomePage: React.FC = () => {
pointerEvents : 'none' ,
pointerEvents : 'none' ,
} }
} }
/ >
/ >
{ /* Ellipse 434 (4080:9592) */ }
< div
< div
style = { {
style = { {
position : 'absolute' ,
position : 'absolute' ,
left : 116 ,
left : '50%' ,
top : - 3 ,
top : - 3 ,
transform : 'translateX(-50%)' ,
width : 144 ,
width : 144 ,
height : 7 ,
height : 7 ,
borderRadius : '50%' ,
borderRadius : '50%' ,
@ -92,19 +99,63 @@ export const ShopHomePage: React.FC = () => {
pointerEvents : 'none' ,
pointerEvents : 'none' ,
} }
} }
/ >
/ >
< img
src = "/assets/images/bg-islamic-pattern.png"
alt = ""
style = { {
position : 'absolute' ,
left : 0 ,
top : 2 ,
width : '100%' ,
height : 375 ,
filter : 'brightness(0) invert(1)' ,
pointerEvents : 'none' ,
objectFit : 'cover' ,
} }
/ >
< img
src = "/assets/images/bg-islamic-pattern.png"
alt = ""
style = { {
position : 'absolute' ,
left : 0 ,
top : 0 ,
width : '100%' ,
height : 375 ,
opacity : 0.25 ,
filter : 'brightness(0) invert(1)' ,
pointerEvents : 'none' ,
objectFit : 'cover' ,
} }
/ >
{ /* iPhone Status Bar (4080:9602) */ }
< StatusBar variant = "dark" height = { 36.5 } / >
{ /* Back Button (4080:9596) at (16, 37) */ }
{ /* Fluid Main Body */ }
< div
style = { {
position : 'relative' ,
zIndex : 1 ,
flex : 1 ,
display : 'flex' ,
flexDirection : 'column' ,
padding : '37px var(--page-px) 22px' ,
gap : 20 ,
} }
>
{ /* Top Bar: Back + "Shop" + Notifications */ }
< header
style = { {
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'space-between' ,
minHeight : 40 ,
marginBottom : 11 ,
} }
>
< button
< button
type = "button"
type = "button"
onClick = { ( ) = > navigate ( '/test' ) }
onClick = { ( ) = > navigate ( '/test' ) }
aria - label = "Back"
aria - label = "Back"
style = { {
style = { {
position : 'absolute' ,
left : 16 ,
top : 37 ,
width : 40 ,
width : 40 ,
height : 40 ,
height : 40 ,
borderRadius : 15 ,
borderRadius : 15 ,
@ -112,52 +163,40 @@ export const ShopHomePage: React.FC = () => {
border : 'none' ,
border : 'none' ,
padding : 0 ,
padding : 0 ,
cursor : 'pointer' ,
cursor : 'pointer' ,
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'center' ,
flexShrink : 0 ,
} }
} }
>
>
< img
< img
src = "/assets/images/icon-back-arrow-dark.svg"
src = "/assets/images/icon-back-arrow-dark.svg"
alt = ""
alt = ""
style = { {
style = { {
position : 'absolute' ,
left : 11 ,
top : 13.06 ,
width : 18.22 ,
width : 18.22 ,
height : 15.18 ,
height : 15.18 ,
} }
} }
/ >
/ >
< / button >
< / button >
{ /* "Shop" Display Title (4080:9595) at (133, 49) */ }
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 133 ,
top : 49 ,
width : 109 ,
height : 15 ,
fontFamily : "'Faminela', Georgia, 'Times New Roman', serif" ,
fontFamily : "'Faminela', Georgia, 'Times New Roman', serif" ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 20 ,
fontSize : 20 ,
lineHeight : '27px' ,
lineHeight : '27px' ,
color : '#111111' ,
color : '#111111' ,
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'center' ,
textAlign : 'center' ,
textAlign : 'center' ,
} }
} }
>
>
Shop
Shop
< / div >
< / div >
{ /* Right Notification Bell Button (4128:15184) at (320, 37) */ }
< button
< button
type = "button"
type = "button"
onClick = { ( ) = > navigate ( '/shop-orders' ) }
onClick = { ( ) = > navigate ( '/shop-orders' ) }
aria - label = "Notifications"
aria - label = "Notifications"
style = { {
style = { {
position : 'absolute' ,
left : 320 ,
top : 37 ,
width : 40 ,
width : 40 ,
height : 40 ,
height : 40 ,
borderRadius : 15 ,
borderRadius : 15 ,
@ -165,234 +204,256 @@ export const ShopHomePage: React.FC = () => {
border : 'none' ,
border : 'none' ,
padding : 0 ,
padding : 0 ,
cursor : 'pointer' ,
cursor : 'pointer' ,
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'center' ,
flexShrink : 0 ,
} }
} }
>
>
< img
< img
src = "/assets/images/icon-bell-notification.svg"
src = "/assets/images/icon-bell-notification.svg"
alt = ""
alt = ""
style = { {
style = { {
position : 'absolute' ,
left : 6 ,
top : 6 ,
width : 28 ,
width : 28 ,
height : 28 ,
height : 28 ,
} }
} }
/ >
/ >
< / button >
< / button >
< / header >
{ /* Search Bar & Filter Button (4128:15096) at (16, 108) */ }
{ /* Search Bar & Filter Button */ }
< SearchBar
< SearchBar
left = { 16 }
top = { 108 }
showFilterButton = { true }
showFilterButton = { true }
onFilterClick = { ( ) = > navigate ( '/shop-category' ) }
onFilterClick = { ( ) = > navigate ( '/shop-category' ) }
/ >
/ >
{ /* Hero Green Marketplace Card (4086:10812) at (16, 178) */ }
{ /* Hero Green Marketplace Card */ }
< div
< div
className = "habib-hero-banner"
onMouseEnter = { ( ) = > setIsPaused ( true ) }
onMouseLeave = { ( ) = > setIsPaused ( false ) }
onFocusCapture = { ( ) = > setIsPaused ( true ) }
onBlurCapture = { ( ) = > setIsPaused ( false ) }
style = { {
style = { {
position : 'absolute' ,
left : 16 ,
top : 178 ,
width : 344 ,
height : 164 ,
position : 'relative' ,
width : '100%' ,
borderRadius : 15 ,
borderRadius : 15 ,
overflow : 'hidden' ,
overflow : 'hidden' ,
backgroundColor : '#182c1f' ,
} }
>
{ /* Horizontal sliding track */ }
< div
style = { {
display : 'flex' ,
width : '100%' ,
height : '100%' ,
transform : ` translateX(- ${ activeSlide * 100 } %) ` ,
transition : 'transform 550ms cubic-bezier(0.22, 1, 0.36, 1)' ,
willChange : 'transform' ,
} }
>
{ HERO_BANNER_SLIDES . map ( ( slide ) = > (
< div
key = { slide . id }
style = { {
position : 'relative' ,
flex : '0 0 100%' ,
width : '100%' ,
height : '100%' ,
overflow : 'hidden' ,
} }
} }
>
>
< img
< img
src = "/assets/images/banner-habib-marketplace.png"
src = { slide . imageSrc }
alt = ""
alt = ""
style = { {
style = { {
position : 'absolute' ,
position : 'absolute' ,
left : 0 ,
top : 0 ,
width : 344 ,
height : 164 ,
inset : 0 ,
width : '100%' ,
height : '100%' ,
objectFit : 'cover' ,
objectFit : 'cover' ,
objectPosition : slide.objectPosition ,
transform : slide.imageScale ,
} }
} }
/ >
/ >
{ /* "Habib Shop" (4086:10826) at rel (17, 17) */ }
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 17 ,
top : 17 ,
width : 45 ,
height : 13 ,
position : 'relative' ,
zIndex : 1 ,
height : '100%' ,
padding : '15px 17px' ,
display : 'flex' ,
flexDirection : 'column' ,
justifyContent : 'space-between' ,
maxWidth : 'min(74%, 380px)' ,
} }
>
< div >
< div
style = { {
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 400 ,
fontWeight : 400 ,
fontSize : 8.5 ,
fontSize : 8.5 ,
lineHeight : '12.52px' ,
lineHeight : '12.52px' ,
color : '#caaf7f' ,
color : '#caaf7f' ,
whiteSpace : 'nowrap' ,
} }
} }
>
>
Habib Shop
{ slide . tag }
< / div >
< / div >
{ /* "Global Marketplace for the Muslim Community" (4086:10829) at rel (17, 33) */ }
< div
< div
className = "habib-hero-title"
style = { {
style = { {
position : 'absolute' ,
left : 17 ,
top : 33 ,
width : 221 ,
height : 40 ,
marginTop : 3 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 16 ,
lineHeight : '20px' ,
lineHeight : '1.22' ,
background : 'linear-gradient(180deg, #ffffff 0%, #aee8ba 100%)' ,
background : 'linear-gradient(180deg, #ffffff 0%, #aee8ba 100%)' ,
WebkitBackgroundClip : 'text' ,
WebkitBackgroundClip : 'text' ,
WebkitTextFillColor : 'transparent' ,
WebkitTextFillColor : 'transparent' ,
} }
} }
>
>
Global Marketplace for the Muslim Community
{ slide . title }
< / div >
< / div >
{ /* Subtitle (4087:12834) at rel (17, 77) */ }
< div
< div
className = "habib-hero-subtitle"
style = { {
style = { {
position : 'absolute' ,
left : 17 ,
top : 77 ,
width : 195 ,
height : 27 ,
marginTop : 4 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 400 ,
fontWeight : 400 ,
fontSize : 8.5 ,
lineHeight : '12.52px' ,
lineHeight : '1.4' ,
color : '#afcdb6' ,
color : '#afcdb6' ,
} }
} }
>
>
Diverse stores , products , and cultures united in one shared marketplace .
{ slide . subtitle }
< / div >
< / div >
< / div >
{ /* "Explore Products" CTA button (4086:10827) at rel (17, 117) */ }
< button
< button
type = "button"
type = "button"
onClick = { ( ) = > navigate ( '/shop-catitems' ) }
onClick = { ( ) = > navigate ( slide . ctaRoute ) }
style = { {
style = { {
position : 'absolute' ,
left : 17 ,
top : 117 ,
width : 105 ,
alignSelf : 'flex-start' ,
minWidth : 105 ,
height : 30 ,
height : 30 ,
borderRadius : 8 ,
borderRadius : 8 ,
background : 'linear-gradient(180deg, #465c39 0%, rgba(67, 83, 58, 0.7) 100%)' ,
background : 'linear-gradient(180deg, #465c39 0%, rgba(67, 83, 58, 0.7) 100%)' ,
border : '1px solid #455b39' ,
border : '1px solid #455b39' ,
padding : 0 ,
padding : '0 12.5px' ,
display : 'inline-flex' ,
alignItems : 'center' ,
justifyContent : 'center' ,
cursor : 'pointer' ,
cursor : 'pointer' ,
} }
} }
>
>
< span
< span
style = { {
style = { {
position : 'absolute' ,
left : 12.5 ,
top : 7 ,
width : 80 ,
height : 14 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 10 ,
fontSize : 10 ,
lineHeight : '13.9px' ,
lineHeight : '13.9px' ,
color : '#ffffff' ,
color : '#ffffff' ,
textAlign : 'left' ,
whiteSpace : 'nowrap' ,
whiteSpace : 'nowrap' ,
} }
} }
>
>
Explore Products
{ slide . ctaLabel }
< / span >
< / span >
< / button >
< / button >
< / div >
< / div >
) ) }
< / div >
{ /* Carousel indicator dots at rel (159, 139.43) & (171, 139.43) */ }
{ /* Carousel indicator dots */ }
< div
< div
style = { {
style = { {
position : 'absolute' ,
position : 'absolute' ,
left : 159 ,
top : 139.43 ,
width : 7 ,
height : 7 ,
borderRadius : '50%' ,
backgroundColor : 'rgba(255, 255, 255, 0.4)' ,
left : '50%' ,
bottom : 17 ,
transform : 'translateX(-50%)' ,
display : 'flex' ,
alignItems : 'center' ,
gap : 5 ,
zIndex : 2 ,
} }
} }
/ >
< div
>
{ HERO_BANNER_SLIDES . map ( ( slide , idx ) = > {
const isActive = activeSlide === idx ;
return (
< button
key = { slide . id }
type = "button"
aria - label = { ` Show banner slide ${ idx + 1 } ` }
aria - current = { isActive ? 'true' : undefined }
onClick = { ( ) = > setActiveSlide ( idx ) }
style = { {
style = { {
position : 'absolute' ,
left : 171 ,
top : 139.43 ,
width : 16 ,
width : isActive ? 16 : 7 ,
height : 7 ,
height : 7 ,
borderRadius : 20 ,
borderRadius : 20 ,
backgroundColor : '#ffffff' ,
border : 'none' ,
padding : 0 ,
cursor : 'pointer' ,
backgroundColor : isActive ? '#ffffff' : 'rgba(255, 255, 255, 0.4)' ,
transition : 'width 350ms ease, background-color 350ms ease' ,
} }
} }
/ >
/ >
) ;
} ) }
< / div >
< / div >
< / div >
{ /* 5 Quick Category Circular Pills (4128:15118) at (16, 362) */ }
< div
style = { {
position : 'absolute' ,
left : 16 ,
top : 362 ,
width : 344 ,
height : 59.57 ,
} }
>
{ /* 5 Quick Category Circular Pills */ }
< div className = "habib-quick-cats" >
{ HOME_QUICK_CATEGORIES . map ( ( cat ) = > (
{ HOME_QUICK_CATEGORIES . map ( ( cat ) = > (
< div
< div
key = { cat . id }
key = { cat . id }
onClick = { ( ) = > navigate ( cat . targetRoute ) }
onClick = { ( ) = > navigate ( cat . targetRoute ) }
style = { {
style = { {
position : 'absolute' ,
left : cat.relX ,
top : 0 ,
width : 68.12 ,
height : 59.57 ,
display : 'flex' ,
flexDirection : 'column' ,
alignItems : 'center' ,
gap : 4 ,
cursor : 'pointer' ,
cursor : 'pointer' ,
minWidth : 0 ,
} }
} }
>
>
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 12.78 ,
top : 0 ,
width : 42.57 ,
width : 42.57 ,
height : 42.57 ,
height : 42.57 ,
borderRadius : '50%' ,
borderRadius : '50%' ,
backgroundColor : 'rgba(215, 142, 6, 0.1)' ,
backgroundColor : 'rgba(215, 142, 6, 0.1)' ,
border : '1px solid rgba(215, 142, 6, 0.14)' ,
border : '1px solid rgba(215, 142, 6, 0.14)' ,
boxSizing : 'border-box' ,
boxSizing : 'border-box' ,
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'center' ,
flexShrink : 0 ,
} }
} }
>
>
< img
< img
src = { cat . iconSrc }
src = { cat . iconSrc }
alt = { cat . label }
alt = { cat . label }
style = { {
style = { {
position : 'absolute' ,
left : 8.29 ,
top : 8.29 ,
width : 24 ,
width : 24 ,
height : 24 ,
height : 24 ,
} }
} }
/ >
/ >
< / div >
< / div >
< div
< div
className = "habib-quick-cat-label"
style = { {
style = { {
position : 'absolute' ,
left : cat.labelLeft ,
top : 46.57 ,
width : cat.labelWidth ,
height : 13 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 600 ,
fontWeight : 600 ,
fontSize : 7.5 ,
lineHeight : '12.52px' ,
lineHeight : '12.52px' ,
color : '#292a2e' ,
color : '#292a2e' ,
textAlign : 'center' ,
textAlign : 'center' ,
width : '100%' ,
overflow : 'hidden' ,
textOverflow : 'ellipsis' ,
whiteSpace : 'nowrap' ,
whiteSpace : 'nowrap' ,
} }
} }
>
>
@ -402,32 +463,18 @@ export const ShopHomePage: React.FC = () => {
) ) }
) ) }
< / div >
< / div >
{ /* Populars Section (4088:12838) at (16, 441.57) */ }
< div
style = { {
position : 'absolute' ,
left : 16 ,
top : 441.57 ,
width : 344 ,
height : 257.3 ,
} }
>
{ /* Header row (4165:13530) at rel (3, 0) */ }
{ /* Populars Section */ }
< section style = { { display : 'flex' , flexDirection : 'column' , gap : 10 } } >
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 3 ,
top : 0 ,
width : 341 ,
height : 18 ,
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'space-between' ,
padding : '0 2px' ,
} }
} }
>
>
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 0 ,
top : 0 ,
height : 18 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 14 ,
fontSize : 14 ,
@ -440,19 +487,14 @@ export const ShopHomePage: React.FC = () => {
< div
< div
onClick = { ( ) = > navigate ( '/shop-catitems' ) }
onClick = { ( ) = > navigate ( '/shop-catitems' ) }
style = { {
style = { {
position : 'absolute' ,
left : 277 ,
top : 0 ,
width : 64 ,
height : 18 ,
display : 'inline-flex' ,
alignItems : 'center' ,
gap : 4 ,
cursor : 'pointer' ,
cursor : 'pointer' ,
} }
} }
>
>
< span
< span
style = { {
style = { {
position : 'absolute' ,
left : 1.5 ,
top : 2 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 10 ,
fontSize : 10 ,
@ -467,9 +509,6 @@ export const ShopHomePage: React.FC = () => {
src = "/assets/images/icon-arrow-right-circle-grey.svg"
src = "/assets/images/icon-arrow-right-circle-grey.svg"
alt = ""
alt = ""
style = { {
style = { {
position : 'absolute' ,
left : 49.5 ,
top : 2.5 ,
width : 13 ,
width : 13 ,
height : 13 ,
height : 13 ,
} }
} }
@ -477,61 +516,27 @@ export const ShopHomePage: React.FC = () => {
< / div >
< / div >
< / div >
< / div >
{ /* 3 Popular product cards (horizontally scrollable) */ }
< div
className = "habib-scroll-container"
style = { {
position : 'absolute' ,
left : - 16 ,
top : 28 ,
width : 375 ,
height : 230 ,
overflowX : 'auto' ,
overflowY : 'hidden' ,
} }
>
< div
style = { {
position : 'relative' ,
marginLeft : 16 ,
marginTop : - 28 ,
width : 496 ,
height : 258 ,
} }
>
< div className = "habib-carousel-scroller habib-scroll-container" >
< div className = "habib-carousel-track" >
{ HOME_POPULAR_PRODUCTS . map ( ( product ) = > (
{ HOME_POPULAR_PRODUCTS . map ( ( product ) = > (
< CompactProductCard key = { product . id } item = { product } / >
< CompactProductCard key = { product . id } item = { product } / >
) ) }
) ) }
< / div >
< / div >
< / div >
< / div >
< / div >
< / section >
{ /* New Stores Section (4089:13018) at (16, 718.87) */ }
< div
style = { {
position : 'absolute' ,
left : 16 ,
top : 718.87 ,
width : 344 ,
height : 257 ,
} }
>
{ /* Header row (4165:13539) at rel (1, 0) */ }
{ /* New Stores Section */ }
< section style = { { display : 'flex' , flexDirection : 'column' , gap : 10 } } >
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 1 ,
top : 0 ,
width : 341 ,
height : 18 ,
display : 'flex' ,
alignItems : 'center' ,
justifyContent : 'space-between' ,
padding : '0 2px' ,
} }
} }
>
>
< div
< div
style = { {
style = { {
position : 'absolute' ,
left : 0 ,
top : 0 ,
height : 18 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 14 ,
fontSize : 14 ,
@ -545,19 +550,14 @@ export const ShopHomePage: React.FC = () => {
< div
< div
onClick = { ( ) = > navigate ( '/shop-booth' ) }
onClick = { ( ) = > navigate ( '/shop-booth' ) }
style = { {
style = { {
position : 'absolute' ,
left : 277 ,
top : 0 ,
width : 64 ,
height : 18 ,
display : 'inline-flex' ,
alignItems : 'center' ,
gap : 4 ,
cursor : 'pointer' ,
cursor : 'pointer' ,
} }
} }
>
>
< span
< span
style = { {
style = { {
position : 'absolute' ,
left : 1.5 ,
top : 2 ,
fontFamily : 'var(--font-sans)' ,
fontFamily : 'var(--font-sans)' ,
fontWeight : 700 ,
fontWeight : 700 ,
fontSize : 10 ,
fontSize : 10 ,
@ -572,9 +572,6 @@ export const ShopHomePage: React.FC = () => {
src = "/assets/images/icon-arrow-right-circle-grey.svg"
src = "/assets/images/icon-arrow-right-circle-grey.svg"
alt = ""
alt = ""
style = { {
style = { {
position : 'absolute' ,
left : 49.5 ,
top : 2.5 ,
width : 13 ,
width : 13 ,
height : 13 ,
height : 13 ,
} }
} }
@ -582,37 +579,18 @@ export const ShopHomePage: React.FC = () => {
< / div >
< / div >
< / div >
< / div >
{ /* 3 New Stores product cards (horizontally scrollable) */ }
< div
className = "habib-scroll-container"
style = { {
position : 'absolute' ,
left : - 16 ,
top : 28 ,
width : 375 ,
height : 230 ,
overflowX : 'auto' ,
overflowY : 'hidden' ,
} }
>
< div
style = { {
position : 'relative' ,
marginLeft : 16 ,
marginTop : - 28 ,
width : 496 ,
height : 258 ,
} }
>
< div className = "habib-carousel-scroller habib-scroll-container" >
< div className = "habib-carousel-track" >
{ HOME_NEW_STORES_PRODUCTS . map ( ( product ) = > (
{ HOME_NEW_STORES_PRODUCTS . map ( ( product ) = > (
< CompactProductCard key = { product . id } item = { product } / >
< CompactProductCard key = { product . id } item = { product } / >
) ) }
) ) }
< / div >
< / div >
< / div >
< / div >
< / section >
< / div >
< / div >
{ /* Bottom Navigation Bar (4090:14079) at y=1072 */ }
< BottomNavBar activeTab = "home" top = { 1072 } showCartBadge = { true } / >
{ /* Bottom Navigation Bar */ }
< BottomNavBar activeTab = "home" showCartBadge = { true } / >
< / MobileShell >
< / MobileShell >
) ;
) ;
} ;
} ;