AndroidCode / code /10179 /10179_3.html
yhzheng1031's picture
Add files using upload-large-folder tool
67530d2 verified
raw
history blame
7.25 kB
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Search UI with Keyboard</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: Arial, Helvetica, sans-serif; }
#render-target {
position: relative;
width: 1080px;
height: 2400px;
overflow: hidden;
background: #FFFFFF;
}
/* Status bar (dark) */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 140px;
background: #241F26;
color: #fff;
}
.status-content {
position: absolute;
top: 36px;
left: 40px;
right: 40px;
height: 68px;
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 600;
font-size: 44px;
letter-spacing: 1px;
}
.status-icons {
display: flex;
align-items: center;
gap: 26px;
}
.dot {
width: 14px; height: 14px; border-radius: 50%; background: #fff; opacity: .9;
}
.battery {
width: 40px; height: 20px; border: 2px solid #fff; border-radius: 3px; position: relative;
}
.battery::after {
content: ""; position: absolute; right: -8px; top: 4px; width: 6px; height: 12px; background: #fff; border-radius: 2px;
}
/* Search area */
.search-area {
position: absolute;
top: 140px;
left: 0;
width: 1080px;
padding: 28px 40px 20px;
background: #FFFFFF;
}
.search-row {
display: flex;
align-items: center;
gap: 24px;
}
.icon-btn {
width: 64px;
height: 64px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #4A4A4A;
}
.search-input {
flex: 1;
font-size: 54px;
color: #1b1b1b;
}
.search-underline {
margin-top: 20px;
height: 6px;
background: #C9C9C9;
width: 100%;
}
.suggestion {
position: absolute;
top: 340px;
left: 40px;
right: 40px;
font-size: 48px;
color: #1b1b1b;
}
/* Keyboard */
.keyboard {
position: absolute;
left: 0;
bottom: 0;
width: 1080px;
height: 900px;
background: #1C1C21;
box-shadow: 0 -6px 18px rgba(0,0,0,0.25);
color: #EDEDED;
}
.kb-suggest {
height: 110px;
border-bottom: 1px solid #2a2a30;
display: flex;
align-items: center;
justify-content: center;
color: #D9D9D9;
font-size: 44px;
position: relative;
}
.kb-suggest .mic {
position: absolute;
right: 28px;
top: 24px;
width: 64px; height: 64px;
display: flex; align-items: center; justify-content: center;
color: #CFCFE6;
}
.row {
padding: 18px 22px;
display: flex;
justify-content: space-between;
gap: 14px;
}
.key {
flex: 1;
max-width: 92px;
height: 120px;
border-radius: 16px;
background: #2C2C32;
display: flex;
align-items: center;
justify-content: center;
color: #F1F1F1;
font-size: 46px;
}
.row.row2 .key { max-width: 100px; }
.special { max-width: 140px; }
.spacebar {
flex: 1;
height: 120px;
border-radius: 18px;
background: #2C2C32;
}
.key-wide { max-width: 180px; }
.search-btn {
width: 140px; height: 140px;
border-radius: 70px;
background: #DCD8FF;
color: #2C2C32;
display: flex; align-items: center; justify-content: center;
margin-left: 12px;
}
/* Simple SVG icons */
.svg {
width: 48px; height: 48px; fill: #4A4A4A;
}
.svg-white { fill: #EDEDED; width: 44px; height: 44px; }
.clear {
font-size: 60px;
color: #6A6A6A;
line-height: 1;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Dark status bar -->
<div class="status-bar">
<div class="status-content">
<div>10:46</div>
<div class="status-icons">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<svg class="svg" viewBox="0 0 24 24">
<path fill="#fff" d="M12 3C7 3 3 7 3 12h3a6 6 0 0 1 12 0h3c0-5-4-9-9-9zm-9 9c0 5 4 9 9 9s9-4 9-9h-3a6 6 0 0 1-12 0H3z"/>
</svg>
<div class="battery"></div>
</div>
</div>
</div>
<!-- Search bar area -->
<div class="search-area">
<div class="search-row">
<div class="icon-btn">
<svg class="svg" viewBox="0 0 24 24">
<path d="M15.5 19l-7-7 7-7" stroke="#4A4A4A" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="search-input">2 seater recliners</div>
<div class="icon-btn">
<div class="clear">&times;</div>
</div>
</div>
<div class="search-underline"></div>
</div>
<!-- Suggestion -->
<div class="suggestion">2 seater recliners</div>
<!-- Keyboard -->
<div class="keyboard">
<div class="kb-suggest">
recliners
<div class="mic">
<svg class="svg-white" viewBox="0 0 24 24">
<path d="M12 14a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z"/>
</svg>
</div>
</div>
<!-- Row 1 -->
<div class="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>
<!-- Row 2 -->
<div class="row row2" style="padding-left: 60px; padding-right: 60px;">
<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>
<!-- Row 3 -->
<div class="row" style="padding-left: 30px; padding-right: 30px;">
<div class="key special">
<svg class="svg-white" viewBox="0 0 24 24">
<path d="M4 16l8-8 8 8" stroke="#EDEDED" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</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 special">
<svg class="svg-white" viewBox="0 0 24 24">
<path d="M6 6h12v12H6z" fill="none"/>
<path d="M18 8l-6 6-6-6" fill="none" stroke="#EDEDED" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" transform="rotate(180 12 12)"/>
</svg>
</div>
</div>
<!-- Row 4 -->
<div class="row" style="align-items: center;">
<div class="key key-wide">?123</div>
<div class="key key-wide">,</div>
<div class="spacebar"></div>
<div class="key key-wide">.</div>
<div class="search-btn">
<svg viewBox="0 0 24 24" width="56" height="56" fill="#2C2C32">
<path d="M15.5 14h-.8l-.3-.3A6 6 0 1 0 14 15.5l.3.3v.8l5 5 1.5-1.5-5-5zm-5.5 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z"/>
</svg>
</div>
</div>
</div>
</div>
</body>
</html>