mentors update + navbar bug fixes

This commit is contained in:
Henri
2026-04-16 16:48:35 +03:00
parent 0a31f0aa91
commit c2a09816db
5 changed files with 8 additions and 7 deletions

View File

@@ -28,6 +28,7 @@
/* Design tokens & theme variables (light defaults) */
:root {
--page-max-width: calc(1460px * var(--ui-scale));
--navbar-offset: calc(94px * var(--ui-scale));
--page-padding-inline: clamp(
calc(1.5rem * var(--ui-scale)),
calc(4vw * var(--ui-scale)),
@@ -67,6 +68,7 @@ html {
-moz-osx-font-smoothing: grayscale;
font-size: calc(var(--fs-base) * var(--ui-scale));
-webkit-text-size-adjust: 100%;
scroll-padding-top: var(--navbar-offset);
overflow-x: hidden;
}
body {
@@ -111,7 +113,8 @@ input[type="submit"] {
/* Safe area for content below navbar (94px scaled) */
.safe-area-navbar {
padding-top: calc(94px * var(--ui-scale));
padding-top: var(--navbar-offset);
scroll-margin-top: var(--navbar-offset);
}
/* Show/hide helpers for breakpoints */

View File

@@ -56,13 +56,13 @@
function headerRowClass() {
return isHomePage()
? "flex items-center w-full relative min-h-10"
? "flex min-h-16 items-center w-full relative gap-4"
: "flex min-h-16 items-center gap-4";
}
function headerWrapClass() {
return isHomePage()
? "ml-auto flex w-full items-center justify-end md:w-auto md:border-b-3 md:border-white backdrop-blur-lg bg-black/35 pr-(--page-padding-inline)"
? "ml-auto flex w-full self-stretch items-center justify-end md:w-auto md:border-b-3 md:border-white backdrop-blur-lg bg-black/35 pr-(--page-padding-inline)"
: "flex items-center justify-end ml-auto w-full md:w-auto";
}

View File

@@ -78,7 +78,7 @@
<div class="flex flex-col gap-8">
{#each mentors as mentor}
<div>
<div class="flex flex-col md:flex-row gap-6">
<div class="flex flex-col md:flex-row gap-6 m-3">
<!-- Mentor Photo -->
{#if mentor.photo}
<div class="shrink-0">

View File

@@ -10,7 +10,7 @@
let members = { junior: [], senior: [] };
const text = createPageTextStore("Student");
const joinFormUrl = "https://forms.google.com/#LINK";
const joinFormUrl = "https://pilves.lapikud.ee/apps/forms/s/WXed8sbG2s45GMKGAiXCemgE";
onMount(async () => {
try {

View File

@@ -79,8 +79,6 @@ export function getLanguageFromRoute(path) {
if (estRoutes.includes(path)) return 'est';
if (enRoutes.includes(path)) return 'en';
// Neutral/shared route (e.g. '/', '/helpdesk')
// -> keep currently selected language
return null;
}