AndroidCode / code /10179 /10179_0.html
yhzheng1031's picture
Add files using upload-large-folder tool
67530d2 verified
raw
history blame
7.7 kB
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Android Home UI Mock</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: radial-gradient(1200px 900px at 50% 40%, #1b1b1b 0%, #121212 60%, #0f0f0f 100%);
}
/* Status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 110px;
color: #ffffff;
display: flex;
align-items: center;
padding: 0 30px;
font-size: 40px;
letter-spacing: 0.5px;
}
.status-left { flex: 1; }
.status-center {
width: 260px;
text-align: center;
position: relative;
}
.page-dots {
position: absolute;
top: 18px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 16px;
}
.dot {
width: 16px;
height: 16px;
border-radius: 50%;
background: #9e9e9e;
opacity: 0.6;
}
.dot.active { opacity: 1; background: #ffffff; }
.status-right {
display: flex;
gap: 18px;
align-items: center;
font-size: 30px;
}
.status-icon {
width: 38px;
height: 38px;
border-radius: 8px;
background: rgba(255,255,255,0.12);
}
/* App icons grid (top row) */
.apps-top {
position: absolute;
top: 190px;
left: 68px;
display: flex;
gap: 140px;
align-items: flex-start;
}
.app {
width: 180px;
text-align: center;
color: #ffffff;
font-size: 34px;
}
.app .icon {
width: 170px;
height: 170px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 8px 20px rgba(0,0,0,0.35);
margin: 0 auto 22px;
position: relative;
}
/* Simple SVGs inside icons */
.icon svg {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
}
/* Bottom dock */
.dock {
position: absolute;
bottom: 260px;
left: 0;
width: 1080px;
display: flex;
justify-content: space-around;
padding: 0 80px;
}
.dock .icon {
width: 170px;
height: 170px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 8px 22px rgba(0,0,0,0.35);
position: relative;
}
/* Google search bar */
.search-bar {
position: absolute;
bottom: 120px;
left: 70px;
width: 940px;
height: 140px;
background: #2b2b2b;
border-radius: 72px;
box-shadow: 0 10px 24px rgba(0,0,0,0.5);
display: flex;
align-items: center;
padding: 0 34px;
color: #e0e0e0;
font-size: 42px;
}
.search-left {
display: flex;
align-items: center;
gap: 22px;
}
.g-badge {
width: 82px;
height: 82px;
border-radius: 50%;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #4285F4;
font-size: 40px;
}
.search-actions {
margin-left: auto;
display: flex;
gap: 26px;
}
.action-btn {
width: 80px;
height: 80px;
border-radius: 22px;
background: rgba(255,255,255,0.08);
display: flex;
align-items: center;
justify-content: center;
}
/* Navigation handle */
.nav-handle {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
width: 320px;
height: 12px;
border-radius: 8px;
background: #e9e9e9;
opacity: 0.9;
}
</style>
</head>
<body>
<div id="render-target">
<!-- STATUS BAR -->
<div class="status-bar">
<div class="status-left">10:44</div>
<div class="status-center">
<div class="page-dots">
<div class="dot"></div>
<div class="dot active"></div>
</div>
</div>
<div class="status-right">
<div class="status-icon"></div>
<div class="status-icon"></div>
<div class="status-icon"></div>
</div>
</div>
<!-- TOP ROW APPS -->
<div class="apps-top">
<!-- Houzz -->
<div class="app">
<div class="icon">
<svg width="120" height="120" viewBox="0 0 120 120">
<!-- simple green house-like logo -->
<rect x="20" y="50" width="30" height="45" fill="#34C759"></rect>
<polygon points="35,26 70,50 70,95 50,95 50,65 35,65" fill="#34C759"></polygon>
</svg>
</div>
<div>Houzz</div>
</div>
<!-- Pepperfry -->
<div class="app">
<div class="icon">
<svg width="120" height="120" viewBox="0 0 120 120">
<!-- a simple orange chair -->
<rect x="28" y="40" width="64" height="32" rx="6" fill="#ff7a2e"></rect>
<rect x="40" y="72" width="40" height="18" rx="4" fill="#ff9a57"></rect>
<rect x="34" y="90" width="8" height="18" fill="#cc5f22"></rect>
<rect x="78" y="90" width="8" height="18" fill="#cc5f22"></rect>
</svg>
</div>
<div>Pepperfry</div>
</div>
</div>
<!-- BOTTOM DOCK ICONS -->
<div class="dock">
<!-- Phone -->
<div class="icon">
<svg width="110" height="110" viewBox="0 0 110 110">
<path d="M28 32c2-4 7-6 10-3l9 9c3 3 2 7-1 10l-4 3c6 10 15 18 25 24l3-4c3-3 7-4 10-1l9 9c3 3 1 8-3 10-9 4-21 1-36-10S24 58 20 49c-5-13-3-25 8-31z" fill="#3A77FF"></path>
</svg>
</div>
<!-- Pepperfry (dock) -->
<div class="icon">
<svg width="110" height="110" viewBox="0 0 120 120">
<rect x="30" y="42" width="60" height="30" rx="6" fill="#ff7a2e"></rect>
<rect x="42" y="72" width="36" height="16" rx="4" fill="#ff9a57"></rect>
<rect x="36" y="88" width="8" height="18" fill="#cc5f22"></rect>
<rect x="76" y="88" width="8" height="18" fill="#cc5f22"></rect>
</svg>
</div>
<!-- Chrome -->
<div class="icon">
<svg width="120" height="120" viewBox="0 0 120 120">
<!-- simplified chrome-like emblem -->
<circle cx="60" cy="60" r="50" fill="#EA4335"></circle>
<path d="M60 10 A50 50 0 0 1 110 60 L80 60 Z" fill="#FBBC04"></path>
<path d="M60 110 A50 50 0 0 1 10 60 L40 60 Z" fill="#34A853"></path>
<circle cx="60" cy="60" r="26" fill="#4285F4"></circle>
<circle cx="60" cy="60" r="16" fill="#ffffff"></circle>
</svg>
</div>
<!-- Camera -->
<div class="icon">
<svg width="110" height="110" viewBox="0 0 120 120">
<rect x="22" y="42" width="76" height="48" rx="8" fill="#4f4f4f"></rect>
<rect x="36" y="30" width="18" height="14" rx="4" fill="#666"></rect>
<circle cx="60" cy="66" r="16" fill="#9ec1ff"></circle>
<circle cx="60" cy="66" r="10" fill="#2f5fd3"></circle>
</svg>
</div>
</div>
<!-- Google Search Bar -->
<div class="search-bar">
<div class="search-left">
<div class="g-badge">G</div>
<div>Search</div>
</div>
<div class="search-actions">
<div class="action-btn">
<!-- Mic -->
<svg width="40" height="40" viewBox="0 0 24 24">
<path d="M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3z" fill="#ff4b4b"></path>
<path d="M6 11a6 6 0 0 0 12 0h-2a4 4 0 0 1-8 0H6zM11 20h2v-2h-2v2z" fill="#ffffff"></path>
</svg>
</div>
<div class="action-btn">
<!-- Lens/Camera -->
<svg width="40" height="40" viewBox="0 0 24 24">
<rect x="4" y="7" width="16" height="12" rx="3" fill="#ffffff" opacity="0.8"></rect>
<circle cx="12" cy="13" r="4" fill="#4c87ff"></circle>
<rect x="8" y="5" width="4" height="3" rx="1" fill="#ffffff" opacity="0.8"></rect>
</svg>
</div>
</div>
</div>
<!-- Navigation Handle -->
<div class="nav-handle"></div>
</div>
</body>
</html>