mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-08 16:29:14 +00:00
mentors update + navbar bug fixes
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
/* Design tokens & theme variables (light defaults) */
|
/* Design tokens & theme variables (light defaults) */
|
||||||
:root {
|
:root {
|
||||||
--page-max-width: calc(1460px * var(--ui-scale));
|
--page-max-width: calc(1460px * var(--ui-scale));
|
||||||
|
--navbar-offset: calc(94px * var(--ui-scale));
|
||||||
--page-padding-inline: clamp(
|
--page-padding-inline: clamp(
|
||||||
calc(1.5rem * var(--ui-scale)),
|
calc(1.5rem * var(--ui-scale)),
|
||||||
calc(4vw * var(--ui-scale)),
|
calc(4vw * var(--ui-scale)),
|
||||||
@@ -67,6 +68,7 @@ html {
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
font-size: calc(var(--fs-base) * var(--ui-scale));
|
font-size: calc(var(--fs-base) * var(--ui-scale));
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
|
scroll-padding-top: var(--navbar-offset);
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
@@ -111,7 +113,8 @@ input[type="submit"] {
|
|||||||
|
|
||||||
/* Safe area for content below navbar (94px scaled) */
|
/* Safe area for content below navbar (94px scaled) */
|
||||||
.safe-area-navbar {
|
.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 */
|
/* Show/hide helpers for breakpoints */
|
||||||
|
|||||||
@@ -56,13 +56,13 @@
|
|||||||
|
|
||||||
function headerRowClass() {
|
function headerRowClass() {
|
||||||
return isHomePage()
|
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";
|
: "flex min-h-16 items-center gap-4";
|
||||||
}
|
}
|
||||||
|
|
||||||
function headerWrapClass() {
|
function headerWrapClass() {
|
||||||
return isHomePage()
|
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";
|
: "flex items-center justify-end ml-auto w-full md:w-auto";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<div class="flex flex-col gap-8">
|
<div class="flex flex-col gap-8">
|
||||||
{#each mentors as mentor}
|
{#each mentors as mentor}
|
||||||
<div>
|
<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 -->
|
<!-- Mentor Photo -->
|
||||||
{#if mentor.photo}
|
{#if mentor.photo}
|
||||||
<div class="shrink-0">
|
<div class="shrink-0">
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
let members = { junior: [], senior: [] };
|
let members = { junior: [], senior: [] };
|
||||||
const text = createPageTextStore("Student");
|
const text = createPageTextStore("Student");
|
||||||
const joinFormUrl = "https://forms.google.com/#LINK";
|
const joinFormUrl = "https://pilves.lapikud.ee/apps/forms/s/WXed8sbG2s45GMKGAiXCemgE";
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ export function getLanguageFromRoute(path) {
|
|||||||
if (estRoutes.includes(path)) return 'est';
|
if (estRoutes.includes(path)) return 'est';
|
||||||
if (enRoutes.includes(path)) return 'en';
|
if (enRoutes.includes(path)) return 'en';
|
||||||
|
|
||||||
// Neutral/shared route (e.g. '/', '/helpdesk')
|
|
||||||
// -> keep currently selected language
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user