diff --git a/src/index.html b/src/index.html
index c82005f..32aea37 100644
--- a/src/index.html
+++ b/src/index.html
@@ -17,11 +17,11 @@
diff --git a/src/modules/about.ts b/src/modules/about.ts
index c97ac23..49e3c8a 100644
--- a/src/modules/about.ts
+++ b/src/modules/about.ts
@@ -1,7 +1,8 @@
+import { baseUrl } from "../../assets/data.json";
+
export default function About() {
const ret = document.createElement("div");
ret.classList.add("pagewrapper");
- ret.innerHTML =
- "
Impressum
Malte Jürgens
Bergmannstraße 70
10961 Berlin
Kontakt:
hertzschlag@hhgym.demaltejur@web.de ";
+ ret.innerHTML = `
Impressum
Malte Jürgens
Kurfürstenstr. 12
52066 Aachen
Kontakt:
hertzschlag@hhgym.demaltejur@dismail.de `;
return ret;
}
diff --git a/src/modules/headerHertzblatt.ts b/src/modules/headerHertzblatt.ts
index c926ae6..ef8a4d1 100644
--- a/src/modules/headerHertzblatt.ts
+++ b/src/modules/headerHertzblatt.ts
@@ -5,9 +5,13 @@ export default function HeaderHertzschlag() {
hertz heute / HertzBLATT Archiv
+
+
`;
return el;
diff --git a/src/modules/headerHertzschlag.ts b/src/modules/headerHertzschlag.ts
index 5951822..ddf1976 100644
--- a/src/modules/headerHertzschlag.ts
+++ b/src/modules/headerHertzschlag.ts
@@ -5,10 +5,14 @@ export default function HeaderHertzschlag() {
HertzSCHLAG Archiv
+
+
`;
return el;
diff --git a/src/modules/home.ts b/src/modules/home.ts
index 8e19a6e..0a8decc 100644
--- a/src/modules/home.ts
+++ b/src/modules/home.ts
@@ -16,6 +16,8 @@ export default function Home() {
`;
});
+ html += `Impressum`;
+
ret.innerHTML = html;
return ret;
diff --git a/src/modules/router.ts b/src/modules/router.ts
index 8ad66fb..b52a92e 100644
--- a/src/modules/router.ts
+++ b/src/modules/router.ts
@@ -58,6 +58,8 @@ export default class Router {
if (!this.lazy && !didNavigate) {
this.el.innerHTML = "";
}
+ const navToggle = document.getElementById("nav-toggle") as HTMLInputElement;
+ if (navToggle && navToggle.checked) navToggle.checked = false;
this.onpagechange(hash.slice(1));
}
}
diff --git a/src/style.css b/src/style.css
index 9a15175..396f189 100644
--- a/src/style.css
+++ b/src/style.css
@@ -104,6 +104,14 @@ body {
color: rgba(255, 255, 255, 0.8);
}
+#header input {
+ display: none;
+}
+
+#header label {
+ display: none;
+}
+
.welle-l {
position: fixed;
height: 30px;
@@ -172,6 +180,11 @@ body {
transform: translateY(-4px);
}
+.impressum {
+ margin: auto;
+ color: white;
+}
+
button,
.button,
.button-skeleton {
@@ -320,10 +333,45 @@ iframe {
}
}
-@media only screen and (max-width: 800px) {
+@media only screen and (max-width: 900px) {
#header nav {
display: none;
}
+
+ #header label {
+ display: initial;
+ color: white;
+ position: fixed;
+ top: 33px;
+ right: 110px;
+ cursor: pointer;
+ }
+
+ #header input:checked + nav {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ background-color: rgba(0, 0, 0, 0.8);
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ z-index: 5;
+ }
+
+ #header nav label {
+ position: fixed;
+ top: 20px;
+ right: 20px;
+ color: white;
+ font-size: 2em;
+ }
+
+ #header nav a {
+ font-size: 1.6em !important;
+ }
}
@media only screen and (max-width: 600px) {
@@ -363,6 +411,11 @@ iframe {
right: 55px;
}
+ #header label {
+ top: 25px;
+ right: 55px;
+ }
+
#header nav a {
font-size: 16px;
margin-left: 15px;