From ae1a44b65f02ce5b3f1a6b8d0ed767116a5cafe0 Mon Sep 17 00:00:00 2001 From: Henri Date: Mon, 6 Apr 2026 21:10:15 +0300 Subject: [PATCH] changes for nav and Juhatus --- src/App.svelte | 6 +- src/app.css | 11 +++- src/components/Dropdown.svelte | 18 ++---- src/layout/Navbar.svelte | 100 +++++++++++++++++++++++++-------- src/routes/AboutUs.svelte | 2 + src/routes/Calendar.svelte | 2 +- src/routes/Contact.svelte | 2 + src/routes/Helpdesk.svelte | 2 + src/routes/Managment.svelte | 2 + src/routes/Mentors.svelte | 2 + src/routes/OurWork.svelte | 2 + src/routes/Striim.svelte | 8 +-- src/routes/Student.svelte | 2 + 13 files changed, 113 insertions(+), 46 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index ab76b48..8ec6170 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -7,8 +7,10 @@ {#if $text && Object.keys($text).length > 0} -
- +
+
+ +
{/if} diff --git a/src/app.css b/src/app.css index 43e5414..359c58d 100644 --- a/src/app.css +++ b/src/app.css @@ -5,9 +5,9 @@ /* Overwriting tailwindcss specific variables */ @theme { - --color-orange-500: #f0941d; - --color-orange-300: #ffa940; - --color-orange-600: #d67d0a; + --color-orange-500: #f0941d; /* Primary color, use this for most things. */ + --color-orange-300: #ffa80d; /* Use for hover states, accents, and highlights. (lighter than primary) */ + --color-orange-600: #d67d0a; /* Ideally don't use */ --color-gray-100: #fffdfa; --color-gray-900: #0d0d0d; @@ -109,6 +109,11 @@ input[type="submit"] { margin: -1px; } +/* Safe area for content below navbar (94px scaled) */ +.safe-area-navbar { + padding-top: calc(94px * var(--ui-scale)); +} + /* Show/hide helpers for breakpoints */ .mobile-only { display: block; diff --git a/src/components/Dropdown.svelte b/src/components/Dropdown.svelte index d9fd758..c2ebb29 100644 --- a/src/components/Dropdown.svelte +++ b/src/components/Dropdown.svelte @@ -26,21 +26,13 @@