AndroidCode / code /10173 /10173_3.html
yhzheng1031's picture
Add files using upload-large-folder tool
67530d2 verified
raw
history blame
12.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Search Suggestions UI</title>
<style>
/* Reset and body requirements */
html, body { margin: 0; padding: 0; }
body { background: transparent; font-family: Arial, Helvetica, sans-serif; }
/* Root container */
#render-target {
width: 1080px;
height: 2400px;
position: relative;
overflow: hidden;
background: #ffffff; /* app surface */
color: #111;
}
/* Status bar */
.statusbar {
height: 90px;
background: #EDEDED;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 28px;
font-size: 30px;
color: #222;
box-sizing: border-box;
}
.status-left { font-weight: 600; }
.status-right { display: flex; align-items: center; gap: 22px; }
.icon-small svg { width: 38px; height: 38px; fill: #444; }
/* Search header */
.searchbar {
height: 120px;
display: flex;
align-items: center;
padding: 0 24px;
box-sizing: border-box;
border-bottom: 1px solid #e8e8e8;
gap: 24px;
}
.searchbar .icon {
width: 48px;
height: 48px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.query {
flex: 1;
font-size: 44px;
color: #222;
display: flex;
align-items: center;
}
.query .caret {
color: #2962FF;
margin-left: 4px;
}
/* Suggestions list */
.suggestions {
overflow: hidden;
height: auto;
padding-bottom: 840px; /* space for keyboard overlay */
}
.row {
display: flex;
align-items: center;
padding: 28px 24px;
gap: 24px;
border-bottom: 1px solid #eeeeee;
}
.row .thumb {
width: 110px;
height: 110px;
background: #E0E0E0;
border: 1px solid #BDBDBD;
display: flex;
align-items: center;
justify-content: center;
color: #757575;
font-size: 22px;
}
.row .lefticon {
width: 72px;
height: 72px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.8;
}
.row .content {
flex: 1;
min-width: 0;
}
.title {
font-size: 38px;
color: #222;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.title .bold { font-weight: 700; }
.subtitle {
margin-top: 6px;
font-size: 30px;
color: #5E35B1;
}
.endicon {
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.6;
}
.endicon svg { width: 38px; height: 38px; }
/* Keyboard mock */
.keyboard {
position: absolute;
left: 0;
bottom: 0;
width: 1080px;
height: 820px;
background: #121212;
border-top: 1px solid #2b2b2b;
box-sizing: border-box;
color: #EDEDED;
}
.kb-suggest {
height: 88px;
background: #1B1B1B;
display: flex;
align-items: center;
padding: 0 28px;
font-size: 32px;
gap: 18px;
color: #cfcfcf;
box-sizing: border-box;
}
.kb-suggest .divider { opacity: 0.4; }
.kb-rows {
padding: 16px 20px 0;
box-sizing: border-box;
}
.kb-row {
display: flex;
justify-content: center;
gap: 18px;
margin: 10px 0;
}
.key {
min-width: 86px;
height: 120px;
background: #262626;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
color: #EEEEEE;
box-shadow: inset 0 -2px 0 rgba(0,0,0,0.35);
}
.key.wide { min-width: 180px; }
.key.space { flex: 1; min-width: 0; }
.key.circle {
width: 110px;
min-width: 110px;
border-radius: 56px;
background: #96A6BD2a;
color: #DDE7F7;
}
.gesture-pill {
position: absolute;
width: 240px;
height: 10px;
border-radius: 8px;
background: #eaeaea;
left: 50%;
transform: translateX(-50%);
bottom: 18px;
opacity: 0.9;
}
/* Utility */
.muted { color: #666; }
/* Simple icon sizes */
.icon svg { width: 48px; height: 48px; }
.lefticon svg { width: 44px; height: 44px; stroke: #444; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="statusbar">
<div class="status-left">11:26</div>
<div class="status-right">
<span class="icon-small" title="Wi‑Fi">
<svg viewBox="0 0 24 24">
<path d="M12 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" />
<path d="M2 9c5-5 15-5 20 0" fill="none" stroke="#444" stroke-width="2" stroke-linecap="round"/>
<path d="M5 12c4-4 10-4 14 0" fill="none" stroke="#444" stroke-width="2" stroke-linecap="round"/>
<path d="M8 15c2-2 6-2 8 0" fill="none" stroke="#444" stroke-width="2" stroke-linecap="round"/>
</svg>
</span>
<span class="icon-small" title="Battery">
<svg viewBox="0 0 32 24">
<rect x="1" y="4" width="26" height="16" rx="3" ry="3" fill="#444"></rect>
<rect x="4" y="7" width="18" height="10" fill="#9ccc65"></rect>
<rect x="28" y="9" width="3" height="8" rx="1" fill="#444"></rect>
</svg>
</span>
</div>
</div>
<!-- Search bar -->
<div class="searchbar">
<div class="icon" title="Back">
<svg viewBox="0 0 24 24">
<path d="M15 18l-6-6 6-6" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="query">shirts for men <span class="caret">|</span></div>
<div class="icon" title="Clear">
<svg viewBox="0 0 24 24">
<path d="M6 6l12 12M18 6L6 18" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round"/>
</svg>
</div>
</div>
<!-- Suggestions -->
<div class="suggestions">
<!-- First row with avatar image -->
<div class="row">
<div class="thumb">[IMG]</div>
<div class="content">
<div class="title">shirts for men</div>
<div class="subtitle">in Casual Shirts</div>
</div>
</div>
<!-- Search suggestion rows -->
<div class="row">
<div class="lefticon" aria-label="search icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title">shirts for men wear</div>
</div>
<div class="endicon" aria-label="go">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title">shirts for men <span class="bold">full sleeve</span></div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title">t shirts for men</div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title"><span class="bold">formal</span> shirts for men</div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title"><span class="bold">sweatshirt</span> for men</div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title">shirts for men <span class="bold">half sleeve</span></div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title"><span class="bold">woolen</span> shirts for men</div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
<div class="row">
<div class="lefticon">
<svg viewBox="0 0 24 24" fill="none" stroke="#666" stroke-width="2">
<circle cx="11" cy="11" r="7"></circle>
<path d="M20 20l-4-4"></path>
</svg>
</div>
<div class="content">
<div class="title">shirts for men <span class="bold">combo</span></div>
</div>
<div class="endicon">
<svg viewBox="0 0 24 24" fill="none" stroke="#444" stroke-width="2">
<path d="M7 17l10-10"></path>
<path d="M7 7h10v10"></path>
</svg>
</div>
</div>
</div>
<!-- Keyboard mock -->
<div class="keyboard" aria-label="virtual keyboard">
<div class="kb-suggest">
<span>men</span>
<span class="divider">|</span>
<span>mens</span>
<span class="divider">|</span>
<span>men's</span>
<span style="margin-left:auto; opacity:.5;">🎤</span>
</div>
<div class="kb-rows">
<div class="kb-row">
<div class="key">q</div>
<div class="key">w</div>
<div class="key">e</div>
<div class="key">r</div>
<div class="key">t</div>
<div class="key">y</div>
<div class="key">u</div>
<div class="key">i</div>
<div class="key">o</div>
<div class="key">p</div>
</div>
<div class="kb-row">
<div class="key">a</div>
<div class="key">s</div>
<div class="key">d</div>
<div class="key">f</div>
<div class="key">g</div>
<div class="key">h</div>
<div class="key">j</div>
<div class="key">k</div>
<div class="key">l</div>
</div>
<div class="kb-row">
<div class="key wide"></div>
<div class="key">z</div>
<div class="key">x</div>
<div class="key">c</div>
<div class="key">v</div>
<div class="key">b</div>
<div class="key">n</div>
<div class="key">m</div>
<div class="key wide"></div>
</div>
<div class="kb-row">
<div class="key circle">?123</div>
<div class="key circle">😊</div>
<div class="key">,</div>
<div class="key space"></div>
<div class="key">.</div>
<div class="key circle"></div>
</div>
</div>
<div class="gesture-pill"></div>
</div>
</div>
</body>
</html>