diff --git a/adhan-webapp/static/style.css b/adhan-webapp/static/style.css index 255b9bb..7c14af0 100644 --- a/adhan-webapp/static/style.css +++ b/adhan-webapp/static/style.css @@ -146,6 +146,40 @@ body.settings-page { font-style: italic; } +/* Hadith sectie in linker overlay */ +.hadith-section { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + margin: 2rem 0; + padding: 0 1rem; +} + +.hadith-section blockquote { + font-style: italic; + font-size: 1.8rem; + background: none; + border: none; + margin: 0; + padding: 0; + color: #fff; + text-align: center; + font-family: 'Cairo', Arial, sans-serif; + line-height: 1.4; + text-shadow: 2px 2px 8px rgba(0,0,0,0.7); +} + +.hadith-section blockquote footer { + font-size: 1.1rem; + color: var(--accent); + margin-top: 1rem; + text-align: center; + font-family: 'Lato', Arial, sans-serif; + text-shadow: 1px 1px 4px rgba(0,0,0,0.5); +} + .huidig-gebed { margin-top: auto; width: 100%; @@ -303,6 +337,58 @@ blockquote footer { width: 100%; padding: 1.2rem; } + .right.compact-sidebar { + min-width: unset; + max-width: unset; + flex: unset; + padding: 1.2rem; + } + .compact-sidebar .vertical-tijden { + flex-direction: row; + justify-content: center; + height: auto; + } + .compact-sidebar .tijden-en-icoontjes { + flex-direction: row; + gap: 1rem; + flex-wrap: wrap; + justify-content: center; + } + .compact-sidebar .weather-section { + margin-top: 1rem; + padding: 1rem; + } + .compact-sidebar .weather-main { + flex-direction: row; + justify-content: space-between; + } + .compact-sidebar .weather-details { + flex-direction: row; + gap: 1rem; + } + .hadith-tijden-row { + flex-direction: column; + } + .hadith-center { + margin: 0.5rem; + padding: 1.5rem; + } + .hadith-center blockquote { + font-size: 1.8rem; + } + .vertical-tijden { + flex-direction: row; + min-width: unset; + padding: 1.2rem 0 0 0; + width: 100%; + justify-content: center; + } + .tijden-en-icoontjes { + flex-direction: row; + gap: 1rem; + flex-wrap: wrap; + justify-content: center; + } .left { min-height: 40vh; } @@ -318,9 +404,12 @@ blockquote footer { .right { padding: 0.7rem; } - blockquote { + .hadith-section blockquote { font-size: 1.2rem; } + .hadith-section blockquote footer { + font-size: 0.9rem; + } .gregorian-datum { font-size: 1.1rem; @@ -333,6 +422,30 @@ blockquote footer { .hijri-datum-dutch { font-size: 0.9rem; } + + /* Weer sectie links responsive */ + .weather-section-left { + margin-top: 1.5rem; + padding: 1rem; + } + + .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; + } } .right.new-layout { @@ -351,6 +464,25 @@ blockquote footer { padding: 0; } +/* Compact sidebar voor index.html */ +.right.new-layout.compact-sidebar { + min-width: 120px; + max-width: 120px; + flex: 0 0 120px; + justify-content: space-between; + padding: 2rem 0; +} + +.compact-sidebar .vertical-tijden { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + width: 100%; + height: auto; + flex: 1; +} + .hadith-tijden-row { display: flex; flex-direction: row; @@ -365,12 +497,16 @@ blockquote footer { justify-content: center; align-items: center; padding: 2.5rem 2rem 2.5rem 2.5rem; + background: var(--card-bg); + border-radius: 8px; + margin: 1rem; + border: 1px solid var(--border-color); } .hadith-center blockquote { font-size: 2.2rem; text-align: left; - color: var(--text); + color: var(--text-color); margin: 0; padding: 0; background: none; @@ -381,7 +517,7 @@ blockquote footer { .hadith-center blockquote footer { font-size: 1.1rem; - color: var(--accent); + color: var(--primary-color); margin-top: 1.2rem; text-align: left; font-family: 'Lato', Arial, sans-serif; @@ -442,35 +578,6 @@ blockquote footer { opacity: 0.8; } -@media (max-width: 900px) { - .hadith-tijden-row { - flex-direction: column; - } - .vertical-tijden { - flex-direction: row; - min-width: unset; - padding: 1.2rem 0 0 0; - width: 100%; - justify-content: center; - } - .gebedstijden-verticaal { - flex-direction: row; - display: flex; - width: auto; - margin: 0 1.5rem 0 0; - } - .gebedstijden-verticaal li { - align-items: center; - padding: 0 0.7rem; - } - .vertical-icoontjes { - flex-direction: row; - gap: 1.2rem; - margin-top: 0; - margin-left: 1rem; - } -} - .tijden-en-icoontjes { list-style: none; padding: 0; @@ -579,6 +686,38 @@ blockquote footer { font-family: 'Cairo', Arial, sans-serif; } +/* Weer sectie in compact sidebar */ +.compact-sidebar .weather-section { + margin-top: 0; + padding: 1rem 0.5rem; + text-align: center; +} + +.compact-sidebar .weather-main { + flex-direction: column; + align-items: center; + gap: 0.5rem; +} + +.compact-sidebar .weather-temp { + font-size: 1.5rem; +} + +.compact-sidebar .weather-desc { + font-size: 0.8rem; +} + +.compact-sidebar .weather-details { + flex-direction: column; + gap: 0.3rem; + margin-top: 0.5rem; + padding-top: 0.5rem; +} + +.compact-sidebar .weather-detail { + font-size: 0.7rem; +} + .weather-info { text-align: left; } @@ -955,3 +1094,71 @@ blockquote footer { justify-content: center; } } + +html.light .hadith-center { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + +html.dark .hadith-center { + box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1); +} + +/* Weer sectie in linker overlay */ +.weather-section-left { + margin-top: 2rem; + padding: 1.5rem; + 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); +} + +.weather-section-left .weather-info { + text-align: left; +} + +.weather-section-left .weather-main { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + margin-bottom: 0.8rem; +} + +.weather-section-left .weather-temp { + font-size: 2rem; + font-weight: 700; + color: #fff; + font-family: 'Cairo', sans-serif; + text-shadow: 1px 1px 3px rgba(0,0,0,0.5); +} + +.weather-section-left .weather-desc { + font-size: 1rem; + color: #fff; + opacity: 0.9; + font-family: 'Lato', sans-serif; + text-transform: capitalize; + text-shadow: 1px 1px 3px rgba(0,0,0,0.5); +} + +.weather-section-left .weather-details { + display: flex; + flex-direction: row; + justify-content: space-between; + gap: 1rem; + margin-top: 0.8rem; + border-top: 1px solid rgba(255, 255, 255, 0.2); + padding-top: 0.8rem; +} + +.weather-section-left .weather-detail { + font-size: 0.9rem; + color: #fff; + opacity: 0.8; + flex: 1; + text-align: center; + font-family: 'Lato', sans-serif; + text-shadow: 1px 1px 3px rgba(0,0,0,0.5); +} diff --git a/adhan-webapp/templates/index.html b/adhan-webapp/templates/index.html index dbb97bc..37b28b7 100644 --- a/adhan-webapp/templates/index.html +++ b/adhan-webapp/templates/index.html @@ -21,7 +21,23 @@
"{{ hadith.text }}"