AndroidCode / code /10131 /10131_2.html
yhzheng1031's picture
Add files using upload-large-folder tool
c32f9a6 verified
raw
history blame
6.47 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Filters 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;
}
/* Header */
.header {
position: absolute;
top: 96px; /* leave a little space as if status bar */
left: 0;
right: 0;
height: 140px;
display: flex;
align-items: center;
padding: 0 36px;
}
.header .title {
font-size: 48px;
color: #222;
margin-left: 18px;
}
.header .right-action {
margin-left: auto;
font-size: 40px;
color: #111;
}
/* Main layout */
.main {
position: absolute;
top: 236px; /* below header */
left: 0;
right: 0;
bottom: 280px; /* leave room for footer */
display: flex;
}
.left-panel {
width: 330px;
background: #ECEFF3;
padding-top: 24px;
overflow: hidden;
border-right: 1px solid #e0e0e0;
}
.left-item {
padding: 26px 28px;
font-size: 34px;
color: #222;
height: 120px;
display: flex;
align-items: center;
position: relative;
}
.left-item.blue { color: #2962FF; }
.left-item .tick {
position: absolute;
right: 20px;
width: 34px; height: 34px;
}
.content {
flex: 1;
padding: 30px 36px;
}
/* Search bar */
.search-bar {
height: 110px;
border: 1px solid #DADCE0;
border-radius: 10px;
display: flex;
align-items: center;
padding: 0 24px;
color: #8a8a8a;
font-size: 36px;
margin-bottom: 20px;
}
.brand-list {
margin-top: 20px;
}
.brand-item {
display: flex;
align-items: center;
height: 110px;
font-size: 36px;
color: #222;
}
.checkbox {
width: 54px;
height: 54px;
border: 3px solid #222;
border-radius: 8px;
margin-right: 24px;
box-sizing: border-box;
}
.view-more {
margin-top: 8px;
font-size: 38px;
color: #2962FF;
font-weight: 600;
}
/* Footer */
.footer {
position: absolute;
left: 0; right: 0; bottom: 160px;
height: 200px;
display: flex;
align-items: center;
padding: 0 40px;
}
.products-count {
color: #000;
font-size: 42px;
font-weight: 700;
}
.products-count small {
display: block;
font-size: 28px;
color: #8a8a8a;
font-weight: 600;
margin-top: 6px;
}
.apply-btn {
margin-left: auto;
width: 480px;
height: 120px;
background: #FF6A00;
color: #fff;
font-size: 44px;
border-radius: 14px;
display: flex;
justify-content: center;
align-items: center;
font-weight: 700;
}
/* System bar (gesture area) */
.system-bar {
position: absolute;
left: 0; right: 0; bottom: 0;
height: 160px;
background: #000;
}
.gesture-handle {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 52px;
width: 260px;
height: 14px;
background: #e6e6e6;
border-radius: 7px;
opacity: 0.9;
}
/* SVG icons sizing helpers */
.icon { width: 46px; height: 46px; }
.search-icon { width: 46px; height: 46px; margin-right: 16px; }
</style>
</head>
<body>
<div id="render-target">
<!-- Header with back arrow and Clear Filters -->
<div class="header">
<svg class="icon" viewBox="0 0 24 24">
<path d="M15.5 19.5L7 12l8.5-7.5" fill="none" stroke="#000" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<div class="title">Filters</div>
<div class="right-action">Clear Filters</div>
</div>
<!-- Main split area -->
<div class="main">
<!-- Left categories panel -->
<div class="left-panel">
<div class="left-item">Price</div>
<div class="left-item">Plus (FAssured)</div>
<div class="left-item">
Deliver At
<svg class="tick" viewBox="0 0 24 24">
<path d="M4 12.5l5 5 11-11" fill="none" stroke="#2F7CF6" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="left-item blue">Brand</div>
<div class="left-item">Customer Ratings</div>
<div class="left-item">Offers</div>
<div class="left-item">Discount</div>
<div class="left-item">Material</div>
<div class="left-item">Type</div>
<div class="left-item">GST Invoice Available</div>
<div class="left-item">Color</div>
<div class="left-item">Availability</div>
<div class="left-item">Category</div>
</div>
<!-- Right content -->
<div class="content">
<div class="search-bar">
<svg class="search-icon" viewBox="0 0 24 24">
<circle cx="11" cy="11" r="7" stroke="#9e9e9e" stroke-width="2" fill="none"/>
<path d="M20 20l-4.5-4.5" stroke="#9e9e9e" stroke-width="2" stroke-linecap="round"/>
</svg>
Search Brand
</div>
<div class="brand-list">
<div class="brand-item">
<div class="checkbox"></div>
AB WORLD CLASS
</div>
<div class="brand-item">
<div class="checkbox"></div>
ABR
</div>
<div class="brand-item">
<div class="checkbox"></div>
AKS
</div>
<div class="brand-item">
<div class="checkbox"></div>
ATLANTIC
</div>
<div class="brand-item">
<div class="checkbox"></div>
BESTLINING
</div>
<div class="brand-item">
<div class="checkbox"></div>
Brassley
</div>
<div class="brand-item">
<div class="checkbox"></div>
chakachak
</div>
<div class="brand-item">
<div class="checkbox"></div>
Circle
</div>
<div class="brand-item">
<div class="checkbox"></div>
Crust
</div>
<div class="brand-item">
<div class="checkbox"></div>
DSNS
</div>
<div class="view-more">View More</div>
</div>
</div>
</div>
<!-- Footer with product count and Apply button -->
<div class="footer">
<div class="products-count">
338
<small>products found</small>
</div>
<div class="apply-btn">Apply</div>
</div>
<!-- System gesture bar -->
<div class="system-bar">
<div class="gesture-handle"></div>
</div>
</div>
</body>
</html>