AndroidCode / code /10160 /10160_4.html
yhzheng1031's picture
Add files using upload-large-folder tool
ff1f000 verified
raw
history blame
10.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Compare Products - Mockup</title>
<meta name="viewport" content="width=1440, initial-scale=1.0">
<style>
body { margin: 0; padding: 0; background: transparent; font-family: Arial, Helvetica, sans-serif; color: #333; }
#render-target {
width: 1440px;
height: 3120px;
position: relative;
overflow: hidden;
background: #ffffff;
}
/* Top status bar (system) */
.status-bar {
height: 120px;
background: #dcdcdc;
padding: 0 40px;
display: flex;
align-items: center;
justify-content: space-between;
color: #707070;
font-size: 44px;
letter-spacing: 1px;
}
.status-icons {
display: flex; align-items: center; gap: 28px;
}
.dot { width: 14px; height: 14px; background: #9e9e9e; border-radius: 50%; display: inline-block; }
/* App header */
.app-bar {
height: 160px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 60px;
}
.icon-btn { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; cursor: default; }
.right-icons { display: flex; align-items: center; gap: 40px; }
/* Title row */
.title-row {
padding: 10px 60px 0 60px;
display: flex; align-items: center; gap: 24px;
}
.title {
font-size: 58px;
font-weight: 800;
letter-spacing: 1px;
color: #2e2e2e;
}
.rule {
height: 6px; background: #e7e7e7; flex: 1;
}
/* Compare grid (cards) */
.compare-grid {
margin: 40px 80px 0 80px;
padding: 0 20px;
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 120px;
}
.product-card .img {
width: 100%; height: 460px;
background: #E0E0E0; border: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center;
color: #757575; font-size: 36px;
}
.product-name {
margin-top: 24px;
font-size: 42px;
color: #404040;
}
.section-divider {
margin: 36px 0 0 0;
height: 2px; background: #e8eef2;
}
/* Comparison table rows */
.table {
margin: 0 80px;
border-top: 2px solid #e2e8ee;
}
.row {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 120px;
padding: 28px 40px;
align-items: center;
border-bottom: 2px solid #edf2f6;
}
.price-tag {
position: relative;
display: inline-block;
background: #ffe500;
color: #222;
font-weight: 800;
padding: 18px 30px;
font-size: 44px;
letter-spacing: .5px;
border-radius: 8px 0 0 8px;
}
.price-tag:after {
content: "";
position: absolute;
right: -36px; top: 0;
border-left: 36px solid #ffe500;
border-top: 72px solid transparent;
border-bottom: 72px solid transparent;
}
.rating {
display: flex; align-items: center; gap: 14px;
font-size: 40px;
}
.rating .text { color: #0b78d0; font-weight: 700; }
.spec {
font-size: 42px; color: #444;
}
/* Buttons */
.btn {
background: #ffe500;
color: #1d1d1d;
font-weight: 900;
border-radius: 16px;
padding: 30px 40px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 18px;
font-size: 42px;
box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
}
.btn-row .btn { width: 520px; }
.btn-row { padding: 24px 0; }
/* Customers also bought */
.section-title {
padding: 24px 60px;
font-size: 54px; font-weight: 800; color: #2e2e2e;
}
.also-grid {
margin: 0 60px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 36px;
}
.thumb {
height: 320px; background: #E0E0E0; border: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center; color: #757575; font-size: 34px;
}
/* Sticky bottom bar */
.sticky-cta {
position: absolute;
left: 40px; right: 40px;
bottom: 200px;
background: #ffffff;
border-radius: 28px;
box-shadow: 0 18px 40px rgba(0,0,0,0.15);
padding: 24px;
display: grid;
grid-template-columns: 180px 1fr;
align-items: center;
gap: 24px;
}
.fav-box {
height: 180px;
border: 4px solid #e2e8ee;
border-radius: 22px;
display: flex; align-items: center; justify-content: center;
}
.sticky-cta .big-btn {
height: 180px; font-size: 56px; border-radius: 22px;
}
/* Home indicator */
.home-indicator {
position: absolute;
bottom: 84px;
left: 50%; transform: translateX(-50%);
width: 380px; height: 16px;
background: #000; border-radius: 10px;
opacity: 0.85;
}
/* Utility */
.muted { color: #a9b3bf; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div>1:26</div>
<div class="status-icons">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</div>
<!-- App bar -->
<div class="app-bar">
<div class="icon-btn" title="Back">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#1f1f1f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</div>
<div class="right-icons">
<div class="icon-btn" title="Search">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#1f1f1f" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<line x1="20" y1="20" x2="16.5" y2="16.5"></line>
</svg>
</div>
<div class="icon-btn" title="Wishlist">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#1f1f1f" stroke-width="2">
<path d="M20.8 6.3a5.5 5.5 0 0 0-7.8 0L12 7.3l-1-1a5.5 5.5 0 1 0-7.8 7.8l8.8 8.6 8.8-8.6a5.5 5.5 0 0 0 0-7.8z"></path>
</svg>
</div>
<div class="icon-btn" title="Cart">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#1f1f1f" stroke-width="2">
<circle cx="9" cy="21" r="1.8"></circle>
<circle cx="18" cy="21" r="1.8"></circle>
<path d="M1 3h3l2.4 12.3a2 2 0 0 0 2 1.7h8.6a2 2 0 0 0 2-1.6L22 7H6"></path>
</svg>
</div>
</div>
</div>
<!-- Title -->
<div class="title-row">
<div class="title">COMPARE PRODUCTS</div>
<div class="rule"></div>
<div class="icon-btn" title="Collapse">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="#6b6b6b" stroke-width="2">
<polyline points="6 14 12 8 18 14"></polyline>
</svg>
</div>
</div>
<!-- Product preview cards -->
<div class="compare-grid">
<div class="product-card">
<div class="img">[IMG: Black Running Shoe]</div>
<div class="product-name">Jog Flow 100 - 8733469</div>
</div>
<div class="product-card">
<div class="img">[IMG: Navy Running Shoe]</div>
<div class="product-name">Run Active Men</div>
</div>
</div>
<div class="table">
<!-- Price row -->
<div class="row">
<div><span class="price-tag">₹1,799</span></div>
<div><span class="price-tag">₹2,299</span></div>
</div>
<!-- Ratings row -->
<div class="row">
<div class="rating">
<svg width="36" height="36" viewBox="0 0 24 24" fill="#ffc107">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
</svg>
<span class="text">4.5 (74)</span>
</div>
<div class="rating">
<svg width="36" height="36" viewBox="0 0 24 24" fill="#ffc107">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/>
</svg>
<span class="text">4.4 (15.6k)</span>
</div>
</div>
<!-- Spec rows -->
<div class="row">
<div class="spec">4/5</div>
<div class="spec">4/5</div>
</div>
<div class="row">
<div class="spec">5/5</div>
<div class="spec">4/5</div>
</div>
<div class="row">
<div class="spec">3/5</div>
<div class="spec">5/5</div>
</div>
<!-- Add to cart row for each column -->
<div class="row btn-row">
<div>
<button class="btn">
ADD TO CART
<svg width="42" height="42" viewBox="0 0 24 24" fill="none" stroke="#1b1b1b" stroke-width="2">
<circle cx="9" cy="21" r="1.6"></circle>
<circle cx="18" cy="21" r="1.6"></circle>
<path d="M1 3h3l2.4 12.3a2 2 0 0 0 2 1.7h8.6a2 2 0 0 0 2-1.6L22 7H6"></path>
</svg>
</button>
</div>
<div>
<button class="btn">
ADD TO CART
<svg width="42" height="42" viewBox="0 0 24 24" fill="none" stroke="#1b1b1b" stroke-width="2">
<circle cx="9" cy="21" r="1.6"></circle>
<circle cx="18" cy="21" r="1.6"></circle>
<path d="M1 3h3l2.4 12.3a2 2 0 0 0 2 1.7h8.6a2 2 0 0 0 2-1.6L22 7H6"></path>
</svg>
</button>
</div>
</div>
</div>
<!-- Customers also bought -->
<div class="section-title">CUSTOMERS ALSO BOUGHT</div>
<div class="also-grid">
<div class="thumb">[IMG: Product Suggestion 1]</div>
<div class="thumb">[IMG: Product Suggestion 2]</div>
</div>
<!-- Sticky bottom action -->
<div class="sticky-cta">
<div class="fav-box">
<svg width="88" height="88" viewBox="0 0 24 24" fill="none" stroke="#0b78d0" stroke-width="2">
<path d="M20.8 6.3a5.5 5.5 0 0 0-7.8 0L12 7.3l-1-1a5.5 5.5 0 1 0-7.8 7.8l8.8 8.6 8.8-8.6a5.5 5.5 0 0 0 0-7.8z"></path>
<path d="M12 6v8"></path>
<path d="M8 10h8"></path>
</svg>
</div>
<button class="btn big-btn">
ADD TO CART
<svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="#1b1b1b" stroke-width="2">
<circle cx="9" cy="21" r="1.8"></circle>
<circle cx="18" cy="21" r="1.8"></circle>
<path d="M1 3h3l2.4 12.3a2 2 0 0 0 2 1.7h8.6a2 2 0 0 0 2-1.6L22 7H6"></path>
</svg>
</button>
</div>
<!-- Home indicator -->
<div class="home-indicator"></div>
</div>
</body>
</html>