AndroidCode / code /1018 /1018_3.html
yhzheng1031's picture
Add files using upload-large-folder tool
5501681 verified
raw
history blame
9.15 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Product Details UI</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: Arial, Helvetica, sans-serif; }
#render-target {
width: 1080px;
height: 2400px;
position: relative;
overflow: hidden;
background: #ffffff;
color: #212121;
}
/* Status bar */
.status-bar {
height: 90px;
padding: 0 32px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 32px;
color: #424242;
}
.status-icons { display: flex; gap: 20px; align-items: center; }
.dot { width: 10px; height: 10px; background: #616161; border-radius: 50%; display: inline-block; }
/* Header with search */
.header {
height: 120px;
padding: 0 24px;
display: flex;
align-items: center;
gap: 20px;
}
.icon-btn {
width: 72px;
height: 72px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 36px;
}
.search-bar {
flex: 1;
background: #F2F3F5;
border: 1px solid #E0E0E0;
height: 80px;
border-radius: 18px;
display: flex;
align-items: center;
padding: 0 24px;
gap: 16px;
color: #9E9E9E;
font-size: 32px;
}
.search-placeholder { flex: 1; }
.header-right { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
/* Content scroll area */
.content {
position: absolute;
top: 210px; /* status + header */
bottom: 180px; /* bottom actions */
left: 0;
right: 0;
overflow-y: auto;
padding: 0 32px 24px;
}
.helper-text {
margin: 16px 8px;
color: #757575;
font-size: 30px;
}
.divider { height: 12px; background: #F3F1FA; margin: 8px -32px 24px; }
.section-title {
font-size: 44px;
font-weight: 700;
margin: 16px 0 24px;
}
.detail-row {
display: grid;
grid-template-columns: 1fr 1fr;
padding: 18px 8px;
font-size: 36px;
}
.detail-label { color: #9E9E9E; }
.detail-value { color: #212121; font-weight: 600; text-align: right; }
.sub-title { font-size: 40px; font-weight: 700; margin: 24px 8px 12px; }
.paragraph {
font-size: 34px;
line-height: 1.6;
color: #424242;
margin: 0 8px 24px;
}
.link { color: #1976D2; font-weight: 700; }
.list-row {
border-top: 1px solid #EEEEEE;
border-bottom: 1px solid #EEEEEE;
padding: 26px 8px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 40px;
font-weight: 700;
margin-bottom: 18px;
}
/* Similar products */
.sim-header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 24px 8px;
}
.sim-title { font-size: 44px; font-weight: 700; }
.cards {
display: flex;
gap: 24px;
padding: 0 0 40px 8px;
}
.card {
width: 320px;
border: 1px solid #E0E0E0;
border-radius: 16px;
background: #fff;
overflow: hidden;
}
.img-ph {
width: 100%;
height: 260px;
background: #E0E0E0;
border-bottom: 1px solid #BDBDBD;
display: flex;
justify-content: center;
align-items: center;
color: #757575;
font-size: 28px;
text-align: center;
}
.card-body {
padding: 16px;
}
.brand { font-size: 30px; font-weight: 700; color: #424242; }
.title { font-size: 30px; color: #616161; margin-top: 6px; }
.price-row { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; }
.strike { color: #9E9E9E; text-decoration: line-through; font-size: 28px; }
.price { color: #1A1A1A; font-size: 32px; font-weight: 700; }
/* Bottom action bar */
.bottom-bar {
position: absolute;
left: 0; right: 0; bottom: 56px;
height: 120px;
display: grid;
grid-template-columns: 180px 1fr 1fr;
gap: 24px;
padding: 0 24px;
}
.btn {
border-radius: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
font-weight: 700;
}
.btn-cart { background: #F7F7F7; border: 1px solid #E0E0E0; color: #212121; gap: 12px; }
.btn-emi { background: #FFFFFF; border: 1px solid #E0E0E0; color: #212121; }
.btn-buy { background: #FFC107; border: 1px solid #E0E0E0; color: #212121; }
.home-indicator {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 16px;
width: 300px;
height: 8px;
background: #000000;
opacity: 0.2;
border-radius: 4px;
}
/* Simple SVG styling */
svg { width: 40px; height: 40px; fill: none; stroke: #212121; stroke-width: 4; }
.chev { width: 40px; height: 40px; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div>11:30</div>
<div class="status-icons">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<svg viewBox="0 0 24 24"><path d="M2 18l10-12 10 12H2Z" /></svg>
<svg viewBox="0 0 24 24"><rect x="3" y="6" width="18" height="12" rx="2"></rect><rect x="20" y="9" width="2" height="6"></rect></svg>
</div>
</div>
<!-- Header with back, search, cart -->
<div class="header">
<div class="icon-btn">
<svg viewBox="0 0 24 24"><path d="M15 6 9 12l6 6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="search-bar">
<span class="search-placeholder">Search for products</span>
<svg viewBox="0 0 24 24"><path d="M12 4v8M8 8h8" stroke="#9E9E9E"/><rect x="9" y="3" width="6" height="12" rx="3" stroke="#9E9E9E"></rect><path d="M12 15v2" stroke="#9E9E9E"></path></svg>
</div>
<div class="header-right">
<svg viewBox="0 0 24 24"><path d="M3 6h18l-2 12H5L3 6Z" stroke-linecap="round" stroke-linejoin="round"/><circle cx="9" cy="20" r="2"/><circle cx="17" cy="20" r="2"/></svg>
</div>
</div>
<!-- Scrollable content -->
<div class="content">
<div class="helper-text">8+ years on Flipkart</div>
<div class="helper-text" style="margin-top:-6px;">Trusted brand on Flipkart</div>
<div class="divider"></div>
<div class="section-title">Product Details</div>
<div class="detail-row">
<div class="detail-label">Outer material</div>
<div class="detail-value">PU</div>
</div>
<div class="detail-row">
<div class="detail-label">Occasion</div>
<div class="detail-value">Sports</div>
</div>
<div class="detail-row">
<div class="detail-label">Type For Sports</div>
<div class="detail-value">Running Shoes</div>
</div>
<div class="sub-title">Details</div>
<div class="paragraph">
When the road beckons, answer the call in a lightweight pair that’ll keep you moving mile after mile. Soft foam cushions your stride and a reinforced heel delivers a smooth, stable ride. Crafted from … <span class="link">more</span>
</div>
<div class="list-row">
<span>All Details</span>
<svg class="chev" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="sim-header">
<div class="sim-title">Similar Products</div>
<svg class="chev" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<div class="cards">
<!-- Card 1 -->
<div class="card">
<div class="img-ph">[IMG: Black Running Shoes]</div>
<div class="card-body">
<div class="brand">NIKE</div>
<div class="title">Revolution 5 Running...</div>
<div class="price-row">
<span class="strike">₹3,695</span>
<span class="price">₹2,586</span>
</div>
</div>
</div>
<!-- Card 2 -->
<div class="card">
<div class="img-ph">[IMG: Navy ADIDAS Running Shoes]</div>
<div class="card-body">
<div class="title" style="color:#9E9E9E;">Sponsored</div>
<div class="brand">ADIDAS</div>
<div class="title">ADI-PACE M Running...</div>
<div class="price-row">
<span class="strike">₹5,999</span>
<span class="price">₹5,199</span>
</div>
</div>
</div>
<!-- Card 3 -->
<div class="card">
<div class="img-ph">[IMG: Light Grey Running Shoes]</div>
<div class="card-body">
<div class="brand">Mast & Harbour</div>
<div class="title">Running Shoes</div>
<div class="price-row">
<span class="strike">₹3,999</span>
<span class="price">₹2,889</span>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom action bar -->
<div class="bottom-bar">
<div class="btn btn-cart">
<svg viewBox="0 0 24 24"><path d="M3 6h18l-2 12H5L3 6Z" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 9v6M9 12h6"/></svg>
</div>
<div class="btn btn-emi">Pay with EMI</div>
<div class="btn btn-buy">Buy now</div>
</div>
<div class="home-indicator"></div>
</div>
</body>
</html>