From fe77c5477c9fcf5d7922939b306c7b8a6ccd89b2 Mon Sep 17 00:00:00 2001 From: Alexander Mahr Date: Sat, 15 Feb 2025 21:37:23 +0100 Subject: [PATCH] add day view --- app/assets/index.html | 74 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/app/assets/index.html b/app/assets/index.html index ce28172..eae1909 100644 --- a/app/assets/index.html +++ b/app/assets/index.html @@ -54,6 +54,25 @@ body,html{ transition: all 0s ease-in-out; } +.dayview { + background-color:rgba(255,255,255,0.5); + border:2px solid rgba(0,0,0,0.5); + border-radius: 10%; + margin:5px; + min-height: 20vw; + /*margin:5px;*/ +/* scroll-snap-align: center;*/ + overflow:hidden; + transition: all 0s ease-in-out; +} + +.dayview > .label{ + background-color:#a44; + color:#ffa; + padding:.2cm; + font-size:.7cm; + text-align:center; +} .label{ background-color:#a44; color:#fff; @@ -73,17 +92,39 @@ body,html{ grid-template-columns: repeat(1, 1fr); } +.dayview > .hours{ + display: grid; + width: 100%; + grid-template-columns: repeat(2, 1fr); +} + +.hours > div { + text-align:center; + height: 2cm; + align:content; + border:1px solid grey; +} + .days div { text-align:center; height: 2cm; align:content; border:1px solid grey; } + .weekend{ color:red; background-color:white; } +#daysDiv{ + /*background: linear-gradient(white,#aaf);*/ + background-color: #afa; + position: absolute; + top:0; + left:200vw; + +} #weeksDiv{ /*background: linear-gradient(white,#aaf);*/ background-color: #aaf; @@ -92,7 +133,7 @@ body,html{ left:100vw; } -#weeksDiv, #monthsDiv{ +#daysDiv, #weeksDiv, #monthsDiv{ box-sizing:border-box; margin:0; scroll-snap-align: start; @@ -122,6 +163,7 @@ box-shadow: 0 0 10px grey;
+