AndroidCode / code /10001 /10001_1.html
yhzheng1031's picture
Add files using upload-large-folder tool
98687c3 verified
<html>
<head>
<meta charset="utf-8">
<title>Cart UI</title>
<style>
:root{
--purple:#3E0066;
--purple-dark:#2A0046;
--pink:#FF3D74;
--green:#49C58A;
--text:#1d1d1f;
--muted:#6e6e73;
--bg:#ffffff;
--chip:#f3f0f8;
--border:#e4e4e7;
}
body{ margin:0; padding:0; background:transparent; }
#render-target{
width:1080px; height:2400px;
position:relative; overflow:hidden;
background:#fff;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color:var(--text);
}
/* Status bar */
.status-bar{
height:84px;
background:var(--purple-dark);
color:#fff;
display:flex; align-items:center; justify-content:space-between;
padding:0 36px;
font-weight:600; font-size:34px;
}
.status-icons{ display:flex; align-items:center; gap:18px; opacity:0.9; font-size:32px; }
/* Header */
.header{
height:140px;
background:var(--purple);
color:#fff;
display:flex; align-items:center;
position:relative;
padding:0 28px;
}
.back-btn{
width:72px; height:72px; display:flex; align-items:center; justify-content:center;
border-radius:18px;
cursor:default;
}
.back-btn svg{ width:40px; height:40px; fill:#fff; }
.header-title{
position:absolute; left:0; right:0; text-align:center;
font-weight:700; font-size:46px;
letter-spacing:0.2px;
}
.add-more{
position:absolute; right:28px;
background:#6E2AAC; color:#fff;
padding:26px 34px; border-radius:26px;
font-weight:700; font-size:34px;
}
/* Scroll content area */
.content{
position:absolute; left:0; right:0; top:224px; bottom:320px;
overflow-y:auto;
background:#fff;
}
/* Cards & rows */
.card{
margin:22px 28px;
background:#fff; border:1px solid var(--border);
border-radius:22px; padding:26px;
box-shadow:0 1px 0 rgba(0,0,0,0.02);
}
.soft-card{
margin:22px 28px;
background:#fff; border:1px solid var(--border);
border-radius:26px; padding:26px 30px;
}
/* Percent icon chip */
.chip-icon{
width:72px; height:72px; border-radius:14px;
background:#E9F8EF; color:#2D9F65; display:flex; align-items:center; justify-content:center;
border:1px solid #D7EFE2; font-weight:800; font-size:34px;
margin-right:22px;
}
.row{ display:flex; align-items:center; }
.grow{ flex:1; }
.subtext{ color:var(--muted); font-size:30px; }
.bold{ font-weight:700; }
.free-delivery strong{ color:var(--purple); }
.progress-mini{
display:flex; align-items:center; gap:16px;
}
.pill{
background:#EFE7F7; color:#5A2A8C; padding:10px 18px; border-radius:999px; font-size:28px; font-weight:700;
}
.dots{ display:flex; gap:8px; }
.dot{ width:12px; height:12px; border-radius:50%; background:#C8B7E2; }
.dot.active{ background:#6E47A8; }
/* Item row */
.item-row{ display:flex; align-items:center; gap:22px; }
.img-ph{
width:140px; height:94px; background:#E0E0E0;
border:1px solid #BDBDBD; border-radius:12px;
display:flex; align-items:center; justify-content:center;
color:#757575; font-size:26px; text-align:center; padding:6px;
}
.item-info{ flex:1; }
.item-title{ font-weight:800; font-size:36px; line-height:44px; color:#2c2c2c; }
.item-sub{ font-size:28px; color:var(--muted); margin-top:6px; }
.price-box{ text-align:right; min-width:160px; }
.price-now{ font-weight:800; font-size:40px; }
.price-old{ font-size:30px; color:#999; text-decoration:line-through; margin-top:6px; }
.qty-control{
background:var(--pink); color:#fff; border-radius:28px;
display:flex; align-items:center; gap:32px;
padding:10px 20px; height:76px; min-width:220px; justify-content:center;
}
.qty-btn{ width:48px; height:48px; border-radius:12px; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; }
.qty-btn svg{ width:28px; height:28px; fill:#fff; }
.qty-value{ font-weight:800; font-size:40px; }
/* Unlock offer */
.section-title{
display:flex; align-items:center; gap:18px; font-weight:800; font-size:40px; margin:24px 28px 8px;
}
.gear{
width:66px; height:66px; border-radius:14px; background:#EFE7F7; border:1px solid #D9CDEE;
display:flex; align-items:center; justify-content:center;
}
.gear svg{ width:36px; height:36px; fill:#6E47A8; }
.offer-box{ margin:0 28px; border:1px solid var(--border); border-radius:24px; padding:26px; }
.offer-msg{ font-size:34px; line-height:44px; }
.offer-msg strong{ font-weight:800; }
.lock-icon{
width:40px; height:40px; margin-right:12px; display:inline-flex; vertical-align:middle;
}
.progress-line{ height:16px; background:#EFE7F7; border-radius:999px; margin:24px 0; overflow:hidden; }
.progress-line .bar{ width:78%; height:100%; background:#6E47A8; }
.potato-row{ display:flex; align-items:center; gap:26px; }
.kg-info{
font-size:28px; color:var(--muted);
display:flex; align-items:center; gap:10px;
}
.info-dot{
width:28px; height:28px; border-radius:50%; background:#F6F2FA; border:1px solid #E0D7EF; color:#6E47A8;
display:flex; align-items:center; justify-content:center; font-weight:800; font-size:24px;
}
.add-btn{
margin-left:auto; background:#F2F2F4; color:#6B6B70; border-radius:22px; padding:22px 40px; font-weight:800; font-size:34px;
}
.potato-price{
margin-left:20px; text-align:right; min-width:120px;
}
.potato-price .now{ font-weight:800; font-size:36px; }
.potato-price .old{ color:#FF3D74; text-decoration:line-through; font-size:32px; }
/* Coupons row */
.coupons{
margin:22px 28px; padding:28px; border:1px solid var(--border); border-radius:22px;
display:flex; align-items:center; justify-content:space-between;
}
.coupons-left{ display:flex; align-items:center; gap:18px; font-weight:800; font-size:40px; }
.green-chip{
width:72px; height:72px; border-radius:14px; background:#E9F8EF; border:1px solid #D7EFE2; color:#2D9F65; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:34px;
}
.arrow-right{
width:42px; height:42px;
}
.arrow-right svg{ width:100%; height:100%; fill:#FF3D74; }
/* Recommendations */
.section-heading{ font-weight:800; font-size:42px; margin:26px 28px; }
.cards{ display:flex; gap:22px; margin:0 28px 22px; }
.prod-card{
width:324px; border:1px solid var(--border); border-radius:22px; background:#fff; overflow:hidden;
}
.prod-img{ width:100%; height:240px; }
.prod-body{ padding:22px; }
.prod-title{ font-weight:800; font-size:34px; line-height:42px; }
.off-badge{
position:absolute; top:16px; left:16px; background:#6E47A8; color:#fff; font-weight:800; font-size:28px; padding:10px 16px; border-radius:16px;
}
.card-top{ position:relative; }
/* Bottom address bar */
.bottom-area{
position:absolute; left:0; right:0; bottom:0;
background:#fff; box-shadow:0 -4px 24px rgba(0,0,0,0.06);
padding:24px 28px 36px;
}
.address-strip{
height:120px; border:1px solid var(--border); border-radius:28px; display:flex; align-items:center; gap:24px; padding:0 28px; margin-bottom:24px;
background:#fff;
}
.loc-dot{
width:54px; height:54px; border-radius:50%; background:#FF5B6E; display:flex; align-items:center; justify-content:center;
}
.loc-dot svg{ width:30px; height:30px; fill:#fff; }
.addr-text{ font-size:38px; color:#2c2c2c; }
.cta{
width:100%; background:var(--pink); color:#fff; border-radius:32px; padding:34px; text-align:center; font-weight:800; font-size:40px;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div>8:52</div>
<div class="status-icons">
<span></span>
<span>📶</span>
<span>🔋</span>
</div>
</div>
<!-- Header -->
<div class="header">
<div class="back-btn" aria-label="Back">
<svg viewBox="0 0 24 24"><path d="M15.6 3.5L5 12l10.6 8.5c.6.5 1.4.4 1.9-.2.5-.6.4-1.4-.2-1.9L9 12l8.3-6.4c.6-.5.7-1.3.2-1.9-.5-.6-1.3-.7-1.9-.2z"/></svg>
</div>
<div class="header-title">Cart (1)</div>
<div class="add-more">Add More</div>
</div>
<!-- Scrollable content -->
<div class="content">
<!-- Free delivery card -->
<div class="card">
<div class="row">
<div class="chip-icon">%</div>
<div class="grow">
<div class="free-delivery" style="font-size:36px;">
Add items worth ₹10 to get <strong>Free Delivery</strong>
</div>
</div>
<div class="progress-mini">
<div class="pill">1/6</div>
<div class="dots">
<div class="dot active"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
</div>
</div>
</div>
<!-- Item row -->
<div class="soft-card">
<div class="item-row">
<div class="img-ph">[IMG: Avocado]</div>
<div class="item-info">
<div class="item-title">Westfalia Avocado<br>Imported Semi Ripe</div>
<div class="item-sub">1 piece</div>
</div>
<div class="qty-control">
<div class="qty-btn">
<svg viewBox="0 0 24 24"><path d="M5 12c0-.6.4-1 1-1h12c.6 0 1 .4 1 1s-.4 1-1 1H6c-.6 0-1-.4-1-1z"/></svg>
</div>
<div class="qty-value">1</div>
<div class="qty-btn">
<svg viewBox="0 0 24 24"><path d="M12 5c.6 0 1 .4 1 1v6h6c.6 0 1 .4 1 1s-.4 1-1 1h-6v6c0 .6-.4 1-1 1s-1-.4-1-1v-6H5c-.6 0-1-.4-1-1s.4-1 1-1h6V6c0-.6.4-1 1-1z"/></svg>
</div>
</div>
<div class="price-box">
<div class="price-now">₹89</div>
<div class="price-old">₹111</div>
</div>
</div>
</div>
<!-- Unlock new offer -->
<div class="section-title">
<div class="gear">
<svg viewBox="0 0 24 24"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9 4l-2.3.9c-.2.7-.5 1.4-.9 2l1.3 2.1-2.1 2.1-2.1-1.3c-.6.4-1.3.7-2 .9L12 21l-1-.3c-.7-.2-1.4-.5-2-.9l-2.1 1.3-2.1-2.1 1.3-2.1c-.4-.6-.7-1.3-.9-2L3 12l.3-1c.2-.7.5-1.4.9-2L2.9 6.9 5 4.8l2.1 1.3c.6-.4 1.3-.7 2-.9L12 3l1 .3c.7.2 1.4.5 2 .9l2.1-1.3 2.1 2.1-1.3 2.1c.4.6.7 1.3.9 2L21 12z"/></svg>
</div>
Unlock new offer
</div>
<div class="offer-box">
<div class="offer-msg">
<span class="lock-icon">
<svg viewBox="0 0 24 24"><path d="M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 8V7a3 3 0 016 0v3H9z"/></svg>
</span>
Buy Fruits and Vegetables worth ₹10 to get <strong>Potato</strong> at special price.
</div>
<div class="progress-line"><div class="bar"></div></div>
<div class="potato-row">
<div class="img-ph" style="width:120px; height:90px;">[IMG: Potato]</div>
<div>
<div style="font-weight:800; font-size:36px;">Potato</div>
<div class="kg-info">1 Kg <span class="info-dot">i</span></div>
</div>
<div class="add-btn">Add</div>
<div class="potato-price">
<div class="now">₹9</div>
<div class="old">₹35</div>
</div>
</div>
</div>
<!-- Coupons row -->
<div class="coupons">
<div class="coupons-left">
<div class="green-chip">%</div>
Avail Offers / Coupons
</div>
<div class="arrow-right">
<svg viewBox="0 0 24 24"><path d="M8 4l8 8-8 8c-.6.6-1.6.6-2.2 0-.6-.6-.6-1.6 0-2.2L12.6 12 5.8 6.2c-.6-.6-.6-1.6 0-2.2.6-.6 1.6-.6 2.2 0z"/></svg>
</div>
</div>
<!-- Recommendations -->
<div class="section-heading">You Might Have Missed</div>
<div class="cards">
<div class="prod-card">
<div class="card-top">
<div class="off-badge">5% Off</div>
<div class="img-ph prod-img">[IMG: Tissue Roll Pack]</div>
</div>
<div class="prod-body">
<div class="prod-title">So Soft Tissue Roll<br>4 in1 340 Pulls</div>
</div>
</div>
<div class="prod-card">
<div class="card-top">
<div class="img-ph prod-img">[IMG: Amul Taaza Milk Pouch]</div>
</div>
<div class="prod-body">
<div class="prod-title">Amul Taaza Toned<br>Fresh Milk (Pouch)</div>
</div>
</div>
<div class="prod-card">
<div class="card-top">
<div class="off-badge">17% Off</div>
<div class="img-ph prod-img">[IMG: Cauliflower]</div>
</div>
<div class="prod-body">
<div class="prod-title">Cauliflower</div>
</div>
</div>
</div>
</div>
<!-- Bottom address area -->
<div class="bottom-area">
<div class="address-strip">
<div class="loc-dot">
<svg viewBox="0 0 24 24"><path d="M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z"/></svg>
</div>
<div class="addr-text">Enter your delivery address</div>
</div>
<div class="cta">Add Address To Proceed</div>
</div>
</div>
</body>
</html>