AndroidCode / code /10155 /10155_11.html
yhzheng1031's picture
Add files using upload-large-folder tool
ff1f000 verified
raw
history blame
8.95 kB
<html>
<head>
<meta charset="UTF-8">
<title>Mobile UI - Time Picker</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;
background: #141418;
border-radius: 0;
}
/* Status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 120px;
color: #D9D9D9;
font-size: 42px;
display: flex;
align-items: center;
padding: 0 40px;
box-sizing: border-box;
}
.status-bar .right-icons {
margin-left: auto;
display: flex;
gap: 24px;
align-items: center;
}
.icon-battery, .icon-wifi {
width: 56px; height: 32px;
border: 2px solid #D9D9D9;
border-radius: 6px;
position: relative;
}
.icon-battery::after {
content: "";
position: absolute;
right: -8px; top: 8px;
width: 8px; height: 16px;
background: #D9D9D9; border-radius: 2px;
}
.icon-wifi {
border: none;
}
.icon-wifi::before {
content: "";
position: absolute; inset: 0;
background: radial-gradient(circle at 50% 60%, rgba(217,217,217,0.9) 0 6px, transparent 7px),
radial-gradient(circle at 50% 60%, rgba(217,217,217,0.7) 0 12px, transparent 13px),
radial-gradient(circle at 50% 60%, rgba(217,217,217,0.5) 0 18px, transparent 19px);
}
/* App header */
.app-header {
position: absolute;
top: 140px;
left: 40px;
right: 40px;
height: 140px;
display: flex;
align-items: center;
color: #F2F2F2;
}
.close-btn {
width: 72px; height: 72px;
border-radius: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #CFCFCF;
border: 2px solid #3A3A42;
margin-right: 20px;
}
.close-btn svg { width: 36px; height: 36px; }
.title {
font-size: 88px;
letter-spacing: 1px;
flex: 1;
}
.save-pill {
background: #8E76D6;
color: white;
padding: 26px 44px;
border-radius: 48px;
font-size: 46px;
box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
/* Event details (background content) */
.details {
position: absolute;
top: 320px;
left: 40px;
right: 40px;
color: #BFBFC7;
font-size: 46px;
}
.detail-row {
display: flex;
align-items: center;
gap: 24px;
padding: 22px 0;
}
.dot {
width: 30px; height: 30px; border-radius: 50%; background: #4CA3FF;
}
.label-strong { color: #E6E6EB; }
.left-icon {
width: 62px; height: 62px; border-radius: 31px; background: #23232A;
display: inline-flex; align-items: center; justify-content: center; color: #8E8EA3; margin-right: 8px;
}
/* Scrim + Modal */
.scrim {
position: absolute; inset: 0;
background: rgba(0,0,0,0.55);
}
.modal {
position: absolute;
left: 80px;
top: 720px;
width: 920px;
height: 1100px;
background: #2A2432;
border-radius: 48px;
box-shadow: 0 40px 120px rgba(0,0,0,0.6);
color: #ECEAF6;
padding: 52px;
box-sizing: border-box;
}
.modal-title {
font-size: 48px;
color: #DCD8EA;
margin-bottom: 40px;
}
/* Time display row */
.time-row {
display: grid;
grid-template-columns: 1fr 40px 1fr 160px;
align-items: center;
gap: 26px;
margin-bottom: 30px;
}
.time-box {
height: 190px;
border-radius: 28px;
display: flex;
align-items: center;
justify-content: center;
font-size: 128px;
font-weight: bold;
letter-spacing: 4px;
}
.hour-box { background: #3A3542; color: #EDE8F8; }
.minute-box { background: #7E63C8; color: #F5EDFF; }
.time-colon {
font-size: 140px; color: #CFC1E8; text-align: center;
}
.ampm {
display: flex; flex-direction: column; gap: 16px;
}
.ampm .btn {
height: 90px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
font-size: 48px; font-weight: 700;
background: #3A3542; color: #EDE8F8;
border: 2px solid #524B60;
}
.ampm .btn.active {
background: #8E76D6; color: white; border-color: transparent;
}
.ampm .btn.inactive {
background: #5B4E69; color: #E8DDF7;
}
/* Dial */
.dial {
position: relative;
margin: 30px auto 0 auto;
width: 760px; height: 760px;
background: radial-gradient(circle at 50% 50%, #30283A 0%, #2A2432 70%);
border-radius: 50%;
border: 1px solid #4B4358;
}
.dial .number {
position: absolute; color: #DCD3EB; font-size: 54px;
}
/* Place minute numbers around the circle (approximate positions) */
.n05 { left: 570px; top: 60px; }
.n10 { left: 655px; top: 180px; }
.n15 { left: 700px; top: 330px; }
.n20 { left: 655px; top: 480px; }
.n25 { left: 565px; top: 600px; }
.n30 { left: 360px; top: 680px; }
.n35 { left: 160px; top: 600px; }
.n40 { left: 70px; top: 480px; }
.n45 { left: 30px; top: 330px; }
.n50 { left: 70px; top: 180px; }
.n55 { left: 160px; top: 60px; }
/* Center top "00" bubble and pointer line */
.bubble-00 {
position: absolute;
left: 330px; top: 20px;
width: 100px; height: 100px;
border-radius: 50%;
background: #D7C8F7;
color: #2A2432; font-weight: 800; font-size: 48px;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}
.pointer {
position: absolute;
left: 380px; top: 120px;
width: 6px; height: 520px;
background: #D7C8F7;
}
.pointer-end {
position: absolute;
left: 352px; top: 620px;
width: 56px; height: 56px; border-radius: 50%;
background: #D7C8F7;
}
/* Modal footer */
.footer {
position: absolute; bottom: 40px; left: 52px; right: 52px;
display: flex; justify-content: space-between; align-items: center;
}
.kbd {
width: 120px; height: 72px; border-radius: 12px;
background: #3A3542; color: #CFC7DE; font-size: 36px;
display: flex; align-items: center; justify-content: center;
border: 2px solid #524B60;
}
.actions {
display: flex; gap: 40px; font-size: 48px; font-weight: 700;
color: #B9A9E6;
}
.actions .ghost { color: #CFC1E8; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div>8:42</div>
<div class="right-icons">
<div class="icon-wifi"></div>
<div class="icon-battery"></div>
</div>
</div>
<!-- App header -->
<div class="app-header">
<div class="close-btn" title="Close">
<svg viewBox="0 0 24 24">
<path d="M6 6 L18 18 M18 6 L6 18" stroke="#CFCFCF" stroke-width="2" fill="none" stroke-linecap="round"/>
</svg>
</div>
<div class="title">Transport</div>
<div class="save-pill">Save</div>
</div>
<!-- Background details (partially visible behind modal) -->
<div class="details">
<div class="detail-row">
<div class="left-icon">๐Ÿ—“๏ธ</div>
<div class="dot"></div>
<div class="label-strong">Events</div>
</div>
<div class="detail-row" style="padding-left: 86px;">
dbwscratch.test.id4@gmail.com
</div>
<div class="detail-row">
<div class="left-icon">โฐ</div>
<span>Time</span>
</div>
<div class="detail-row">
<div class="left-icon">๐Ÿ”</div>
<span>Does not repeat</span>
</div>
<div class="detail-row">
<div class="left-icon">๐Ÿ‘ฅ</div>
<span>Add guests</span>
</div>
<div class="detail-row">
<div class="left-icon">๐Ÿ“</div>
<span>Add location</span>
</div>
<div class="detail-row">
<div class="left-icon">๐Ÿ””</div>
<span>30 minutes before</span>
</div>
</div>
<!-- Scrim and modal time picker -->
<div class="scrim"></div>
<div class="modal">
<div class="modal-title">Select time</div>
<div class="time-row">
<div class="time-box hour-box">02</div>
<div class="time-colon">:</div>
<div class="time-box minute-box">00</div>
<div class="ampm">
<div class="btn active">AM</div>
<div class="btn inactive">PM</div>
</div>
</div>
<div class="dial">
<div class="bubble-00">00</div>
<div class="pointer"></div>
<div class="pointer-end"></div>
<div class="number n05">05</div>
<div class="number n10">10</div>
<div class="number n15">15</div>
<div class="number n20">20</div>
<div class="number n25">25</div>
<div class="number n30">30</div>
<div class="number n35">35</div>
<div class="number n40">40</div>
<div class="number n45">45</div>
<div class="number n50">50</div>
<div class="number n55">55</div>
</div>
<div class="footer">
<div class="kbd">โŒจ</div>
<div class="actions">
<div class="ghost">Cancel</div>
<div>OK</div>
</div>
</div>
</div>
</div>
</body>
</html>