AndroidCode / code /10065 /10065_4.html
yhzheng1031's picture
Add files using upload-large-folder tool
fa881a6 verified
<html>
<head>
<meta charset="UTF-8">
<title>Mobile Search Suggestions UI</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
#render-target {
position: relative;
overflow: hidden;
width: 1080px;
height: 2400px;
background: linear-gradient(180deg, #AEE2DC 0%, #9DD7CA 60%, #8FD0C4 100%);
}
/* Status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 110px;
padding: 0 36px;
color: #1f1f1f;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 600;
font-size: 36px;
}
.status-left { display: flex; align-items: center; gap: 22px; }
.status-right { display: flex; align-items: center; gap: 26px; }
.status-icon {
width: 38px; height: 38px;
}
/* Search bar area */
.search-area {
position: absolute;
top: 110px;
left: 0;
width: 1080px;
height: 180px;
display: flex;
align-items: center;
padding: 0 28px;
gap: 26px;
}
.back-btn {
width: 90px; height: 90px; border-radius: 18px;
display: flex; align-items: center; justify-content: center;
}
.search-pill {
flex: 1;
height: 120px;
background: #ffffff;
border-radius: 26px;
box-shadow: 0 2px 0 rgba(0,0,0,0.06) inset;
display: flex; align-items: center;
padding: 0 28px;
gap: 22px;
}
.search-icon { width: 44px; height: 44px; }
.search-text {
font-size: 42px;
color: #222;
flex: 1;
white-space: nowrap;
}
.close-icon {
width: 44px; height: 44px;
}
/* Suggestion list */
.suggestions {
position: absolute;
top: 300px;
left: 0;
width: 1080px;
padding: 0 24px;
}
.suggestion-item {
height: 120px;
background: rgba(255,255,255,0.75);
border-bottom: 1px solid rgba(0,0,0,0.08);
display: flex;
align-items: center;
padding: 0 24px;
gap: 18px;
}
.suggestion-item:nth-child(odd) { background: rgba(255,255,255,0.82); }
.suggestion-text {
font-size: 44px;
color: #111;
flex: 1;
}
.go-icon { width: 40px; height: 40px; opacity: 0.7; }
/* Keyboard */
.keyboard {
position: absolute;
bottom: 0;
left: 0;
width: 1080px;
height: 860px;
background: #0F1617;
border-top-left-radius: 26px;
border-top-right-radius: 26px;
box-shadow: 0 -6px 16px rgba(0,0,0,0.25);
padding: 30px 32px 40px;
color: #DDE6E5;
}
.kb-suggestions {
display: flex; align-items: center; gap: 28px;
font-size: 38px; color: #C8D1CF;
margin-bottom: 28px;
}
.kb-chip {
padding: 10px 22px;
background: #141D1E;
border: 1px solid #263032;
border-radius: 22px;
}
.kb-row { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.key {
flex: 1;
height: 120px;
max-width: 92px;
background: #1C2426;
border: 1px solid #2B3537;
border-radius: 18px;
display: flex; align-items: center; justify-content: center;
font-size: 46px;
color: #DDE6E5;
}
.key.wide { max-width: 140px; }
.key.space { flex: 1; max-width: none; }
.kb-bottom {
display: flex; align-items: center; justify-content: space-between; margin-top: 24px;
}
.microphone {
width: 100px; height: 100px; border-radius: 28px;
background: #1C2426; border: 1px solid #2B3537;
display: flex; align-items: center; justify-content: center;
}
.enter-btn {
width: 140px; height: 140px; border-radius: 70px;
background: #7AF28E;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 6px 0 rgba(0,0,0,0.2) inset;
}
.enter-icon { width: 72px; height: 72px; }
.bottom-pill {
position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
width: 300px; height: 12px; background: #D6D6D6; border-radius: 6px; opacity: 0.6;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div class="status-left">
<span>5:44</span>
<span class="status-icon">
<!-- small clock dot or indicator -->
<svg viewBox="0 0 24 24" class="status-icon">
<circle cx="12" cy="12" r="10" fill="#3a3a3a" opacity="0.15"></circle>
<line x1="12" y1="12" x2="12" y2="7" stroke="#2e2e2e" stroke-width="2"></line>
<line x1="12" y1="12" x2="16" y2="12" stroke="#2e2e2e" stroke-width="2"></line>
</svg>
</span>
<span>42°</span>
</div>
<div class="status-right">
<!-- bell icon -->
<svg viewBox="0 0 24 24" class="status-icon">
<path d="M12 2c-3 0-5 2-5 5v4l-2 3v2h14v-2l-2-3V7c0-3-2-5-5-5z" fill="#2d2d2d"></path>
<circle cx="12" cy="20" r="2" fill="#2d2d2d"></circle>
</svg>
<!-- dot -->
<svg viewBox="0 0 24 24" class="status-icon">
<circle cx="12" cy="12" r="4" fill="#2d2d2d"></circle>
</svg>
<!-- wifi -->
<svg viewBox="0 0 24 24" class="status-icon">
<path d="M2 8c5-5 15-5 20 0" stroke="#2d2d2d" stroke-width="2" fill="none"></path>
<path d="M5 12c4-4 10-4 14 0" stroke="#2d2d2d" stroke-width="2" fill="none"></path>
<circle cx="12" cy="17" r="2" fill="#2d2d2d"></circle>
</svg>
<!-- battery -->
<svg viewBox="0 0 32 24" class="status-icon">
<rect x="2" y="6" width="24" height="12" rx="3" fill="none" stroke="#2d2d2d" stroke-width="2"></rect>
<rect x="4" y="8" width="16" height="8" rx="2" fill="#2d2d2d"></rect>
<rect x="26" y="9" width="4" height="6" rx="2" fill="#2d2d2d"></rect>
</svg>
</div>
</div>
<!-- Search area -->
<div class="search-area">
<div class="back-btn">
<svg viewBox="0 0 24 24" width="56" height="56">
<path d="M15 4L7 12l8 8" stroke="#222" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="search-pill">
<svg class="search-icon" viewBox="0 0 24 24">
<circle cx="11" cy="11" r="7" stroke="#666" stroke-width="2" fill="none"></circle>
<line x1="16.5" y1="16.5" x2="22" y2="22" stroke="#666" stroke-width="2"></line>
</svg>
<div class="search-text">women formal shoes</div>
<svg class="close-icon" viewBox="0 0 24 24">
<path d="M5 5l14 14M19 5L5 19" stroke="#7C7C7C" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
</div>
<!-- Suggestions -->
<div class="suggestions">
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes black</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes with heels</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes metro</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes for office</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes bata</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes with lace</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes flat</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes without heels</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes for office wear</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="suggestion-item">
<div class="suggestion-text">women formal shoes leather</div>
<svg class="go-icon" viewBox="0 0 24 24">
<path d="M7 5l10 7-10 7" stroke="#444" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
</div>
<!-- Keyboard -->
<div class="keyboard">
<div class="kb-suggestions">
<div class="kb-chip">combo</div>
<div class="kb-chip">for</div>
<div class="kb-chip">👞</div>
<div class="kb-chip">👟</div>
<div style="margin-left:auto;" class="microphone">
<svg viewBox="0 0 24 24" width="44" height="44">
<rect x="9" y="5" width="6" height="10" rx="3" fill="#CDE3DB"></rect>
<path d="M5 11c0 4 3 7 7 7s7-3 7-7" stroke="#CDE3DB" stroke-width="2" fill="none"></path>
</svg>
</div>
</div>
<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-bottom">
<div class="key wide">?123</div>
<div class="key wide">,</div>
<div class="key wide">🙂</div>
<div class="key space" style="height: 120px; margin: 0 18px;"> </div>
<div class="key wide">.</div>
<div class="enter-btn">
<svg viewBox="0 0 24 24" class="enter-icon">
<path d="M4 12h12v-5l5 5-5 5v-5H4" fill="#0E5E1E"></path>
</svg>
</div>
</div>
<div class="bottom-pill"></div>
</div>
</div>
</body>
</html>