fixed mobile navbar bug, changed navbar

This commit is contained in:
2026-03-18 19:53:30 +01:00
parent 04d70e3609
commit 76df6835cf
+3 -5
View File
@@ -379,7 +379,7 @@ const PROJECTS = [
{ {
id: "boardgame", id: "boardgame",
title: "Online Multyplayer Game", title: "Online Multyplayer Game",
description: "Ein online multyplayer Brettspiel mit Server, Spielclient und KI-Spieler entstanden als Gruppenarbeit einer Vorlesung.", description: "Ein online multyplayer Brettspiel mit Server, Spielclient und KI-Spieler entstanden als Gruppenarbeit mit 5 weiteren Kommilitonen.",
tags: ["C#", ".net", "Unity"], tags: ["C#", ".net", "Unity"],
github: "https://github.com/MarvinKrausser/BoardgameServer", github: "https://github.com/MarvinKrausser/BoardgameServer",
blocks: [ blocks: [
@@ -459,7 +459,6 @@ class ProjectSection extends HTMLElement {
this.innerHTML = ` this.innerHTML = `
<section class="project-section" id="${p.id}" data-nav="${p.title}"> <section class="project-section" id="${p.id}" data-nav="${p.title}">
<div class="section-head"> <div class="section-head">
<p class="section-kicker">${p.title}</p>
<h2 class="section-title">${p.title}</h2> <h2 class="section-title">${p.title}</h2>
<p class="section-desc">${p.description}</p> <p class="section-desc">${p.description}</p>
<div class="meta-row"> <div class="meta-row">
@@ -498,7 +497,7 @@ function buildNav() {
// Statische Sections // Statische Sections
const staticSections = [ const staticSections = [
{ id: "hero", label: "Hallo!", group: null }, { id: "hero", label: "Hallo!", group: null, idx: "00" },
]; ];
// Projekt-Sections nach dem Rendern einsammeln // Projekt-Sections nach dem Rendern einsammeln
@@ -550,7 +549,6 @@ function buildNav() {
closeDrawer(); closeDrawer();
}; };
ma.textContent = s.idx ? `${s.idx} – ${s.label}` : s.label; ma.textContent = s.idx ? `${s.idx} – ${s.label}` : s.label;
ma.onclick = closeDrawer;
drawerLinks.appendChild(ma); drawerLinks.appendChild(ma);
}); });
} }
@@ -584,7 +582,7 @@ function scrollToSection(id) {
behavior: 'smooth' behavior: 'smooth'
}); });
history.replaceState(null, null, ' '); history.replaceState(null, null, window.location.pathname);
} }
</script> </script>
</body> </body>