diff --git a/adhan-webapp/static/countdown.js b/adhan-webapp/static/countdown.js index e36005d..919efdc 100644 --- a/adhan-webapp/static/countdown.js +++ b/adhan-webapp/static/countdown.js @@ -71,7 +71,7 @@ function startCountdown(targetTimeStr, prayerName, isNextDay = false) { // Update de naam met "morgen" indicator als nodig const displayName = isNextDay ? `${prayerName} (morgen)` : prayerName; - document.querySelector('.huidig-gebed .naam').textContent = displayName; + document.querySelector('.huidig-gebed-bottom .naam').textContent = displayName; function update() { const now = new Date(); diff --git a/adhan-webapp/static/style.css b/adhan-webapp/static/style.css index 7c14af0..a2c125f 100644 --- a/adhan-webapp/static/style.css +++ b/adhan-webapp/static/style.css @@ -81,12 +81,14 @@ body.settings-page { flex: 1; background: url('/static/moskee.png') center/cover no-repeat; position: relative; + display: flex; + flex-direction: column; } .overlay { background: rgba(0, 0, 0, 0.3); color: #fff; - height: 100%; + flex: 1; padding: 2rem; display: flex; flex-direction: column; @@ -97,6 +99,7 @@ body.settings-page { .tijdstip { margin-bottom: 2rem; + flex: 0 0 auto; } .tijdstip #current-time { @@ -180,34 +183,7 @@ body.settings-page { text-shadow: 1px 1px 4px rgba(0,0,0,0.5); } -.huidig-gebed { - margin-top: auto; - width: 100%; - max-width: 100%; - box-sizing: border-box; - display: flex; - flex-direction: column; - align-items: flex-start; - z-index: 2; - padding-bottom: 2rem; -} - -.huidig-gebed .naam { - font-family: 'Cairo', Arial, sans-serif; - font-size: 4rem; - font-weight: 700; - margin-bottom: 0.5rem; - color: #fff; - text-shadow: 2px 2px 8px #000; -} - -#countdown { - font-size: 6rem; - font-weight: bold; - margin-top: 0.5rem; - color: #fff; - text-shadow: 2px 2px 8px #000; -} +/* Oude huidig-gebed CSS verwijderd - nu huidig-gebed-bottom gebruikt */ .right { flex: 1; @@ -389,16 +365,93 @@ blockquote footer { flex-wrap: wrap; justify-content: center; } + + /* Tijd-weer layout voor tablets */ + .tijd-weer-row { + gap: 2rem; + } + + .weather-section-left { + max-width: 250px; + } + .left { min-height: 40vh; } + + .overlay { + min-height: 40vh; + } + + /* Tijd-weer layout responsive */ + .tijd-weer-row { + flex-direction: column; + gap: 1rem; + align-items: flex-start; + } + + .weer-column { + margin-top: 0; + width: 100%; + } + + /* Weer sectie links responsive */ + .weather-section-left { + padding: 1rem; + max-width: none; + } + + .weather-section-left .weather-temp { + font-size: 1.5rem; + } + + .weather-section-left .weather-desc { + font-size: 0.9rem; + } + + .weather-section-left .weather-details { + flex-direction: column; + gap: 0.5rem; + } + + .weather-section-left .weather-detail { + font-size: 0.8rem; + text-align: left; + } + + /* Huidig gebed bottom responsive */ + .huidig-gebed-bottom { + padding: 1.5rem; + } + + .huidig-gebed-bottom .naam { + font-size: 2rem; + } + + .huidig-gebed-bottom #countdown { + font-size: 3rem; + } +} + +@media (max-width: 768px) { + .tijd-weer-row { + gap: 1.5rem; + } + + .weather-section-left { + max-width: 220px; + } + + .weather-section-left .weather-temp { + font-size: 1.8rem; + } } @media (max-width: 600px) { .tijdstip #current-time, #countdown { font-size: 2.2rem; } - .huidig-gebed .naam { + .huidig-gebed-bottom .naam { font-size: 1.2rem; } .right { @@ -423,10 +476,22 @@ blockquote footer { font-size: 0.9rem; } + /* Tijd-weer layout responsive */ + .tijd-weer-row { + flex-direction: column; + gap: 1rem; + align-items: flex-start; + } + + .weer-column { + margin-top: 0; + width: 100%; + } + /* Weer sectie links responsive */ .weather-section-left { - margin-top: 1.5rem; padding: 1rem; + max-width: none; } .weather-section-left .weather-temp { @@ -446,6 +511,19 @@ blockquote footer { font-size: 0.8rem; text-align: left; } + + /* Huidig gebed bottom responsive */ + .huidig-gebed-bottom { + padding: 1.5rem; + } + + .huidig-gebed-bottom .naam { + font-size: 2rem; + } + + .huidig-gebed-bottom #countdown { + font-size: 3rem; + } } .right.new-layout { @@ -1105,13 +1183,15 @@ html.dark .hadith-center { /* Weer sectie in linker overlay */ .weather-section-left { - margin-top: 2rem; - padding: 1.5rem; + margin-top: 0; + padding: 1.2rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-family: 'Cairo', Arial, sans-serif; backdrop-filter: blur(10px); + width: 100%; + max-width: 300px; } .weather-section-left .weather-info { @@ -1162,3 +1242,53 @@ html.dark .hadith-center { font-family: 'Lato', sans-serif; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); } + +.tijd-weer-row { + display: flex; + align-items: flex-start; + gap: 3rem; + margin-bottom: 1rem; +} + +.tijd-column { + flex: 0 0 auto; +} + +.weer-column { + flex: 1; + display: flex; + align-items: flex-start; + margin-top: 1rem; +} + +/* Huidig gebed sectie onderaan het scherm */ +.huidig-gebed-bottom { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 2rem; + background: rgba(0, 0, 0, 0.4); + color: #fff; + display: flex; + flex-direction: column; + align-items: flex-start; + z-index: 10; +} + +.huidig-gebed-bottom .naam { + font-family: 'Cairo', Arial, sans-serif; + font-size: 4rem; + font-weight: 700; + margin-bottom: 0.5rem; + color: #fff; + text-shadow: 2px 2px 8px #000; +} + +.huidig-gebed-bottom #countdown { + font-size: 6rem; + font-weight: bold; + margin-top: 0.5rem; + color: #fff; + text-shadow: 2px 2px 8px #000; +} diff --git a/adhan-webapp/templates/index.html b/adhan-webapp/templates/index.html index 37b28b7..66fb56d 100644 --- a/adhan-webapp/templates/index.html +++ b/adhan-webapp/templates/index.html @@ -15,34 +15,40 @@