You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

191 lines
5.2 KiB

import React from 'react';
import { useNavigate } from 'react-router-dom';
import { MobileShell } from '../../components/layout/MobileShell';
import { BottomNavBar } from '../../components/layout/BottomNavBar';
import { StickyFooterBar } from '../../components/layout/StickyFooterBar';
import { OrderSummaryBgItemCard } from '../../components/checkout/CartItemCard';
import { OrderSummaryRows } from '../../components/checkout/OrderSummaryRows';
import { ORDER_SUMMARY_BG_ITEMS } from '../../data/checkoutData';
/**
* Node 4154:20497 — `shop-order summery` (Order Summary Bottom Sheet Modal over Cart, 375×814)
*/
export const ShopOrderSummaryPage: React.FC = () => {
const navigate = useNavigate();
return (
<MobileShell width={375} height={814} backgroundColor="#f5f5f5">
{/* Underlying Cart Screen Layer */}
<div
style={{
flex: 1,
display: 'flex',
flexDirection: 'column',
padding: '41px var(--page-px) 24px',
gap: 11,
}}
>
<div
style={{
fontFamily: 'var(--font-sans)',
fontWeight: 700,
fontSize: 16,
lineHeight: '20px',
color: '#111111',
textAlign: 'center',
}}
>
Cart
</div>
<div
style={{
fontFamily: 'var(--font-sans)',
fontWeight: 700,
fontSize: 12,
lineHeight: '17px',
color: '#747474',
textAlign: 'center',
}}
>
3 Products from 2 Shops
</div>
<div
style={{
marginTop: 12,
display: 'flex',
flexDirection: 'column',
gap: 10,
}}
>
{ORDER_SUMMARY_BG_ITEMS.map((item) => (
<OrderSummaryBgItemCard key={item.id} item={item} />
))}
</div>
</div>
<div style={{ width: '100%', marginTop: 'auto' }}>
<StickyFooterBar
aboveBottomNav={true}
height={104}
price="$24.00"
oldPrice="$28.50"
totalItemsLabel="Total 4 item"
buttonText="checkout"
buttonFontWeight={600}
iconSrc="/assets/images/icon-credit-card-white.svg"
targetRoute="/shop-buy01"
/>
<BottomNavBar activeTab="cart" showCartBadge={true} />
</div>
{/* Dark Backdrop Overlay & Bottom Sheet Modal */}
<div
onClick={() => navigate('/shop-cart')}
style={{
position: 'absolute',
inset: 0,
backgroundColor: 'rgba(17, 17, 17, 0.9)',
zIndex: 40,
display: 'flex',
flexDirection: 'column',
justifyContent: 'flex-end',
}}
>
<div
className="habib-bottom-sheet"
onClick={(e) => e.stopPropagation()}
style={{
padding: '22px var(--page-px) 24px',
display: 'flex',
flexDirection: 'column',
gap: 28,
}}
>
{/* Header & Close X Button */}
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
gap: 12,
}}
>
<div
style={{
fontFamily: 'var(--font-sans)',
fontWeight: 700,
fontSize: 14,
lineHeight: '19px',
color: '#111111',
}}
>
Orded Summery
</div>
<button
type="button"
onClick={() => navigate('/shop-cart')}
aria-label="Close"
style={{
width: 24,
height: 24,
background: 'transparent',
border: 'none',
padding: 0,
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<img
src="/assets/images/icon-modal-close-cross.svg"
alt=""
style={{
width: 11.67,
height: 11.67,
display: 'block',
}}
/>
</button>
</div>
{/* Breakdown Rows */}
<OrderSummaryRows />
{/* "Got it" CTA Button */}
<button
type="button"
className="habib-cta-btn"
onClick={() => navigate('/shop-buy01')}
style={{
width: '100%',
height: 52,
borderRadius: 11,
border: 'none',
padding: 0,
cursor: 'pointer',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<span
style={{
fontFamily: 'var(--font-sans)',
fontWeight: 700,
fontSize: 16,
lineHeight: '24px',
color: '#fbfbfc',
}}
>
Got it
</span>
</button>
</div>
</div>
</MobileShell>
);
};