AndroidCode / code /10077 /10077_2.html
yhzheng1031's picture
Add files using upload-large-folder tool
fa881a6 verified
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Khan Academy - Mock Mobile UI</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: "Segoe UI", Arial, sans-serif; }
#render-target {
width: 1080px; height: 2400px; position: relative; overflow: hidden;
background: #ffffff; color: #222;
}
/* Status bar */
.status-bar {
height: 96px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between;
font-size: 32px; color: #2b2b2b;
}
.status-icons { display: flex; align-items: center; gap: 22px; }
.icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* App title row */
.app-title {
height: 120px; display: flex; align-items: center; justify-content: center; position: relative;
font-weight: 700; font-size: 52px; color: #1a1a1a;
}
.gear {
position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
font-size: 48px; color: #1976d2;
}
/* Sections */
.section-title {
font-size: 42px; font-weight: 700; padding: 24px 40px; color: #222;
}
.divider { height: 1px; background: #eceff1; margin: 8px 0; }
/* Lesson item */
.lesson { padding: 24px 40px; display: flex; align-items: flex-start; gap: 24px; position: relative; }
.icon-circle {
width: 104px; height: 104px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
border: 1px solid #cfd8dc; background: #eef7f1; color: #2e7d32; font-size: 48px; flex: 0 0 auto;
}
.icon-circle.yellow { background: #fff5e0; color: #ef6c00; }
.kebab {
width: 58px; height: 58px; border-radius: 14px; background: #f5f5f5; border: 1px solid #e0e0e0;
display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 28px;
}
.lesson .text { flex: 1; }
.meta { color: #6b7280; font-size: 32px; }
.title { font-size: 40px; font-weight: 700; line-height: 1.25; margin-top: 6px; }
/* Courses */
.row-between { display: flex; align-items: center; justify-content: space-between; padding: 8px 40px; }
.link { color: #2563eb; font-size: 36px; }
.course { padding: 24px 40px; display: flex; align-items: center; gap: 28px; }
.course .icon-circle { width: 116px; height: 116px; font-size: 54px; }
.course .label { font-size: 46px; }
/* Promo/Kids card */
.kids-wrap { margin-top: 18px; }
.kids-art {
margin: 0 0; width: 100%; height: 760px; background: #E0E0E0; border: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center; color: #757575; font-size: 40px; position: relative;
}
.close-chip {
position: absolute; right: 28px; top: 24px;
width: 72px; height: 72px; border-radius: 50%; background: #ffffff; border: 1px solid #d0d7de;
display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 40px;
}
.kids-title { text-align: center; font-size: 56px; font-weight: 700; padding-top: 28px; }
.kids-sub { text-align: center; font-size: 38px; color: #374151; padding: 12px 48px 24px; }
/* Bottom nav */
.nav {
position: absolute; bottom: 0; left: 0; width: 100%; height: 180px; background: #fff;
border-top: 1px solid #e5e7eb; display: flex;
}
.nav-item {
flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
color: #6b7280; font-size: 30px;
}
.nav-item .nav-icon { width: 56px; height: 56px; }
.nav-item.active { color: #2563eb; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status Bar -->
<div class="status-bar">
<div>9:06</div>
<div class="status-icons">
<!-- WiFi -->
<svg class="icon" viewBox="0 0 24 24">
<path d="M2 9c5-4 15-4 20 0" stroke="#424242" stroke-width="2" fill="none" stroke-linecap="round"/>
<path d="M5 12c3-3 11-3 14 0" stroke="#424242" stroke-width="2" fill="none" stroke-linecap="round"/>
<path d="M8 15c2-2 6-2 8 0" stroke="#424242" stroke-width="2" fill="none" stroke-linecap="round"/>
<circle cx="12" cy="18" r="1.6" fill="#424242"/>
</svg>
<!-- Battery -->
<svg class="icon" viewBox="0 0 26 24">
<rect x="1" y="6" width="20" height="12" rx="2" ry="2" stroke="#424242" fill="none" stroke-width="2"/>
<rect x="21.5" y="9" width="3.5" height="6" rx="1" fill="#424242"/>
<polygon points="11,8 8,13 12,13 9,18 16,11 12.5,11 14.5,8" fill="#424242"/>
</svg>
</div>
</div>
<!-- Title -->
<div class="app-title">
Khan Academy
<div class="gear">⚙︎</div>
</div>
<!-- Recent lessons -->
<div class="section-title">Recent lessons</div>
<div class="lesson">
<div style="display:flex; align-items:center; gap:16px;">
<div class="icon-circle"></div>
<div class="kebab">
<svg width="16" height="36" viewBox="0 0 6 18">
<circle cx="3" cy="3" r="2" fill="#6b7280"></circle>
<circle cx="3" cy="9" r="2" fill="#6b7280"></circle>
<circle cx="3" cy="15" r="2" fill="#6b7280"></circle>
</svg>
</div>
</div>
<div class="text">
<div class="meta">Units and measurement</div>
<div class="title">Physical quantities and their measurement</div>
</div>
</div>
<div class="divider"></div>
<div class="lesson">
<div style="display:flex; align-items:center; gap:16px;">
<div class="icon-circle yellow"></div>
<div class="kebab">
<svg width="16" height="36" viewBox="0 0 6 18">
<circle cx="3" cy="3" r="2" fill="#6b7280"></circle>
<circle cx="3" cy="9" r="2" fill="#6b7280"></circle>
<circle cx="3" cy="15" r="2" fill="#6b7280"></circle>
</svg>
</div>
</div>
<div class="text">
<div class="meta">Algebraic expressions</div>
<div class="title">Algebraic expressions and polynomials (intro)</div>
</div>
</div>
<!-- My courses -->
<div class="row-between">
<div class="section-title" style="padding: 16px 0 16px 0; margin-left: 40px;">My courses</div>
<div class="link">Edit</div>
</div>
<div class="course">
<div class="icon-circle"></div>
<div class="label">Class 11 Physics (India)</div>
</div>
<!-- Kids Promo -->
<div class="kids-wrap">
<div class="kids-art">
[IMG: Khan Academy Kids illustration]
<div class="close-chip"></div>
</div>
<div class="kids-title">Khan Academy Kids</div>
<div class="kids-sub">Get our free, award-winning app for kids ages 2-8.</div>
</div>
<!-- Bottom Navigation -->
<div class="nav">
<div class="nav-item active">
<svg class="nav-icon" viewBox="0 0 24 24">
<polygon points="12,2 19,6.5 19,17.5 12,22 5,17.5 5,6.5" fill="none" stroke="#2563eb" stroke-width="2"/>
</svg>
<div>Home</div>
</div>
<div class="nav-item">
<svg class="nav-icon" viewBox="0 0 24 24">
<circle cx="11" cy="11" r="7" stroke="#6b7280" stroke-width="2" fill="none"/>
<line x1="17" y1="17" x2="22" y2="22" stroke="#6b7280" stroke-width="2"/>
</svg>
<div>Explore</div>
</div>
<div class="nav-item">
<svg class="nav-icon" viewBox="0 0 24 24">
<path d="M6 3h12v18l-6-3-6 3V3z" fill="none" stroke="#6b7280" stroke-width="2"/>
</svg>
<div>Bookmarks</div>
</div>
</div>
</div>
</body>
</html>