AndroidCode / code /10173 /10173_6.html
yhzheng1031's picture
Add files using upload-large-folder tool
67530d2 verified
raw
history blame
9.32 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Filters UI</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #111; }
#render-target {
width: 1080px;
height: 2400px;
position: relative;
overflow: hidden;
background: #ffffff;
}
/* Status bar */
.status-bar {
height: 120px;
background: #e6e6e6;
padding: 0 36px;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 600;
font-size: 40px;
color: #111;
letter-spacing: 0.5px;
}
.status-icons {
display: flex;
align-items: center;
gap: 26px;
}
.dot { width: 14px; height: 14px; background: #6b6b6b; border-radius: 50%; }
.icon-box { width: 38px; height: 24px; border: 3px solid #4b4b4b; border-radius: 4px; position: relative; }
.icon-box::after { content: ""; position: absolute; right: 4px; top: 4px; bottom: 4px; width: 16px; background: #4b4b4b; border-radius: 2px; }
/* Top app bar */
.appbar {
height: 140px;
display: flex;
align-items: center;
padding: 0 36px;
background: #fff;
border-bottom: 1px solid #ececec;
}
.appbar h1 {
margin: 0 0 0 22px;
font-size: 56px;
font-weight: 700;
}
.clear-link {
margin-left: auto;
color: #2a3cff;
font-size: 44px;
font-weight: 700;
text-decoration: none;
}
.back-btn {
width: 60px; height: 60px;
display: inline-flex; align-items: center; justify-content: center;
}
.back-btn svg { width: 56px; height: 56px; }
/* Layout below appbar */
.content {
position: absolute;
top: 260px; /* 120 + 140 */
bottom: 350px; /* apply bar + navbar combined reserved later */
left: 0; right: 0;
display: flex;
overflow: hidden;
}
.sidebar {
width: 320px;
background: #f1f2f6;
border-right: 1px solid #e6e6e9;
overflow-y: auto;
}
.side-item {
padding: 34px 30px;
font-size: 42px;
color: #1b1b1b;
border-bottom: 1px solid #ececf0;
display: flex;
align-items: center;
justify-content: space-between;
min-height: 120px;
}
.side-item.muted { color: #6b6b6b; }
.side-item.active { color: #4a45ff; font-weight: 700; background: #ffffff; }
.tick {
width: 34px; height: 34px; color: #6a58ff;
}
.options {
flex: 1;
overflow-y: auto;
padding: 8px 20px 40px 28px;
background: #fff;
}
.opt-row {
display: flex;
align-items: center;
gap: 26px;
padding: 34px 24px;
margin: 8px 8px;
border-bottom: 1px solid #f1f1f1;
}
.checkbox {
width: 54px; height: 54px;
border: 6px solid #2a2a2a;
border-radius: 8px;
box-sizing: border-box;
background: #fff;
}
.opt-label {
font-size: 46px;
color: #222;
letter-spacing: 0.3px;
}
/* Apply bar (above bottom nav) */
.apply-bar {
position: absolute;
left: 0; right: 0;
bottom: 170px; /* keep nav visible */
height: 180px;
background: #ffffff;
border-top: 1px solid #ececec;
display: flex;
align-items: center;
padding: 0 36px;
gap: 24px;
}
.found {
flex: 1;
}
.found .count {
font-size: 52px; font-weight: 800; color: #111;
}
.found .sub {
font-size: 34px; color: #6b6b6b; margin-top: 6px;
}
.apply-btn {
width: 500px; height: 118px; background: #5b4dff;
border-radius: 16px; color: #fff; font-size: 46px; font-weight: 700;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 6px 14px rgba(91,77,255,0.3);
}
/* Bottom navigation */
.navbar {
position: absolute;
left: 0; right: 0; bottom: 0;
height: 170px;
background: #fff;
border-top: 1px solid #e9e9e9;
display: flex;
align-items: center;
justify-content: space-around;
font-size: 32px;
color: #6b6b6b;
}
.nav-item {
width: 180px;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
position: relative;
gap: 10px;
}
.nav-item svg { width: 54px; height: 54px; }
.nav-item.active { color: #5b4dff; }
.active-indicator {
position: absolute; bottom: 0; height: 10px; width: 120px; background: #5b4dff; border-radius: 6px;
}
.badge {
position: absolute;
top: 8px; right: 46px;
width: 28px; height: 28px; background: #ff3b30; color: #fff; font-size: 22px;
display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div>11:28</div>
<div class="status-icons">
<div class="dot"></div>
<div class="dot"></div>
<div class="icon-box"></div>
</div>
</div>
<!-- App bar -->
<div class="appbar">
<div class="back-btn" aria-label="Back">
<svg viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 18l-6-6 6-6"></path>
</svg>
</div>
<h1>Filters</h1>
<a class="clear-link" href="#">Clear Filters</a>
</div>
<!-- Main content -->
<div class="content">
<!-- Sidebar -->
<div class="sidebar">
<div class="side-item">Price</div>
<div class="side-item">Brand</div>
<div class="side-item">Deliver At
<svg class="tick" viewBox="0 0 24 24" fill="none" stroke="#6a58ff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 6L9 17l-5-5"></path>
</svg>
</div>
<div class="side-item">Gender</div>
<div class="side-item">Discount</div>
<div class="side-item active">Size</div>
<div class="side-item">Sleeves</div>
<div class="side-item">Collar</div>
<div class="side-item">Fabric</div>
<div class="side-item">Pattern</div>
<div class="side-item">Occasion</div>
<div class="side-item">Color</div>
</div>
<!-- Options list -->
<div class="options">
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">3XS</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">2XS</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">XS</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">S</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">M</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">L</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">XL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">XXL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">3XL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">4XL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">5XL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">6XL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">7XL</div></div>
<div class="opt-row"><div class="checkbox"></div><div class="opt-label">Free</div></div>
</div>
</div>
<!-- Apply bar -->
<div class="apply-bar">
<div class="found">
<div class="count">200,777</div>
<div class="sub">products found</div>
</div>
<div class="apply-btn">Apply</div>
</div>
<!-- Bottom navigation -->
<div class="navbar">
<div class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 10l9-7 9 7v8a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4H9v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
</svg>
<div>Home</div>
</div>
<div class="nav-item active">
<svg viewBox="0 0 24 24" fill="none" stroke="#5b4dff" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M21 21l-4.3-4.3"></path>
</svg>
<div>Search</div>
<div class="active-indicator"></div>
</div>
<div class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7"></rect>
<rect x="14" y="3" width="7" height="7"></rect>
<rect x="3" y="14" width="7" height="7"></rect>
<rect x="14" y="14" width="7" height="7"></rect>
</svg>
<div>Categories</div>
<div class="badge"></div>
</div>
<div class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="8" r="4"></circle>
<path d="M4 21c0-4 4-7 8-7s8 3 8 7"></path>
</svg>
<div>Account</div>
</div>
<div class="nav-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 6h15l-1.5 9h-12z"></path>
<circle cx="9" cy="20" r="2"></circle>
<circle cx="18" cy="20" r="2"></circle>
</svg>
<div>Cart</div>
<div class="badge">1</div>
</div>
</div>
</div>
</body>
</html>