AndroidCode / code /10155 /10155_6.html
yhzheng1031's picture
Add files using upload-large-folder tool
ff1f000 verified
raw
history blame
7.64 kB
<html>
<head>
<meta charset="UTF-8">
<title>Date Picker UI</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:#0f0f12;
color:#e6e0ee;
}
/* Status bar */
.status-bar {
position:absolute; top:0; left:0; right:0;
height:90px; padding:0 28px;
display:flex; align-items:center; justify-content:space-between;
color:#ffffff;
font-size:36px; letter-spacing:1px;
}
.status-icons { display:flex; gap:18px; align-items:center; }
.status-dot { width:10px; height:10px; background:#fff; border-radius:50%; opacity:0.8; }
/* Underlying screen content */
.screen-header {
position:absolute; top:180px; left:80px;
color:#cfc6da; font-size:68px; font-weight:600;
}
.close-x {
position:absolute; top:140px; left:32px;
width:60px; height:60px; border-radius:30px;
display:flex; align-items:center; justify-content:center;
color:#bdb2cb; font-size:52px;
}
.save-btn {
position:absolute; top:170px; right:80px;
background:#7b5ea6; color:#eadcf8;
padding:24px 40px; border-radius:40px; font-size:42px; font-weight:600;
}
/* Faint underlying rows */
.under-row {
position:absolute; left:80px; right:80px;
height:120px; border-radius:20px;
background:rgba(255,255,255,0.03);
color:#a89ab8; font-size:40px; display:flex; align-items:center;
padding:0 28px;
}
.under-row:nth-child(1) { top:380px; }
.under-row:nth-child(2) { top:520px; }
.under-row:nth-child(3) { top:660px; }
.under-row:nth-child(4) { top:800px; }
/* Modal date picker */
.modal {
position:absolute; left:80px; top:540px;
width:920px; height:1150px; border-radius:56px;
background:#2a2630; box-shadow:0 40px 120px rgba(0,0,0,0.55);
padding:48px 52px;
}
.modal-title {
font-size:40px; color:#c9bfd2; margin-bottom:36px;
}
.big-date {
display:flex; align-items:center; justify-content:space-between;
margin-bottom:32px;
}
.big-date .text { font-size:76px; font-weight:600; color:#e7e1ee; }
.icon-btn { width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.month-row {
display:flex; align-items:center; justify-content:flex-start;
gap:20px; margin:10px 0 30px 0; color:#d5cbe2;
}
.month-label { font-size:40px; }
.chevrons { margin-left:auto; display:flex; gap:24px; }
.weekday {
display:grid; grid-template-columns: repeat(7, 1fr);
color:#bfb4c8; font-size:36px; text-align:center;
margin-top:26px; padding:12px 6px;
}
.calendar {
display:grid; grid-template-columns: repeat(7, 1fr);
grid-auto-rows:120px; gap:8px; margin-top:12px;
color:#e6e0ee;
}
.cell {
display:flex; align-items:center; justify-content:center;
font-size:44px;
}
.cell.dim { color:#6e647a; }
.cell .pill {
width:120px; height:120px;
display:flex; align-items:center; justify-content:center;
background:#caa7f0; color:#2a2630; border-radius:60px; font-weight:700;
}
.modal-actions {
position:absolute; bottom:40px; left:52px; right:52px;
display:flex; justify-content:flex-end; gap:40px;
font-size:44px; color:#d9cfe6;
}
.action-btn { padding:12px 8px; }
.ok { color:#e8defa; font-weight:700; }
/* Simple inline dropdown caret */
.caret {
width:28px; height:20px; margin-left:10px;
border-left:10px solid transparent; border-right:10px solid transparent;
border-top:12px solid #c9bfd2;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div>8:39</div>
<div class="status-icons">
<svg width="34" height="34" viewBox="0 0 24 24">
<path d="M3 18h18v2H3zM6 14h12v2H6zM9 10h6v2H9zM11 6h2v2h-2z" fill="#ffffff"/>
</svg>
<svg width="34" height="34" viewBox="0 0 24 24">
<path d="M4 7h16v10H4z" fill="none" stroke="#ffffff" stroke-width="2"/>
<rect x="6" y="9" width="12" height="6" fill="#ffffff"/>
</svg>
<svg width="34" height="34" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9" stroke="#ffffff" stroke-width="2" fill="none"/>
<path d="M12 7v5l4 2" stroke="#ffffff" stroke-width="2" fill="none" stroke-linecap="round"/>
</svg>
<div class="status-dot"></div>
<svg width="34" height="34" viewBox="0 0 24 24">
<path d="M12 3l8 8h-5v8H9v-8H4z" fill="#ffffff"/>
</svg>
<svg width="34" height="34" viewBox="0 0 24 24">
<path d="M6 20h12V4H6v16zm2-2V6h8v12H8z" fill="#ffffff"/>
</svg>
</div>
</div>
<!-- Underlying content -->
<div class="close-x">×</div>
<div class="screen-header">Transport</div>
<div class="save-btn">Save</div>
<div class="under-row">Events</div>
<div class="under-row">30 minutes before</div>
<div class="under-row">Add notification</div>
<div class="under-row">Default color</div>
<!-- Modal Date Picker -->
<div class="modal">
<div class="modal-title">Select Date</div>
<div class="big-date">
<div class="text">Jul 24, 2023</div>
<div class="icon-btn">
<svg width="54" height="54" viewBox="0 0 24 24">
<path d="M3 17v4h4l10-10-4-4L3 17z" fill="none" stroke="#d7cde5" stroke-width="2"/>
<path d="M14 3l4 4" stroke="#d7cde5" stroke-width="2" fill="none"/>
</svg>
</div>
</div>
<div class="month-row">
<div class="month-label">July 2023</div>
<div class="caret"></div>
<div class="chevrons">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M15 6L9 12l6 6" stroke="#c9bfd2" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M9 6l6 6-6 6" stroke="#c9bfd2" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
<div class="weekday">
<div>S</div><div>M</div><div>T</div><div>W</div><div>T</div><div>F</div><div>S</div>
</div>
<div class="calendar">
<div class="cell dim"></div>
<div class="cell dim"></div>
<div class="cell dim"></div>
<div class="cell dim"></div>
<div class="cell dim"></div>
<div class="cell dim"></div>
<div class="cell">1</div>
<div class="cell">2</div><div class="cell">3</div><div class="cell">4</div><div class="cell">5</div>
<div class="cell">6</div><div class="cell">7</div><div class="cell">8</div>
<div class="cell">9</div><div class="cell">10</div><div class="cell">11</div><div class="cell">12</div>
<div class="cell">13</div><div class="cell">14</div><div class="cell">15</div>
<div class="cell">16</div><div class="cell">17</div><div class="cell">18</div><div class="cell">19</div>
<div class="cell">20</div><div class="cell">21</div><div class="cell">22</div>
<div class="cell">23</div>
<div class="cell"><div class="pill">24</div></div>
<div class="cell">25</div><div class="cell">26</div><div class="cell">27</div>
<div class="cell">28</div><div class="cell">29</div>
<div class="cell">30</div><div class="cell">31</div>
<div class="cell dim"></div><div class="cell dim"></div><div class="cell dim"></div>
<div class="cell dim"></div><div class="cell dim"></div>
</div>
<div class="modal-actions">
<div class="action-btn">Cancel</div>
<div class="action-btn ok">OK</div>
</div>
</div>
</div>
</body>
</html>