AndroidCode / code /10045 /10045_0.html
yhzheng1031's picture
Add files using upload-large-folder tool
fa881a6 verified
<!DOCTYPE html>
<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 {
position: relative;
overflow: hidden;
width: 1080px;
height: 2400px;
background:
radial-gradient(1200px 900px at 20% 30%, rgba(35,35,35,0.9), rgba(18,18,18,0.95)),
linear-gradient(140deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.9) 100%);
color: #fff;
}
/* faint feather-like lines */
#render-target:before, #render-target:after {
content: "";
position: absolute;
inset: 0;
background:
repeating-linear-gradient(110deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, rgba(0,0,0,0.0) 6px),
repeating-linear-gradient(70deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, rgba(0,0,0,0.0) 8px);
mix-blend-mode: soft-light;
pointer-events: none;
}
#render-target:after {
opacity: 0.5;
transform: scale(1.02);
}
/* Status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 110px;
padding: 24px 36px;
display: flex;
align-items: center;
justify-content: space-between;
color: #ffffff;
font-size: 30px;
box-sizing: border-box;
}
.status-left {
display: flex;
align-items: center;
gap: 16px;
}
.status-left .time {
font-size: 36px;
font-weight: 600;
letter-spacing: 0.5px;
}
.chip {
width: 34px;
height: 34px;
border-radius: 8px;
background: rgba(255,255,255,0.16);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 22px;
}
.status-right {
display: flex;
align-items: center;
gap: 26px;
}
.icon {
display: inline-flex;
align-items: center;
justify-content: center;
}
/* Date & weather */
.date-block {
position: absolute;
top: 190px;
left: 64px;
}
.date-block .date {
font-size: 58px;
font-weight: 500;
margin-bottom: 18px;
color: #f1f1f1;
}
.date-block .weather {
display: flex;
align-items: center;
gap: 16px;
color: #dcdcdc;
font-size: 34px;
}
/* App grid rows */
.apps-row {
position: absolute;
left: 0;
width: 100%;
display: flex;
justify-content: space-around;
padding: 0 40px;
box-sizing: border-box;
}
.apps-row.top {
top: 1520px;
}
.apps-row.dock {
top: 1820px;
}
.app-item {
width: 180px;
text-align: center;
color: #ffffff;
}
.icon-circle {
width: 152px;
height: 152px;
border-radius: 50%;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.app-label {
margin-top: 20px;
font-size: 32px;
color: #f2f2f2;
}
/* Search bar */
.search-bar {
position: absolute;
left: 70px;
right: 70px;
top: 2060px;
height: 128px;
background: #3a3a3a;
border-radius: 64px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 36px;
box-shadow: 0 10px 20px rgba(0,0,0,0.4);
box-sizing: border-box;
}
.search-left {
display: flex;
align-items: center;
gap: 22px;
color: #e6e6e6;
font-size: 38px;
letter-spacing: 0.2px;
}
.g-badge {
width: 64px;
height: 64px;
border-radius: 50%;
background: #2b2b2b;
display: flex;
align-items: center;
justify-content: center;
}
.search-right {
display: flex;
align-items: center;
gap: 26px;
}
/* Gesture handle */
.gesture {
position: absolute;
bottom: 36px;
left: 50%;
transform: translateX(-50%);
width: 260px;
height: 16px;
border-radius: 10px;
background: rgba(255,255,255,0.85);
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status Bar -->
<div class="status-bar">
<div class="status-left">
<div class="time">2:45</div>
<div class="chip">B</div>
<div class="chip">N</div>
<div class="chip"></div>
</div>
<div class="status-right">
<!-- Wi-Fi icon -->
<div class="icon">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none">
<path d="M5 14c6-5 24-5 30 0" stroke="#ffffff" stroke-width="3" stroke-linecap="round"/>
<path d="M10 20c4-3 16-3 20 0" stroke="#ffffff" stroke-width="3" stroke-linecap="round"/>
<path d="M15 26c2-2 8-2 10 0" stroke="#ffffff" stroke-width="3" stroke-linecap="round"/>
<circle cx="20" cy="31" r="2.6" fill="#ffffff"/>
</svg>
</div>
<!-- Battery icon -->
<div class="icon">
<svg width="44" height="40" viewBox="0 0 44 40" fill="none">
<rect x="5" y="10" width="30" height="20" rx="4" stroke="#ffffff" stroke-width="3"/>
<rect x="8" y="13" width="24" height="14" rx="2" fill="#ffffff"/>
<rect x="36" y="15" width="4" height="10" rx="2" fill="#ffffff"/>
</svg>
</div>
</div>
</div>
<!-- Date and Weather -->
<div class="date-block">
<div class="date">Fri, Aug 11</div>
<div class="weather">
<svg width="44" height="44" viewBox="0 0 44 44" fill="none">
<path d="M4 16c6 6 12-6 18 0 6 6 12-6 18 0" stroke="#dcdcdc" stroke-width="3" stroke-linecap="round"/>
<path d="M4 24c6 6 12-6 18 0 6 6 12-6 18 0" stroke="#dcdcdc" stroke-width="3" stroke-linecap="round"/>
<path d="M4 32c6 6 12-6 18 0 6 6 12-6 18 0" stroke="#dcdcdc" stroke-width="3" stroke-linecap="round"/>
</svg>
<span>34°C</span>
</div>
</div>
<!-- Top apps row -->
<div class="apps-row top">
<!-- Play Store -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<polygon points="12,12 12,88 47,50" fill="#34A853"></polygon>
<polygon points="47,50 85,22 85,78" fill="#4285F4"></polygon>
<polygon points="47,50 85,78 61,90" fill="#FBBC05"></polygon>
<polygon points="47,50 85,22 61,10" fill="#EA4335"></polygon>
</svg>
</div>
<div class="app-label">Play Store</div>
</div>
<!-- Gmail -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<rect x="16" y="26" width="68" height="48" rx="8" fill="#ffffff" stroke="#dadada" stroke-width="2"></rect>
<!-- M shape bars -->
<polygon points="18,30 18,70 50,48 50,32" fill="#EA4335"></polygon>
<polygon points="82,30 82,70 50,48 50,32" fill="#4285F4"></polygon>
<rect x="18" y="30" width="64" height="10" fill="#FBBC05"></rect>
<polygon points="18,70 50,48 18,48" fill="#34A853"></polygon>
<polygon points="82,70 50,48 82,48" fill="#34A853"></polygon>
</svg>
</div>
<div class="app-label">Gmail</div>
</div>
<!-- Photos -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<rect x="46" y="16" width="20" height="32" rx="10" fill="#FBBC05" transform="rotate(45 56 32)"></rect>
<rect x="64" y="46" width="32" height="20" rx="10" fill="#4285F4" transform="rotate(45 80 56)"></rect>
<rect x="46" y="52" width="20" height="32" rx="10" fill="#EA4335" transform="rotate(45 56 68)"></rect>
<rect x="16" y="46" width="32" height="20" rx="10" fill="#34A853" transform="rotate(45 32 56)"></rect>
<circle cx="56" cy="56" r="10" fill="#ffffff"></circle>
</svg>
</div>
<div class="app-label">Photos</div>
</div>
<!-- YouTube -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<rect x="16" y="30" width="68" height="40" rx="12" fill="#ff0000"></rect>
<polygon points="44,50 44,42 60,50 44,58" fill="#ffffff"></polygon>
</svg>
</div>
<div class="app-label">YouTube</div>
</div>
</div>
<!-- Dock row -->
<div class="apps-row dock">
<!-- Phone -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<path d="M32 32c5-5 12-5 17 0l4 4c3 3 3 8 0 11l-4 4c4 7 11 12 18 16l4-4c3-3 8-3 11 0l4 4c5 5 5 12 0 17-3 3-8 4-12 3-12-3-29-13-40-24S23 51 20 39c-1-4 0-9 3-12z" fill="#2D7CF7"></path>
</svg>
</div>
</div>
<!-- Messages -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<rect x="18" y="24" width="64" height="42" rx="14" fill="#3D79FF"></rect>
<polygon points="40,66 36,84 52,72" fill="#3D79FF"></polygon>
<circle cx="34" cy="45" r="5" fill="#cfe0ff"></circle>
<circle cx="50" cy="45" r="5" fill="#cfe0ff"></circle>
<circle cx="66" cy="45" r="5" fill="#cfe0ff"></circle>
</svg>
</div>
</div>
<!-- Chrome -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" fill="#F4B400"></circle>
<path d="M50 10a40 40 0 0 1 35 22H50z" fill="#DB4437"></path>
<path d="M85 32a40 40 0 0 1-20 48L50 50z" fill="#0F9D58"></path>
<path d="M65 80A40 40 0 0 1 15 32l35 18z" fill="#4285F4"></path>
<circle cx="50" cy="50" r="16" fill="#2C7CF7"></circle>
</svg>
</div>
</div>
<!-- Camera -->
<div class="app-item">
<div class="icon-circle">
<svg width="120" height="120" viewBox="0 0 100 100">
<rect x="20" y="30" width="60" height="40" rx="8" fill="#9AA0A6"></rect>
<rect x="32" y="20" width="18" height="12" rx="4" fill="#757575"></rect>
<circle cx="50" cy="50" r="14" fill="#4A90E2"></circle>
<circle cx="50" cy="50" r="7" fill="#BFE0FF"></circle>
</svg>
</div>
</div>
</div>
<!-- Search bar -->
<div class="search-bar">
<div class="search-left">
<div class="g-badge">
<svg width="44" height="44" viewBox="0 0 44 44">
<path d="M22 8a14 14 0 1 0 0 28c7 0 12-4 13-9h-13v-6h21c1 14-10 23-21 23A20 20 0 1 1 22 4c5 0 9 2 12 5l-5 5c-2-2-4-3-7-3z" fill="#4285F4"/>
<path d="M22 36a14 14 0 0 0 9-3l-4-5c-2 1-3 2-5 2-4 0-7-3-7-7H9c0 7 6 13 13 13z" fill="#34A853"/>
<path d="M15 23c0-1 0-2 1-3l-5-4c-2 3-3 6-3 9h7z" fill="#FBBC05"/>
<path d="M22 16c2 0 3 1 4 2l5-5c-3-3-6-5-10-5-6 0-11 3-14 7l5 4c2-4 6-3 10-3z" fill="#EA4335"/>
</svg>
</div>
<div>Search</div>
</div>
<div class="search-right">
<!-- Mic -->
<svg width="44" height="44" viewBox="0 0 44 44">
<rect x="16" y="10" width="12" height="18" rx="6" fill="#4285F4"></rect>
<path d="M12 22c0 6 5 10 10 10s10-4 10-10" stroke="#34A853" stroke-width="3" fill="none"></path>
<rect x="20" y="30" width="4" height="8" fill="#EA4335"></rect>
</svg>
<!-- Lens/Camera -->
<svg width="52" height="44" viewBox="0 0 52 44">
<rect x="8" y="10" width="36" height="24" rx="6" fill="#2b2b2b" stroke="#5f6368" stroke-width="2"></rect>
<circle cx="26" cy="22" r="8" fill="#1a73e8"></circle>
<circle cx="26" cy="22" r="4" fill="#a1c8ff"></circle>
<rect x="12" y="6" width="10" height="6" rx="2" fill="#FBBC05"></rect>
<rect x="30" y="6" width="10" height="6" rx="2" fill="#34A853"></rect>
<rect x="12" y="32" width="10" height="6" rx="2" fill="#EA4335"></rect>
<rect x="30" y="32" width="10" height="6" rx="2" fill="#4285F4"></rect>
</svg>
</div>
</div>
<!-- Gesture handle -->
<div class="gesture"></div>
</div>
</body>
</html>