Files
Calender/static/css/style.css
Ludwig Mey fc6abfe745 Redesign UI as light-themed week-grid calendar matching Skylight-style device
- Replace scrolling event list + photo background with a Sun–Sat week grid
  plus a "Next Week" preview column; Prev/Next navigation and per-member filter
- Add [Name] event title prefix convention for color-coded family member cards
  (Ludwig/Dad=blue, Michelle/Mom=pink, Jason=green, Daniel=yellow)
- /api/calendar now accepts ?start=YYYY-MM-DD, returns bucketed week payload
  with member/color metadata; fetches 14 days to populate Next Week column
- Drop rotating background photo and dad joke from the display (endpoints kept)
- Update README with new UI overview, prefix convention, and API docs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-27 20:32:15 +12:00

327 lines
5.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background: #F4F5F7;
color: #2B2B33;
overflow: hidden;
}
.app {
height: 100vh;
display: flex;
flex-direction: column;
padding: 18px 24px 24px;
}
/* ---------- Top bar ---------- */
.topbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 18px;
flex-wrap: wrap;
gap: 12px;
}
.date-time {
display: flex;
align-items: baseline;
gap: 10px;
}
.icon-badge {
font-size: 22px;
margin-right: 2px;
}
.header-date {
font-size: 28px;
font-weight: 700;
color: #1F2430;
}
.header-time {
font-size: 18px;
font-weight: 500;
color: #8A8F9C;
}
.nav-row {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
.pill {
display: inline-flex;
align-items: center;
background: #FFFFFF;
border: 1px solid #E3E5EA;
border-radius: 18px;
padding: 6px 14px;
font-size: 13px;
font-weight: 600;
color: #4A4E5A;
}
.filter-select {
appearance: none;
-webkit-appearance: none;
cursor: pointer;
padding-right: 28px;
background-image: linear-gradient(45deg, transparent 50%, #8A8F9C 50%), linear-gradient(135deg, #8A8F9C 50%, transparent 50%);
background-position: calc(100% - 14px) center, calc(100% - 9px) center;
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
}
.week-nav {
display: flex;
align-items: center;
gap: 6px;
background: #FFFFFF;
border: 1px solid #E3E5EA;
border-radius: 18px;
padding: 4px 8px;
}
.nav-arrow {
border: none;
background: transparent;
font-size: 18px;
line-height: 1;
color: #4A4E5A;
cursor: pointer;
padding: 4px 8px;
border-radius: 50%;
}
.nav-arrow:hover {
background: #F0F1F4;
}
.week-range {
font-size: 13px;
font-weight: 600;
color: #4A4E5A;
min-width: 80px;
text-align: center;
}
.topbar-right {
display: flex;
align-items: center;
gap: 14px;
}
.weather-chip {
display: flex;
align-items: center;
gap: 6px;
background: #FFFFFF;
border: 1px solid #E3E5EA;
border-radius: 18px;
padding: 6px 14px;
}
.weather-icon {
width: 22px;
height: 22px;
background-size: contain;
background-repeat: no-repeat;
}
.current-temp {
font-size: 14px;
font-weight: 700;
color: #4A4E5A;
}
.wifi-icon {
font-size: 18px;
color: #8A8F9C;
}
/* ---------- Week grid ---------- */
.week-grid {
flex: 1;
display: grid;
grid-template-columns: repeat(7, 1fr) 1.1fr;
gap: 12px;
min-height: 0;
}
.day-column {
background: #FFFFFF;
border-radius: 14px;
padding: 12px 10px;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
.day-column.is-today {
box-shadow: 0 0 0 2px #4A90D9 inset;
}
.day-header {
margin-bottom: 8px;
}
.day-name {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
color: #A6AAB4;
letter-spacing: 0.04em;
}
.day-number {
font-size: 20px;
font-weight: 700;
color: #1F2430;
}
.day-count {
font-size: 11px;
color: #A6AAB4;
margin-top: 2px;
}
.day-events {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 6px;
}
.event-card {
border-radius: 8px;
padding: 6px 8px;
border-left: 4px solid transparent;
font-size: 11.5px;
line-height: 1.35;
}
.event-time {
font-weight: 700;
color: rgba(0, 0, 0, 0.55);
font-size: 10.5px;
}
.event-title {
font-weight: 600;
color: #2B2B33;
overflow-wrap: anywhere;
}
.event-member {
font-size: 10px;
color: rgba(0, 0, 0, 0.5);
margin-top: 1px;
}
.next-week-column {
background: #FFFFFF;
border-radius: 14px;
padding: 14px 12px;
display: flex;
flex-direction: column;
cursor: pointer;
}
.next-week-column:hover {
background: #F7F8FA;
}
.next-week-title {
font-size: 14px;
font-weight: 700;
color: #1F2430;
}
.next-week-range {
font-size: 11px;
color: #A6AAB4;
margin-bottom: 10px;
}
.next-week-count {
font-size: 13px;
color: #4A4E5A;
font-weight: 600;
}
.event-placeholder {
grid-column: 1 / -1;
text-align: center;
color: #A6AAB4;
padding-top: 60px;
font-size: 14px;
}
/* ---------- Add button ---------- */
.add-fab {
position: fixed;
bottom: 26px;
right: 26px;
width: 52px;
height: 52px;
border-radius: 50%;
border: none;
background: #4A90D9;
color: #FFFFFF;
font-size: 26px;
font-weight: 400;
line-height: 1;
cursor: pointer;
box-shadow: 0 6px 16px rgba(74, 144, 217, 0.4);
}
.add-fab:hover {
background: #3A7BC0;
}
.add-toast {
position: fixed;
bottom: 90px;
right: 26px;
background: #1F2430;
color: #FFFFFF;
padding: 10px 16px;
border-radius: 10px;
font-size: 12.5px;
max-width: 240px;
opacity: 0;
transform: translateY(6px);
transition: opacity 0.2s ease, transform 0.2s ease;
pointer-events: none;
}
.add-toast.visible {
opacity: 1;
transform: translateY(0);
}
/* Scrollbar styling for day columns */
.day-events::-webkit-scrollbar {
width: 4px;
}
.day-events::-webkit-scrollbar-thumb {
background: #E3E5EA;
border-radius: 4px;
}