AndroidCode / code /10138 /10138_4.html
yhzheng1031's picture
Add files using upload-large-folder tool
c32f9a6 verified
raw
history blame
11.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Audio Player UI</title>
<style>
body { margin: 0; padding: 0; background: transparent; }
#render-target {
position: relative;
overflow: hidden;
width: 1080px;
height: 2400px;
background: #ffffff;
font-family: Arial, Helvetica, sans-serif;
color: #212121;
}
/* Top status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 110px;
background: #1976d2; /* within app bar color */
color: #fff;
display: flex;
align-items: center;
padding: 0 36px;
box-sizing: border-box;
font-size: 34px;
}
.status-bar .left { flex: 1; }
.status-icons {
display: flex;
align-items: center;
gap: 28px;
}
.status-dot {
width: 28px; height: 28px; background: #fff; border-radius: 50%;
opacity: 0.9;
}
.battery {
width: 44px; height: 24px; border: 3px solid #fff; border-radius: 4px; position: relative;
}
.battery::after {
content: '';
position: absolute; right: -10px; top: 6px; width: 6px; height: 12px; background: #fff; border-radius: 2px;
}
.battery .level {
position: absolute; left: 3px; top: 3px; height: 16px; width: 26px; background: #fff;
}
/* App bar */
.appbar {
position: absolute;
top: 110px;
left: 0;
width: 1080px;
height: 360px;
background: #1976d2;
color: #fff;
box-sizing: border-box;
padding: 24px 36px;
}
.appbar .top-row {
display: flex;
justify-content: flex-end;
gap: 36px;
margin-top: 8px;
}
.icon-btn svg { width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 48; }
.title {
font-size: 70px;
font-weight: 600;
margin-top: 40px;
}
.tabs {
display: flex;
justify-content: space-between;
margin-top: 36px;
letter-spacing: 4px;
font-weight: 600;
}
.tab {
font-size: 40px;
opacity: 0.8;
}
.tab.active {
opacity: 1;
position: relative;
}
.tab.active::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: -16px;
height: 6px;
background: #fff;
border-radius: 3px;
}
/* Ad/thumbnail carousel */
.carousel {
position: absolute;
top: 470px;
left: 0;
width: 1080px;
height: 160px;
background: #f4f7f9;
border-top: 6px solid #e5eef5;
border-bottom: 6px solid #e5eef5;
display: flex;
align-items: center;
padding: 0 20px;
box-sizing: border-box;
gap: 18px;
}
.thumb {
width: 185px;
height: 120px;
background: #E0E0E0;
border: 1px solid #BDBDBD;
border-radius: 10px;
box-shadow: 0 0 0 1px rgba(0,0,0,0.05) inset;
display: flex;
align-items: center;
justify-content: center;
color: #757575;
font-size: 26px;
position: relative;
}
.price {
position: absolute;
bottom: -18px;
right: 10px;
background: #fff;
border: 1px solid #d0d0d0;
border-radius: 16px;
padding: 3px 12px;
font-size: 26px;
color: #333;
box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
/* File card */
.file-card {
position: absolute;
top: 630px;
left: 0;
width: 1080px;
background: #1976d2;
color: #fff;
border-radius: 0 0 10px 10px;
box-sizing: border-box;
padding: 26px 36px 30px;
}
.file-title {
font-size: 46px;
font-weight: 600;
margin-bottom: 10px;
}
.file-sub {
font-size: 30px;
opacity: 0.9;
}
.file-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.file-meta {
text-align: right;
margin-top: 8px;
}
.file-meta .dur { font-size: 40px; font-weight: 600; }
.file-meta .size { font-size: 30px; opacity: 0.9; margin-top: 6px; }
.file-actions {
display: flex;
gap: 42px;
margin-top: 24px;
justify-content: flex-end;
}
.action svg { width: 54px; height: 54px; stroke: #fff; fill: none; stroke-width: 52; }
/* Content filler area */
.content {
position: absolute;
top: 820px;
left: 0;
width: 1080px;
height: 1220px;
background: #ffffff;
}
/* Playback bar */
.player {
position: absolute;
bottom: 90px;
left: 0;
width: 1080px;
height: 200px;
background: #1976d2;
color: #fff;
box-sizing: border-box;
padding: 28px 36px;
}
.player .time-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.time-pill {
border: 3px solid #fff;
color: #fff;
border-radius: 18px;
padding: 10px 18px;
font-size: 34px;
min-width: 120px;
text-align: center;
}
.track {
position: relative;
height: 10px;
background: rgba(255,255,255,0.5);
margin: 26px 0;
border-radius: 5px;
}
.progress {
position: absolute;
left: 0;
top: 0;
height: 10px;
width: 260px;
background: #fff;
border-radius: 5px;
}
.knob {
position: absolute;
left: 240px;
top: -10px;
width: 28px;
height: 28px;
background: #fff;
border-radius: 50%;
}
.play-btn {
width: 100px; height: 100px; border-radius: 50%;
border: 6px solid #fff; margin: 0 auto;
display: flex; align-items: center; justify-content: center;
}
.play-btn svg { width: 52px; height: 52px; fill: #fff; }
/* Snackbar/toast */
.snackbar {
position: absolute;
left: 60px;
right: 60px;
bottom: 260px;
background: #333;
color: #fff;
border-radius: 18px;
padding: 28px;
font-size: 34px;
box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
/* Home indicator */
.home-indicator {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
width: 240px;
height: 12px;
background: #bbb;
border-radius: 6px;
opacity: 0.8;
}
/* Utility */
.muted { color: #757575; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div class="left">2:34</div>
<div class="status-icons">
<!-- simple placeholders for status icons -->
<div class="status-dot" title="Signal"></div>
<div class="status-dot" title="Notifications"></div>
<div class="battery"><div class="level"></div></div>
</div>
</div>
<!-- App bar -->
<div class="appbar">
<div class="top-row">
<div class="icon-btn" title="Search">
<svg viewBox="0 0 1000 1000">
<circle cx="420" cy="420" r="300" stroke="#fff" stroke-width="60" fill="none"></circle>
<line x1="650" y1="650" x2="900" y2="900" stroke="#fff" stroke-width="80"></line>
</svg>
</div>
<div class="icon-btn" title="Sort">
<svg viewBox="0 0 1000 1000">
<line x1="140" y1="250" x2="860" y2="250" stroke="#fff" stroke-width="80"></line>
<line x1="240" y1="500" x2="760" y2="500" stroke="#fff" stroke-width="80"></line>
<line x1="340" y1="750" x2="660" y2="750" stroke="#fff" stroke-width="80"></line>
</svg>
</div>
<div class="icon-btn" title="More">
<svg viewBox="0 0 1000 1000">
<circle cx="500" cy="250" r="70" fill="#fff"></circle>
<circle cx="500" cy="500" r="70" fill="#fff"></circle>
<circle cx="500" cy="750" r="70" fill="#fff"></circle>
</svg>
</div>
</div>
<div class="title">Playback paused</div>
<div class="tabs">
<div class="tab">RECORD</div>
<div class="tab active">LISTEN</div>
</div>
</div>
<!-- Horizontal carousel -->
<div class="carousel">
<div class="thumb" style="width:120px;">
<div>[IMG: App icon]</div>
</div>
<div class="thumb"><div>[IMG: Microwave]</div><div class="price">₹436</div></div>
<div class="thumb"><div>[IMG: Chair]</div><div class="price">₹108</div></div>
<div class="thumb"><div>[IMG: Landscape]</div><div class="price">₹543</div></div>
<div class="thumb"><div>[IMG: Smart TV]</div><div class="price">₹1,126</div></div>
<div class="thumb"><div>[IMG: Side table]</div><div class="price">₹108</div></div>
<div class="thumb"><div>[IMG: Sofa]</div><div class="price">₹326</div></div>
</div>
<!-- File card -->
<div class="file-card">
<div class="file-row">
<div>
<div class="file-title">renewable energy lecture.m4a</div>
<div class="file-sub">November 22, 11:28 AM</div>
</div>
<div class="file-meta">
<div class="dur">01:35</div>
<div class="size">1.1 MB</div>
</div>
</div>
<div class="file-actions">
<!-- Share -->
<div class="action" title="Share">
<svg viewBox="0 0 1000 1000">
<circle cx="220" cy="780" r="110" fill="none" stroke="#fff"></circle>
<circle cx="780" cy="220" r="110" fill="none" stroke="#fff"></circle>
<circle cx="780" cy="780" r="110" fill="none" stroke="#fff"></circle>
<line x1="320" y1="720" x2="680" y2="300" stroke="#fff" stroke-width="90"></line>
<line x1="680" y1="700" x2="320" y2="760" stroke="#fff" stroke-width="90"></line>
</svg>
</div>
<!-- Delete -->
<div class="action" title="Delete">
<svg viewBox="0 0 1000 1000">
<rect x="260" y="320" width="480" height="520" stroke="#fff" fill="none" stroke-width="80"></rect>
<line x1="300" y1="280" x2="700" y2="280" stroke="#fff" stroke-width="80"></line>
<line x1="420" y1="220" x2="580" y2="220" stroke="#fff" stroke-width="80"></line>
</svg>
</div>
<!-- Edit -->
<div class="action" title="Edit">
<svg viewBox="0 0 1000 1000">
<polygon points="220,780 360,760 780,340 660,220 240,640" stroke="#fff" fill="none" stroke-width="80"></polygon>
<line x1="620" y1="180" x2="820" y2="380" stroke="#fff" stroke-width="80"></line>
</svg>
</div>
<!-- More -->
<div class="action" title="More">
<svg viewBox="0 0 1000 1000">
<circle cx="500" cy="300" r="70" fill="#fff"></circle>
<circle cx="500" cy="520" r="70" fill="#fff"></circle>
<circle cx="500" cy="740" r="70" fill="#fff"></circle>
</svg>
</div>
</div>
</div>
<!-- Content area -->
<div class="content"></div>
<!-- Playback bar -->
<div class="player">
<div class="time-row">
<div class="time-pill">00:05</div>
<div class="time-pill" style="opacity:0;">spacer</div>
<div class="time-pill">01:35</div>
</div>
<div class="track">
<div class="progress"></div>
<div class="knob"></div>
</div>
<div class="play-btn" title="Play/Pause">
<svg viewBox="0 0 100 100">
<polygon points="30,20 80,50 30,80" fill="#fff"></polygon>
</svg>
</div>
</div>
<!-- Snackbar -->
<div class="snackbar">
Renamed “renewable energy lecture practice.m4a” to “renewable energy lecture.m4a”
</div>
<!-- Home indicator -->
<div class="home-indicator"></div>
</div>
</body>
</html>