AndroidCode / code /10155 /10155_7.html
yhzheng1031's picture
Add files using upload-large-folder tool
ff1f000 verified
raw
history blame
7.24 kB
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Date Picker Mock</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
#render-target {
width: 1080px;
height: 2400px;
position: relative;
overflow: hidden;
background: #0F0F12;
color: #EDE7F6;
}
/* Status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 96px;
color: #CFC5E8;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 28px;
box-sizing: border-box;
}
.status-time { font-size: 34px; letter-spacing: 0.5px; }
.status-icons { display: flex; gap: 22px; align-items: center; }
.icon-dot {
width: 10px; height: 10px; background: #CFC5E8; border-radius: 50%;
display: inline-block;
}
/* Dimmed app background content */
.app-header {
position: absolute;
top: 140px;
left: 56px;
right: 56px;
height: 120px;
color: #B7AEC9;
font-size: 64px;
opacity: 0.25;
}
.pill-save {
position: absolute;
right: 56px;
top: 200px;
background: #705A86;
color: #F1E8FF;
padding: 20px 36px;
border-radius: 40px;
font-size: 38px;
opacity: 0.35;
}
/* Modal sheet */
.dialog {
position: absolute;
left: 50%;
top: 430px;
transform: translateX(-50%);
width: 980px;
background: #2B272E;
border-radius: 44px;
box-shadow: 0 24px 80px rgba(0,0,0,0.6);
padding: 44px 48px 36px;
box-sizing: border-box;
}
.dialog h2 {
margin: 0 0 26px 0;
font-size: 40px;
color: #CFC7DB;
font-weight: 600;
}
.date-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.big-date {
font-size: 78px;
line-height: 1.05;
letter-spacing: 1px;
color: #F0E9FF;
font-weight: 600;
display: flex;
align-items: center;
gap: 18px;
}
.icon-btn {
width: 52px;
height: 52px;
border-radius: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
}
.month-row {
display: flex;
align-items: center;
justify-content: space-between;
color: #CFC7DB;
margin: 18px 0 12px 0;
}
.month-left {
display: flex;
align-items: center;
gap: 12px;
font-size: 40px;
}
.month-right {
display: flex;
align-items: center;
gap: 26px;
}
.chev {
width: 60px; height: 60px; border-radius: 16px;
background: #2F2A33;
display: inline-flex; align-items: center; justify-content: center;
border: 1px solid rgba(255,255,255,0.06);
}
.weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
margin-top: 14px;
margin-bottom: 4px;
color: #9D95AA;
font-size: 32px;
text-align: center;
letter-spacing: 2px;
}
.calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 18px 14px;
margin-top: 22px;
padding-bottom: 36px;
}
.day {
width: 116px;
height: 116px;
margin: 0 auto;
border-radius: 58px;
display: flex; align-items: center; justify-content: center;
font-size: 40px;
color: #E7DCF7;
transition: 0.2s;
}
.day-muted { color: #7C738A; }
.day-outline {
border: 2px solid #B99DDC;
color: #EBDDFF;
}
.day-selected {
background: #C9A5F0;
color: #2B2233;
font-weight: 700;
}
.actions {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 16px;
border-top: 1px solid rgba(255,255,255,0.06);
}
.btn {
font-size: 42px;
padding: 16px 8px;
color: #CFC7DB;
}
.btn.ok { color: #D0B5FF; font-weight: 600; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div class="status-time">8:40</div>
<div class="status-icons">
<span class="icon-dot"></span>
<span class="icon-dot"></span>
<span class="icon-dot"></span>
<span class="icon-dot"></span>
</div>
</div>
<!-- Dimmed background content (app behind dialog) -->
<div class="app-header">Transport</div>
<div class="pill-save">Save</div>
<!-- Dialog -->
<div class="dialog">
<h2>Select Date</h2>
<div class="date-row">
<div class="big-date">Jul 25, 2023
<span class="icon-btn" aria-label="edit">
<svg width="40" height="40" viewBox="0 0 24 24" fill="#C9B6E7">
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92l9.06-9.06.92.92L5.92 19.58zM20.71 7.04a1.003 1.003 0 0 0 0-1.42l-2.34-2.34a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/>
</svg>
</span>
</div>
</div>
<div class="month-row">
<div class="month-left">
<span>July 2023</span>
<svg width="28" height="28" viewBox="0 0 24 24" fill="#CFC7DB">
<path d="M7 10l5 5 5-5H7z"/>
</svg>
</div>
<div class="month-right">
<div class="chev" aria-label="prev">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#CFC7DB">
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</svg>
</div>
<div class="chev" aria-label="next">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#CFC7DB">
<path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/>
</svg>
</div>
</div>
</div>
<div class="weekdays">
<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">
<!-- Week 1 -->
<div class="day day-muted"></div>
<div class="day day-muted"></div>
<div class="day day-muted"></div>
<div class="day day-muted"></div>
<div class="day">1</div>
<div class="day">2</div>
<div class="day">3</div>
<!-- Week 2 -->
<div class="day">4</div>
<div class="day">5</div>
<div class="day">6</div>
<div class="day">7</div>
<div class="day">8</div>
<div class="day">9</div>
<div class="day">10</div>
<!-- Week 3 -->
<div class="day">11</div>
<div class="day">12</div>
<div class="day">13</div>
<div class="day">14</div>
<div class="day">15</div>
<div class="day">16</div>
<div class="day">17</div>
<!-- Week 4 -->
<div class="day">18</div>
<div class="day">19</div>
<div class="day">20</div>
<div class="day">21</div>
<div class="day">22</div>
<div class="day day-outline">24</div>
<div class="day day-selected">25</div>
<!-- Week 5 -->
<div class="day">26</div>
<div class="day">27</div>
<div class="day">28</div>
<div class="day">29</div>
<div class="day">30</div>
<div class="day">31</div>
<div class="day day-muted"></div>
</div>
<div class="actions">
<div class="btn">Cancel</div>
<div class="btn ok">OK</div>
</div>
</div>
</div>
</body>
</html>