AndroidCode / code /10157 /10157_0.html
yhzheng1031's picture
Add files using upload-large-folder tool
ff1f000 verified
raw
history blame
10 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Android Home 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;
/* Abstract painted wallpaper approximation */
background:
radial-gradient(1200px 1200px at 80% 70%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 35%, rgba(0,0,0,0.08) 100%),
repeating-linear-gradient(130deg, #89b27c 0 22px, #7aa771 22px 44px, #b8cf8f 44px 66px, #6da46e 66px 88px, #e3d685 88px 110px, #7db282 110px 132px),
linear-gradient(180deg, #6ea575, #5f9b6c);
}
.status-bar {
position: absolute; top: 24px; left: 0; right: 0; height: 84px; color: #fff;
display: flex; align-items: center; padding: 0 28px; font-weight: 600;
}
.sb-time { font-size: 34px; letter-spacing: 0.5px; }
.sb-middle { margin-left: 28px; display: flex; align-items: center; gap: 26px; opacity: 0.95; }
.sb-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.sb-icon { width: 28px; height: 28px; display: inline-block; }
.date-widget {
position: absolute; top: 300px; left: 64px; color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.date-widget .day { font-size: 64px; font-weight: 300; }
.weather { margin-top: 20px; display: flex; align-items: center; gap: 18px; font-size: 34px; opacity: 0.95; }
/* App grid */
.app-row {
position: absolute; top: 1450px; left: 60px; right: 60px;
display: flex; justify-content: space-between; align-items: flex-start;
}
.app { width: 200px; text-align: center; color: #ffffff; }
.app .disc {
width: 160px; height: 160px; margin: 0 auto 22px; border-radius: 50%;
background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
display: flex; align-items: center; justify-content: center;
}
.app label { font-size: 32px; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
/* Dock */
.dock {
position: absolute; top: 1760px; left: 120px; right: 120px;
display: flex; justify-content: space-between; align-items: center;
}
.dock .disc { width: 150px; height: 150px; border-radius: 50%; background: #fff;
box-shadow: 0 8px 24px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; }
/* Search bar */
.search-bar {
position: absolute; bottom: 170px; left: 60px; right: 60px; height: 120px;
background: #ffffff; border-radius: 60px; box-shadow: 0 12px 30px rgba(0,0,0,0.35);
display: flex; align-items: center; padding: 0 30px; gap: 22px;
}
.search-g {
width: 68px; height: 68px; border-radius: 34px; display: flex; align-items: center; justify-content: center;
font-weight: 800; font-size: 40px; color: #4285F4; border: 2px solid #e6e6e6; background: #fff;
}
.search-text { flex: 1; color: #888; font-size: 32px; }
.search-actions { display: flex; align-items: center; gap: 26px; }
.gesture {
position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
width: 320px; height: 12px; background: rgba(255,255,255,0.85); border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
/* Simple helper */
svg { display: block; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div class="sb-time">10:51</div>
<div class="sb-middle">
<!-- tiny glyphs approximating middle indicators -->
<svg class="sb-icon" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" fill="none" stroke="#fff" stroke-width="2"/>
<circle cx="12" cy="12" r="3" fill="#fff"/>
</svg>
<svg class="sb-icon" viewBox="0 0 24 24">
<rect x="4" y="6" width="16" height="12" fill="#fff"/>
</svg>
<div style="font-size:28px;">80°</div>
<svg class="sb-icon" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="7" fill="#fff"/>
</svg>
</div>
<div class="sb-right">
<!-- Wi-Fi -->
<svg class="sb-icon" viewBox="0 0 24 24">
<path d="M2 9c5-4 15-4 20 0" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round"/>
<path d="M6 13c3-3 9-3 12 0" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round"/>
<path d="M10 17c1-1 3-1 4 0" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round"/>
<circle cx="12" cy="20" r="1.5" fill="#fff"/>
</svg>
<!-- Battery -->
<svg class="sb-icon" viewBox="0 0 24 24">
<rect x="2" y="6" width="18" height="12" rx="2" ry="2" fill="none" stroke="#fff" stroke-width="2"/>
<rect x="21" y="9" width="2" height="6" fill="#fff"/>
<rect x="4" y="8" width="12" height="8" fill="#fff"/>
</svg>
</div>
</div>
<!-- Date & weather -->
<div class="date-widget">
<div class="day">Wed, Nov 1</div>
<div class="weather">
<svg width="50" height="34" viewBox="0 0 50 34">
<path d="M4 10c8 6 16 6 24 0M8 20c8 6 16 6 24 0" stroke="#fff" stroke-width="3" fill="none" stroke-linecap="round"/>
</svg>
<div>28°C</div>
</div>
</div>
<!-- App row -->
<div class="app-row">
<!-- Play Store -->
<div class="app">
<div class="disc">
<svg width="120" height="120" viewBox="0 0 120 120">
<!-- Play Store triangle pieces -->
<polygon points="30,20 80,60 30,100" fill="#34A853"/>
<polygon points="42,32 80,60 42,88" fill="#4285F4"/>
<polygon points="30,20 60,42 42,32" fill="#FBBC04"/>
<polygon points="42,88 60,78 30,100" fill="#EA4335"/>
</svg>
</div>
<label>Play Store</label>
</div>
<!-- Gmail -->
<div class="app">
<div class="disc">
<svg width="120" height="120" viewBox="0 0 120 120">
<rect x="22" y="36" width="76" height="50" rx="8" fill="#fff" stroke="#DADCE0" stroke-width="4"/>
<path d="M24 40 L60 68 L96 40" fill="none" stroke="#EA4335" stroke-width="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M24 88 V44 L60 68 L96 44 V88" fill="none" stroke="#34A853" stroke-width="8" opacity="0.7"/>
<!-- Bold red M -->
<path d="M30 84 V44 L60 66 L90 44 V84" fill="none" stroke="#EA4335" stroke-width="12" stroke-linejoin="round"/>
</svg>
</div>
<label>Gmail</label>
</div>
<!-- Photos -->
<div class="app">
<div class="disc">
<svg width="120" height="120" viewBox="0 0 120 120">
<g transform="translate(60,60)">
<path d="M0 -38 A38 38 0 0 1 38 0 L0 0 Z" fill="#FBBC04"/>
<path d="M38 0 A38 38 0 0 1 0 38 L0 0 Z" fill="#34A853"/>
<path d="M0 38 A38 38 0 0 1 -38 0 L0 0 Z" fill="#4285F4"/>
<path d="M-38 0 A38 38 0 0 1 0 -38 L0 0 Z" fill="#EA4335"/>
<circle cx="0" cy="0" r="10" fill="#fff"/>
</g>
</svg>
</div>
<label>Photos</label>
</div>
<!-- YouTube -->
<div class="app">
<div class="disc">
<svg width="120" height="120" viewBox="0 0 120 120">
<rect x="24" y="38" width="72" height="44" rx="14" fill="#FF0000"/>
<polygon points="52,50 52,70 74,60" fill="#fff"/>
</svg>
</div>
<label>YouTube</label>
</div>
</div>
<!-- Dock icons -->
<div class="dock">
<!-- Phone -->
<div class="disc">
<svg width="110" height="110" viewBox="0 0 24 24">
<path d="M6 2c1 0 3 2 3 3s-1 2-1 3c1 2 3 4 5 5 1-1 2-1 3-1s3 2 3 3-2 3-3 3c-5 0-12-7-12-12 0-1 2-3 2-4z" fill="#2B6BF0"/>
</svg>
</div>
<!-- Messages -->
<div class="disc">
<svg width="110" height="110" viewBox="0 0 24 24">
<path d="M3 5h18v11H8l-5 4V5z" fill="#4C8BF5"/>
<circle cx="9" cy="11" r="1.6" fill="#fff"/>
<circle cx="13" cy="11" r="1.6" fill="#fff"/>
<circle cx="17" cy="11" r="1.6" fill="#fff"/>
</svg>
</div>
<!-- Chrome -->
<div class="disc">
<svg width="110" height="110" viewBox="0 0 120 120">
<circle cx="60" cy="60" r="46" fill="#DB4437"/>
<path d="M60 60 L22 60 A46 46 0 0 1 60 14" fill="#0F9D58"/>
<path d="M60 60 L84 101 A46 46 0 0 1 22 60" fill="#F4B400"/>
<circle cx="60" cy="60" r="22" fill="#4285F4"/>
<circle cx="60" cy="60" r="30" fill="none" stroke="#fff" stroke-width="4" opacity="0.7"/>
</svg>
</div>
<!-- Camera -->
<div class="disc">
<svg width="110" height="110" viewBox="0 0 24 24">
<rect x="3" y="7" width="18" height="12" rx="3" fill="#444"/>
<rect x="7" y="4" width="6" height="3" rx="1" fill="#666"/>
<circle cx="12" cy="13" r="4" fill="#9CC2FF"/>
<circle cx="12" cy="13" r="2" fill="#5B8BF7"/>
</svg>
</div>
</div>
<!-- Search bar -->
<div class="search-bar">
<div class="search-g">G</div>
<div class="search-text">Search</div>
<div class="search-actions">
<!-- Mic icon -->
<svg width="48" height="48" viewBox="0 0 24 24">
<rect x="9" y="4" width="6" height="10" rx="3" fill="#4285F4"/>
<path d="M5 11c0 4 3 6 7 6s7-2 7-6" fill="none" stroke="#666" stroke-width="2"/>
<rect x="11" y="17" width="2" height="4" fill="#666"/>
<rect x="8" y="21" width="8" height="2" fill="#666"/>
</svg>
<!-- Google Lens-like corners -->
<svg width="48" height="48" viewBox="0 0 24 24">
<path d="M5 5h5" stroke="#4285F4" stroke-width="2" stroke-linecap="round"/>
<path d="M14 5h5" stroke="#EA4335" stroke-width="2" stroke-linecap="round"/>
<path d="M5 19h5" stroke="#34A853" stroke-width="2" stroke-linecap="round"/>
<path d="M14 19h5" stroke="#FBBC04" stroke-width="2" stroke-linecap="round"/>
<rect x="8" y="8" width="8" height="8" rx="2" fill="none" stroke="#777" stroke-width="2"/>
</svg>
</div>
</div>
<!-- Gesture bar -->
<div class="gesture"></div>
</div>
</body>
</html>