AndroidCode / code /10159 /10159_0.html
yhzheng1031's picture
Add files using upload-large-folder tool
ff1f000 verified
raw
history blame
12.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1080, initial-scale=1.0" />
<title>Android Home Screen Mock</title>
<style>
body { margin: 0; padding: 0; background: transparent; }
#render-target {
position: relative;
overflow: hidden;
width: 1080px;
height: 2400px;
background: transparent;
font-family: "Roboto", Arial, sans-serif;
color: #fff;
}
/* Wallpaper placeholder (semantic image) */
.wallpaper {
position: absolute;
inset: 0;
background: #E0E0E0;
border: 1px solid #BDBDBD;
display: flex;
align-items: flex-start;
justify-content: flex-start;
color: #757575;
font-size: 26px;
padding: 18px;
}
.dim-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.55) 100%);
pointer-events: none;
}
/* Status bar */
.status-bar {
position: absolute;
top: 28px;
left: 36px;
right: 36px;
height: 80px;
display: flex;
align-items: center;
justify-content: space-between;
color: #ffffff;
}
.status-left {
display: flex;
align-items: center;
gap: 16px;
}
.time {
font-size: 40px;
font-weight: 500;
letter-spacing: 0.5px;
}
.notif-chip {
background: rgba(255,255,255,0.18);
color: #fff;
font-size: 28px;
padding: 6px 12px;
border-radius: 18px;
line-height: 1;
}
.status-right {
display: flex;
align-items: center;
gap: 18px;
}
.status-icon svg { width: 40px; height: 40px; fill: #fff; opacity: 0.95; }
/* Apps grid */
.apps-grid {
position: absolute;
left: 36px;
right: 36px;
top: 170px;
display: grid;
grid-template-columns: repeat(4, 1fr);
column-gap: 56px;
row-gap: 96px;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
}
.icon {
width: 160px;
height: 160px;
border-radius: 50%;
display: grid;
place-items: center;
box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.label {
margin-top: 18px;
font-size: 34px;
font-weight: 400;
text-align: center;
width: 210px;
color: #ffffff;
text-shadow: 0 2px 3px rgba(0,0,0,0.6);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Simple glyphs inside app icons (decorative) */
.glyph { width: 84px; height: 84px; border-radius: 18px; background: rgba(255,255,255,0.9); }
.ring {
width: 90px; height: 90px; border-radius: 50%;
border: 10px solid rgba(255,255,255,0.9);
}
/* Dock */
.dock {
position: absolute;
left: 0; right: 0;
bottom: 520px;
height: 220px;
display: flex;
align-items: center;
justify-content: center;
gap: 90px;
}
.dock-icon {
width: 132px; height: 132px; border-radius: 50%;
background: #ffffff;
display: grid; place-items: center;
box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.dock-icon svg { width: 64px; height: 64px; }
/* Google search pill */
.search-bar {
position: absolute;
left: 60px;
width: 960px;
height: 150px;
bottom: 270px;
background: #2B2B2B;
border-radius: 90px;
box-shadow: 0 18px 30px rgba(0,0,0,0.45);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30px;
}
.search-left {
display: flex; align-items: center; gap: 24px;
color: #fff;
}
.g-badge {
width: 76px; height: 76px; border-radius: 50%;
display: grid; place-items: center;
background: #1a73e8;
color: #fff; font-weight: 700; font-size: 38px;
}
.search-placeholder {
font-size: 32px; color: #cfcfcf;
}
.search-right { display: flex; align-items: center; gap: 18px; }
.pill-btn {
width: 76px; height: 76px; border-radius: 50%;
display: grid; place-items: center;
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.18);
}
.pill-btn svg { width: 40px; height: 40px; fill: #fff; }
/* Gesture bar */
.gesture {
position: absolute;
bottom: 40px; left: 50%; transform: translateX(-50%);
width: 460px; height: 16px; border-radius: 10px;
background: rgba(255,255,255,0.85);
}
</style>
</head>
<body>
<div id="render-target">
<div class="wallpaper">[IMG: Plant wallpaper]</div>
<div class="dim-overlay"></div>
<!-- Status bar -->
<div class="status-bar">
<div class="status-left">
<div class="time">2:45</div>
<div class="notif-chip">M</div>
</div>
<div class="status-right">
<div class="status-icon">
<!-- Wi-Fi icon -->
<svg viewBox="0 0 24 24">
<path d="M2 8c5.5-4.7 14.5-4.7 20 0l-2.2 2.2c-4.9-3.9-10.7-3.9-15.6 0L2 8zm3.8 4.1c3.5-2.8 8-2.8 11.5 0l-2.2 2.2c-2.9-2.1-4.3-2.1-7.2 0l-2.1-2.2zm4 4c1.9-1.5 3.6-1.5 5.5 0L12 20l-2.2-3.9z"/>
</svg>
</div>
<div class="status-icon">
<!-- Battery icon -->
<svg viewBox="0 0 24 24">
<path d="M18 7h2v10h-2V7zM3 7h13c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V8c0-.6.4-1 1-1zm2 2v6h9V9H5z"/>
</svg>
</div>
</div>
</div>
<!-- Apps grid -->
<div class="apps-grid">
<!-- Row 1 -->
<div class="app">
<div class="icon" style="background:#d7b887;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#000;">
<path d="M4 12c6 4 10 4 16 0v2c-6 4-10 4-16 0v-2z"/>
</svg>
</div>
<div class="label">Amazon</div>
</div>
<div class="app">
<div class="icon" style="background:#2c2253;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#ffcc00;">
<path d="M12 4l5 9H7l5-9zm0 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/>
</svg>
</div>
<div class="label">Rail Planner</div>
</div>
<div class="app">
<div class="icon" style="background:#193b72;">
<div class="ring"></div>
</div>
<div class="label">Omio</div>
</div>
<div class="app">
<div class="icon" style="background:#f2b705;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<path d="M6 3h12v18H6zM8 6h8v10H8z"/>
</svg>
</div>
<div class="label">Keep Notes</div>
</div>
<!-- Row 2 -->
<div class="app">
<div class="icon" style="background:#ffffff;">
<svg width="90" height="90" viewBox="0 0 24 24">
<rect x="3" y="5" width="18" height="14" rx="2" fill="#4CAF50"/>
<path d="M21 14l-6-6-6 6-6-6v8h18z" fill="#FFC107"/>
</svg>
</div>
<div class="label">Gallery</div>
</div>
<div class="app">
<div class="icon" style="background:#1f78bd;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<circle cx="12" cy="12" r="8"/>
<text x="12" y="15" font-size="10" text-anchor="middle" fill="#1f78bd" font-weight="700">B</text>
</svg>
</div>
<div class="label">SNCB Inter...</div>
</div>
<div class="app">
<div class="icon" style="background:#e12284;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<path d="M12 4c4 0 7 3 7 7 0 5-7 9-7 9s-7-4-7-9c0-4 3-7 7-7z"/>
</svg>
</div>
<div class="label">Rome2Rio</div>
</div>
<div class="app">
<div class="icon" style="background:#f0626e;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<rect x="3" y="10" width="18" height="7" rx="2"/>
<circle cx="7" cy="18" r="2"/>
<circle cx="17" cy="18" r="2"/>
</svg>
</div>
<div class="label">redBus</div>
</div>
<!-- Row 3 -->
<div class="app">
<div class="icon" style="background:#2ebf68;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<path d="M5 12h10l-3-3 1.5-1.5L19 12l-5.5 4.5L12 15l3-3H5z"/>
</svg>
</div>
<div class="label">Citymapper</div>
</div>
<div class="app">
<div class="icon" style="background:#18bfa3;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<rect x="5" y="5" width="14" height="14" rx="7"/>
<text x="12" y="15" font-size="8" text-anchor="middle" fill="#18bfa3" font-weight="700">train</text>
</svg>
</div>
<div class="label">Trainline</div>
</div>
<div class="app">
<div class="icon" style="background:#ffffff;">
<svg width="90" height="90" viewBox="0 0 24 24">
<circle cx="12" cy="9" r="4" fill="#8BC34A"/>
<path d="M4 20c2.5-4 6.5-4 8-4s5.5 0 8 4" fill="#8BC34A"/>
</svg>
</div>
<div class="label">Wanderu</div>
</div>
<div class="app">
<div class="icon" style="background:#f03a55;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#000;">
<rect x="6" y="6" width="12" height="12" rx="4" fill="#000"/>
<rect x="9" y="9" width="6" height="6" rx="2" fill="#f03a55"/>
</svg>
</div>
<div class="label">Rail Europe</div>
</div>
<!-- Row 4 -->
<div class="app">
<div class="icon" style="background:#2d74c6;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#fff;">
<path d="M4 16l16-8v4l-16 8v-4z"/>
</svg>
</div>
<div class="label">GVB</div>
</div>
<div class="app">
<div class="icon" style="background:#111827;">
<svg width="90" height="90" viewBox="0 0 24 24">
<circle cx="9" cy="12" r="5" fill="#7dd3fc"/>
<circle cx="16" cy="12" r="5" fill="#ffffff"/>
</svg>
</div>
<div class="label">SNCF Conn...</div>
</div>
<div class="app">
<div class="icon" style="background:#ff6e1e;">
<svg width="90" height="90" viewBox="0 0 24 24">
<path d="M12 4l6 6-6 6-6-6 6-6z" fill="#fff"/>
<circle cx="12" cy="12" r="2" fill="#ff6e1e"/>
</svg>
</div>
<div class="label">Moovit</div>
</div>
<div class="app">
<div class="icon" style="background:#1a73e8;">
<svg width="90" height="90" viewBox="0 0 24 24" style="fill:#ffd54f;">
<path d="M12 3l5 5-5 5-5-5 5-5z"/>
<rect x="11" y="13" width="2" height="8" fill="#ffd54f"/>
</svg>
</div>
<div class="label">Busbud</div>
</div>
</div>
<!-- Dock icons -->
<div class="dock">
<div class="dock-icon">
<!-- Phone -->
<svg viewBox="0 0 24 24" fill="#1a73e8">
<path d="M6.6 10.8c2.1 3.9 5.7 6.5 8.2 6.6l2.1-2.1c.3-.3.4-.8.2-1.2l-2-3.6c-.3-.5-.9-.6-1.3-.3l-1.7 1.3c-1.1-.6-2.1-1.6-2.8-2.8l1.3-1.7c.3-.4.2-1-.3-1.3L8.7 3.1c-.4-.2-.9-.1-1.2.2L5.4 5.4c-.4.4-.6 1-.4 1.5 0 0 .2 1.6 1.6 3.9z"/>
</svg>
</div>
<div class="dock-icon">
<!-- Messages -->
<svg viewBox="0 0 24 24" fill="#1a73e8">
<path d="M4 4h16v12H7l-3 3V4z"/>
<circle cx="9" cy="10" r="1.5" fill="#fff"/>
<circle cx="13" cy="10" r="1.5" fill="#fff"/>
<circle cx="17" cy="10" r="1.5" fill="#fff"/>
</svg>
</div>
<div class="dock-icon">
<!-- Chrome (simple) -->
<svg viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9" fill="#4CAF50"/>
<path d="M12 12l9-0c0-5-4-9-9-9" fill="#F44336"/>
<path d="M3 12c0 5 4 9 9 9l-4.5-7.8" fill="#FFC107"/>
<circle cx="12" cy="12" r="4" fill="#1E88E5"/>
</svg>
</div>
<div class="dock-icon">
<!-- Camera -->
<svg viewBox="0 0 24 24" fill="#333">
<path d="M7 6h3l2-2h4l2 2h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3z" fill="#9e9e9e"/>
<circle cx="12" cy="13" r="4" fill="#2196F3"/>
</svg>
</div>
</div>
<!-- Search pill -->
<div class="search-bar">
<div class="search-left">
<div class="g-badge">G</div>
<div class="search-placeholder">Search...</div>
</div>
<div class="search-right">
<div class="pill-btn" title="Voice">
<svg viewBox="0 0 24 24"><path d="M12 3a4 4 0 0 1 4 4v5a4 4 0 0 1-8 0V7a4 4 0 0 1 4-4zm-1 15.9V21h2v-2.1a7 7 0 0 0 6-6.9h-2a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9z"/></svg>
</div>
<div class="pill-btn" title="Lens">
<svg viewBox="0 0 24 24"><path d="M9 4h6a5 5 0 0 1 5 5v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5V9a5 5 0 0 1 5-5zm0 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H9zm3 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7z"/></svg>
</div>
</div>
</div>
<!-- Gesture bar -->
<div class="gesture"></div>
</div>
</body>
</html>