AndroidCode / code /10044 /10044_4.html
yhzheng1031's picture
Add files using upload-large-folder tool
fa881a6 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mobile UI Mock</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: "Roboto", Arial, sans-serif; }
#render-target {
width: 1080px; height: 2400px;
position: relative; overflow: hidden;
background: #f7f7f7;
}
/* Status bar */
.status-bar {
position: absolute; top: 0; left: 0; right: 0;
height: 110px; background: #138A3C; color: #fff;
display: flex; align-items: center; padding: 0 34px;
box-sizing: border-box;
}
.status-left { font-size: 40px; font-weight: 500; }
.status-right { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.status-icon { width: 36px; height: 36px; opacity: 0.9; }
/* App bar with search */
.app-bar {
position: absolute; top: 110px; left: 0; right: 0;
height: 170px; background: #138A3C; display: flex; align-items: center;
padding: 0 28px; box-sizing: border-box;
}
.back-btn { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; margin-right: 18px; }
.search-wrap {
flex: 1; height: 110px; background: #ffffff; border-radius: 20px;
display: flex; align-items: center; padding: 0 22px; box-sizing: border-box;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.search-icon { width: 50px; height: 50px; margin-right: 18px; opacity: 0.6; }
.search-text {
flex: 1; font-size: 40px; color: #222; white-space: nowrap; overflow: hidden;
}
.search-text .highlight { color: #138A3C; }
.clear-btn {
width: 60px; height: 60px; border-radius: 50%; background: #D7F5E2;
display: flex; align-items: center; justify-content: center; margin-left: 12px;
}
.clear-btn svg { width: 34px; height: 34px; stroke: #138A3C; }
/* Suggestion overlay */
.content-area { position: absolute; top: 280px; left: 0; right: 0; bottom: 900px; }
.dim { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.suggestion-sheet {
position: absolute; top: 10px; left: 0; right: 0;
background: #fff; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
margin: 0 0; padding: 12px 0;
}
.suggestion-item {
display: flex; align-items: center; padding: 20px 34px; gap: 22px; cursor: default;
}
.suggestion-item .text { font-size: 38px; color: #333; flex: 1; }
.suggestion-item .arrow { width: 40px; height: 40px; opacity: 0.6; }
/* Trending section (dimmed behind) */
.trending {
position: absolute; top: 220px; left: 30px; right: 30px;
color: #333;
}
.trending-title { display: flex; align-items: center; gap: 16px; font-size: 40px; color: #333; }
.trend-list { display: flex; gap: 26px; margin-top: 30px; }
.trend-item { width: 170px; }
.img-ph {
width: 170px; height: 140px; background: #E0E0E0; border: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center; color: #757575; font-size: 26px; border-radius: 18px;
}
.trend-label { text-align: center; font-size: 32px; color: #333; margin-top: 16px; }
/* Keyboard */
.keyboard {
position: absolute; left: 0; right: 0; bottom: 0;
height: 900px; background: #0E0E0F; color: #fff; border-top-left-radius: 18px; border-top-right-radius: 18px;
}
.kb-suggestions {
height: 120px; background: #1b1b1c; display: flex; align-items: center; padding: 0 30px; box-sizing: border-box; gap: 26px;
font-size: 36px;
}
.kb-chip {
color: #d7d7d7; background: #2a2a2b; padding: 10px 24px; border-radius: 20px;
}
.kb-spacer { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.kb-mic svg { width: 40px; height: 40px; }
.kb-rows { padding: 24px 22px; box-sizing: border-box; }
.kb-row { display: grid; grid-gap: 14px; margin-bottom: 18px; }
.row1 { grid-template-columns: repeat(10, 1fr); }
.row2 { grid-template-columns: 0.9fr repeat(8, 1fr) 0.9fr; } /* a..l with small margins */
.row3 { grid-template-columns: 1.2fr repeat(7, 1fr) 1.6fr; }
.row4 { grid-template-columns: 1.6fr 1fr 1fr 5fr 1fr 1.6fr; }
.key {
height: 120px; background: #1d1d1e; border-radius: 16px;
display: flex; align-items: center; justify-content: center; font-size: 46px; color: #eaeaea;
}
.key.secondary { background: #2b2b2c; color: #dcdcdc; }
.key.action { background: #B8F6CC; color: #103e21; }
.key.icon svg { width: 50px; height: 50px; }
.space { font-size: 28px; color: #999; }
/* Home indicator */
.home-indicator {
position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
width: 300px; height: 12px; background: #e9e9e9; border-radius: 12px; opacity: 0.9;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status Bar -->
<div class="status-bar">
<div class="status-left">10:11</div>
<div class="status-right">
<!-- simple glyphs to mimic status icons -->
<svg class="status-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="#fff"/></svg>
<svg class="status-icon" viewBox="0 0 24 24"><rect x="4" y="6" width="16" height="12" fill="#fff"/></svg>
<svg class="status-icon" viewBox="0 0 24 24"><path d="M3 18h18l-5-12-4 9-3-6z" fill="#fff"/></svg>
<svg class="status-icon" viewBox="0 0 24 24"><path d="M3 12h18" stroke="#fff" stroke-width="3"/></svg>
<svg class="status-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="2" fill="#fff"/></svg>
<svg class="status-icon" viewBox="0 0 24 24"><path d="M3 18h18v-3H3v3zm0-6h14v-3H3v3zm0-6h10V3H3v3z" fill="#fff"/></svg>
<svg class="status-icon" viewBox="0 0 24 24"><rect x="6" y="4" width="12" height="18" rx="2" ry="2" fill="none" stroke="#fff" stroke-width="2"/><rect x="9" y="2" width="6" height="2" fill="#fff"/></svg>
</div>
</div>
<!-- App Bar -->
<div class="app-bar">
<div class="back-btn">
<svg viewBox="0 0 24 24" width="60" height="60">
<path d="M15 5l-7 7 7 7" fill="none" stroke="#ffffff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="search-wrap">
<svg class="search-icon" viewBox="0 0 24 24">
<circle cx="10" cy="10" r="6" fill="none" stroke="#333" stroke-width="2"/><path d="M14 14l6 6" stroke="#333" stroke-width="2"/>
</svg>
<div class="search-text">Toblerone milk <span class="highlight">chocolate</span></div>
<div class="clear-btn">
<svg viewBox="0 0 24 24" fill="none">
<path d="M6 6l12 12M18 6L6 18" stroke-width="2"/>
</svg>
</div>
</div>
</div>
<!-- Content Area with dim and suggestion dropdown -->
<div class="content-area">
<div class="dim"></div>
<div class="suggestion-sheet">
<div class="suggestion-item">
<div class="text">toblerone milk chocolate</div>
<svg class="arrow" viewBox="0 0 24 24">
<path d="M8 5l8 7-8 7" fill="none" stroke="#444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
<!-- Trending section behind (dimmed) -->
<div class="trending">
<div class="trending-title">
<svg width="40" height="40" viewBox="0 0 24 24"><path d="M3 17l5-6 4 4 7-9" stroke="#666" stroke-width="2" fill="none"/></svg>
<span>Trending in your area</span>
</div>
<div class="trend-list">
<div class="trend-item">
<div class="img-ph">[IMG: Oil]</div>
<div class="trend-label">Oil</div>
</div>
<div class="trend-item">
<div class="img-ph">[IMG: Ghee]</div>
<div class="trend-label">Ghee</div>
</div>
<div class="trend-item">
<div class="img-ph">[IMG: Sugar]</div>
<div class="trend-label">Sugar</div>
</div>
<div class="trend-item">
<div class="img-ph">[IMG: Rice]</div>
<div class="trend-label">Rice</div>
</div>
<div class="trend-item">
<div class="img-ph">[IMG: Biscuits]</div>
<div class="trend-label">Biscuits</div>
</div>
</div>
</div>
</div>
<!-- Keyboard -->
<div class="keyboard">
<div class="kb-suggestions">
<div class="kb-chip">chocolate</div>
<div class="kb-chip">chocolates</div>
<div class="kb-chip">🍫</div>
<div class="kb-chip">🍜</div>
<div class="kb-spacer">
<div class="kb-mic">
<svg viewBox="0 0 24 24">
<rect x="9" y="4" width="6" height="10" rx="3" fill="#dcdcdc"/>
<path d="M6 11a6 6 0 0012 0M12 17v4" stroke="#dcdcdc" stroke-width="2" fill="none"/>
</svg>
</div>
</div>
</div>
<div class="kb-rows">
<div class="kb-row row1">
<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 row2">
<div class="key secondary">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 secondary">l</div>
</div>
<div class="kb-row row3">
<div class="key icon secondary">
<svg viewBox="0 0 24 24"><path d="M8 16l4-4 4 4" stroke="#dcdcdc" stroke-width="2" fill="none"/></svg>
</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 icon secondary">
<svg viewBox="0 0 24 24"><path d="M5 5h14v14H5z" fill="none" stroke="#dcdcdc" stroke-width="2"/><path d="M15 9l-6 6" stroke="#dcdcdc" stroke-width="2"/></svg>
</div>
</div>
<div class="kb-row row4">
<div class="key secondary">?123</div>
<div class="key secondary">,</div>
<div class="key secondary">😊</div>
<div class="key space">space</div>
<div class="key secondary">.</div>
<div class="key action icon">
<svg viewBox="0 0 24 24">
<circle cx="10" cy="10" r="6" fill="none" stroke="#0f5f2e" stroke-width="2"/><path d="M14 14l6 6" stroke="#0f5f2e" stroke-width="2"/>
</svg>
</div>
</div>
</div>
<div class="home-indicator"></div>
</div>
</div>
</body>
</html>