From 98034fccd5d4d2159acb727870cb9a311b90551e Mon Sep 17 00:00:00 2001 From: jessikitty Date: Thu, 21 May 2026 08:55:44 +1000 Subject: [PATCH] =?UTF-8?q?v1.0.0:=20Display=20CSS=20=E2=80=94=20slideshow?= =?UTF-8?q?=20transitions,=20calendar,=20clock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/css/display.css | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 wwwroot/css/display.css diff --git a/wwwroot/css/display.css b/wwwroot/css/display.css new file mode 100644 index 0000000..c8d0638 --- /dev/null +++ b/wwwroot/css/display.css @@ -0,0 +1,43 @@ +/* === Sunbeam Display Engine === */ +* { margin: 0; padding: 0; box-sizing: border-box; } +html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0a14; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; color: #ffffff; cursor: none; } +#display-container { position: relative; width: 100vw; height: 100vh; } +.slide-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; overflow: hidden; } +.slide-layer.active { opacity: 1; z-index: 2; } +body[data-transition="slide"] .slide-layer { transition: transform 0.8s ease-in-out, opacity 0.6s ease-in-out; transform: translateX(100%); } +body[data-transition="slide"] .slide-layer.active { transform: translateX(0); } +body[data-transition="slide"] .slide-layer.slide-out { transform: translateX(-100%); } +body[data-transition="none"] .slide-layer { transition: none; } +.slide-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-repeat: no-repeat; } +.slide-inner .content-wrap { width: 100%; height: 100%; overflow: hidden; } +.slide-inner h1 { font-size: 3em; font-weight: 700; } +.slide-inner h2 { font-size: 2.2em; font-weight: 600; } +.slide-inner h3 { font-size: 1.6em; font-weight: 600; } +.slide-inner p { font-size: 1.2em; line-height: 1.6; } +.slide-inner img { max-width: 100%; max-height: 100%; object-fit: contain; } +.slide-inner table { width: auto; margin: 1em auto; border-collapse: collapse; } +.slide-inner table td, .slide-inner table th { padding: 0.6em 1em; border: 1px solid rgba(255, 255, 255, 0.2); } +.slide-inner table th { background: rgba(255, 255, 255, 0.1); font-weight: 600; } +.slide-inner iframe.embed-frame { width: 100%; height: 100%; border: none; } +.ics-display { width: 100%; height: 100%; padding: 3em; display: flex; flex-direction: column; overflow: hidden; } +.ics-display h2 { font-size: 2.4em; font-weight: 700; margin-bottom: 0.8em; display: flex; align-items: center; gap: 0.4em; } +.ics-display h2::before { content: '\01F4C5'; } +.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1em; flex: 1; overflow: hidden; } +.event-card { background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 1.2em 1.5em; border-left: 4px solid #f0a030; } +.event-card .event-title { font-size: 1.3em; font-weight: 600; margin-bottom: 0.3em; } +.event-card .event-time { font-size: 0.95em; opacity: 0.75; margin-bottom: 0.3em; } +.event-card .event-location { font-size: 0.9em; opacity: 0.6; } +#progress-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); z-index: 100; } +#progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #f0a030, #ff6b6b); transition: width 0.3s linear; } +#clock-overlay { position: fixed; bottom: 16px; right: 20px; z-index: 100; text-align: right; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); pointer-events: none; } +#clock-time { display: block; font-size: 1.6em; font-weight: 600; opacity: 0.7; font-variant-numeric: tabular-nums; } +#clock-date { display: block; font-size: 0.85em; opacity: 0.5; } +#status-dot { position: fixed; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #4caf50; z-index: 100; opacity: 0.6; } +#status-dot.error { background: #f44336; animation: pulse 1.5s infinite; } +@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } } +.loading-state { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 1.5em; opacity: 0.5; } +.loading-state::after { content: ''; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #f0a030; border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 0.8em; } +@keyframes spin { to { transform: rotate(360deg); } } +.no-slides { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; } +.no-slides h1 { font-size: 3em; margin-bottom: 0.3em; } +.no-slides p { font-size: 1.3em; opacity: 0.5; }