AndroidCode / code /10127 /10127_6.html
yhzheng1031's picture
Add files using upload-large-folder tool
c32f9a6 verified
raw
history blame
11.2 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Calendar UI</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: #ffffff;
color: #1f1f1f;
}
/* Status bar */
.status-bar {
position: absolute;
top: 0;
left: 0;
width: 1080px;
height: 150px;
background: #000;
color: #fff;
display: flex;
align-items: center;
padding: 0 40px;
box-sizing: border-box;
font-weight: 600;
letter-spacing: 0.5px;
}
.status-left {
font-size: 44px;
}
.status-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 28px;
}
.status-icon {
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
}
/* Header with title and check-in/out summary */
.header {
position: absolute;
top: 150px;
left: 0;
width: 1080px;
background: #fff;
box-sizing: border-box;
padding: 28px 40px 24px 40px;
border-bottom: 1px solid #ECECEC;
}
.title-row {
display: flex;
align-items: center;
gap: 28px;
margin-bottom: 20px;
}
.title-row .title {
font-size: 48px;
font-weight: 600;
color: #2c2c2c;
}
.icon-btn {
width: 56px;
height: 56px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.date-summary {
display: grid;
grid-template-columns: 1fr 100px 1fr;
align-items: center;
gap: 20px;
padding-top: 10px;
padding-bottom: 18px;
}
.summary-block {
display: flex;
flex-direction: column;
}
.summary-label {
font-size: 34px;
color: #5d5d5d;
font-weight: 600;
margin-bottom: 8px;
}
.summary-date {
font-size: 56px;
font-weight: 700;
color: #1f1f1f;
letter-spacing: 0.2px;
}
.arrow-mid {
display: flex;
align-items: center;
justify-content: center;
}
/* Calendar area */
.content {
position: absolute;
top: 150px; /* status bar height */
left: 0;
width: 1080px;
height: calc(2400px - 150px);
overflow: hidden;
}
.calendar-wrap {
position: absolute;
top: 220px; /* below header */
left: 0;
right: 0;
bottom: 220px; /* leave room for bottom button area */
overflow-y: auto;
padding: 10px 32px 10px 32px;
box-sizing: border-box;
}
.month-section {
margin-bottom: 40px;
}
.month-title {
text-align: center;
font-size: 44px;
color: #4b4b4b;
font-weight: 600;
margin: 24px 0;
}
.weekday-row {
display: grid;
grid-template-columns: repeat(7, 1fr);
font-size: 34px;
color: #8a8a8a;
text-align: center;
padding: 18px 12px;
}
.days-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
}
.day {
height: 130px;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
color: #9aa0a6; /* muted */
position: relative;
border-top: 1px solid #EFEFEF;
}
.day.blank {
color: transparent;
}
.day.faded {
color: #cfcfcf;
}
.day.selected {
color: #ffffff;
font-weight: 700;
}
.day.selected::before {
content: "";
position: absolute;
width: 120px;
height: 120px;
border-radius: 60px;
background: #3F72F8;
box-shadow: 0 2px 0 rgba(0,0,0,0.08) inset;
}
/* Bottom action button */
.bottom-action {
position: absolute;
left: 0;
right: 0;
bottom: 150px; /* above gesture bar */
display: flex;
justify-content: center;
padding-bottom: 10px;
}
.primary-btn {
width: 920px;
height: 120px;
background: #3F72F8;
color: #fff;
border-radius: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 46px;
font-weight: 700;
box-shadow: 0 4px 12px rgba(63,114,248,0.35);
}
/* Gesture/navigation bar */
.nav-bar {
position: absolute;
left: 0;
bottom: 0;
width: 1080px;
height: 190px;
background: #000;
display: flex;
align-items: center;
justify-content: center;
}
.home-indicator {
width: 300px;
height: 16px;
border-radius: 8px;
background: #e6e6e6;
opacity: 0.9;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div class="status-left">10:33</div>
<div class="status-right">
<!-- Simple status icons -->
<div class="status-icon">
<svg width="36" height="36" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="9" stroke="#fff" stroke-width="2"></circle>
</svg>
</div>
<div class="status-icon">
<svg width="36" height="36" viewBox="0 0 24 24" fill="none">
<rect x="3" y="5" width="18" height="14" rx="2" stroke="#fff" stroke-width="2"></rect>
<rect x="6" y="8" width="12" height="8" fill="#fff"></rect>
</svg>
</div>
<div class="status-icon">
<svg width="36" height="36" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="10" stroke="#fff" stroke-width="2"></circle>
<circle cx="12" cy="12" r="4" fill="#fff"></circle>
</svg>
</div>
<div class="status-icon">
<svg width="36" height="36" viewBox="0 0 24 24" fill="none">
<path d="M20 8v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8" stroke="#fff" stroke-width="2" stroke-linecap="round"></path>
<rect x="7" y="4" width="10" height="6" rx="1" stroke="#fff" stroke-width="2"></rect>
</svg>
</div>
</div>
</div>
<!-- Header -->
<div class="header">
<div class="title-row">
<div class="icon-btn">
<svg width="44" height="44" viewBox="0 0 24 24" fill="none">
<path d="M6 6l12 12M18 6L6 18" stroke="#2c2c2c" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<div class="title">Calendar</div>
</div>
<div class="date-summary">
<div class="summary-block">
<div class="summary-label">Check-in</div>
<div class="summary-date">Mon, Jan 15, 24</div>
</div>
<div class="arrow-mid">
<svg width="60" height="60" viewBox="0 0 24 24" fill="none">
<path d="M5 12h12M13 6l6 6-6 6" stroke="#2c2c2c" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</div>
<div class="summary-block" style="align-items:flex-end; text-align:right;">
<div class="summary-label">Check-out</div>
<div class="summary-date" style="color:#bdbdbd; font-weight:700;"></div>
</div>
</div>
</div>
<!-- Scrollable calendar content -->
<div class="content">
<div class="calendar-wrap">
<!-- December 2023 -->
<div class="month-section">
<div class="month-title">December 2023</div>
<div class="weekday-row">
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
</div>
<div class="days-grid">
<!-- Row 1 -->
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day faded">1</div>
<div class="day faded">2</div>
<!-- Row 2 -->
<div class="day faded">3</div>
<div class="day faded">4</div>
<div class="day faded">5</div>
<div class="day faded">6</div>
<div class="day faded">7</div>
<div class="day faded">8</div>
<div class="day faded">9</div>
<!-- Row 3 -->
<div class="day faded">10</div>
<div class="day faded">11</div>
<div class="day faded">12</div>
<div class="day faded">13</div>
<div class="day faded">14</div>
<div class="day faded">15</div>
<div class="day faded">16</div>
<!-- Row 4 -->
<div class="day faded">17</div>
<div class="day faded">18</div>
<div class="day faded">19</div>
<div class="day faded">20</div>
<div class="day faded">21</div>
<div class="day faded">22</div>
<div class="day faded">23</div>
<!-- Row 5 -->
<div class="day faded">24</div>
<div class="day faded">25</div>
<div class="day faded">26</div>
<div class="day faded">27</div>
<div class="day faded">28</div>
<div class="day faded">29</div>
<div class="day faded">30</div>
<!-- Row 6 -->
<div class="day faded">31</div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
</div>
</div>
<!-- January 2024 -->
<div class="month-section">
<div class="month-title">January 2024</div>
<div class="weekday-row">
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
</div>
<div class="days-grid">
<!-- Row 1 -->
<div class="day blank"></div>
<div class="day">1</div>
<div class="day">2</div>
<div class="day">3</div>
<div class="day">4</div>
<div class="day">5</div>
<div class="day">6</div>
<!-- Row 2 -->
<div class="day">7</div>
<div class="day">8</div>
<div class="day">9</div>
<div class="day">10</div>
<div class="day">11</div>
<div class="day">12</div>
<div class="day">13</div>
<!-- Row 3 -->
<div class="day">14</div>
<div class="day selected">15</div>
<div class="day">16</div>
<div class="day">17</div>
<div class="day">18</div>
<div class="day">19</div>
<div class="day">20</div>
<!-- Row 4 -->
<div class="day">21</div>
<div class="day">22</div>
<div class="day">23</div>
<div class="day">24</div>
<div class="day">25</div>
<div class="day">26</div>
<div class="day">27</div>
<!-- Row 5 -->
<div class="day">28</div>
<div class="day">29</div>
<div class="day">30</div>
<div class="day">31</div>
<div class="day blank"></div>
<div class="day blank"></div>
<div class="day blank"></div>
</div>
</div>
</div>
</div>
<!-- Bottom action button -->
<div class="bottom-action">
<div class="primary-btn">OK (1 Night)</div>
</div>
<!-- Gesture bar -->
<div class="nav-bar">
<div class="home-indicator"></div>
</div>
</div>
</body>
</html>