From a8f5cf40976bd89ef03ba4aa569ddc462e9905dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Thu, 5 Mar 2026 14:23:58 +0100 Subject: [PATCH] replace PDF iframe with download links, remove main.js --- eurkey-macos.eu/index.html | 17 +++------- eurkey-macos.eu/main.js | 16 --------- eurkey-macos.eu/style.css | 66 +++++++++++++------------------------- 3 files changed, 27 insertions(+), 72 deletions(-) delete mode 100644 eurkey-macos.eu/main.js diff --git a/eurkey-macos.eu/index.html b/eurkey-macos.eu/index.html index 7b65e11..67500c1 100644 --- a/eurkey-macos.eu/index.html +++ b/eurkey-macos.eu/index.html @@ -71,17 +71,11 @@

Layout Preview

The complete key map for each version, showing all modifier layers and dead key compositions.

-
- - - - -
- @@ -142,6 +136,5 @@
- diff --git a/eurkey-macos.eu/main.js b/eurkey-macos.eu/main.js deleted file mode 100644 index 7892a6d..0000000 --- a/eurkey-macos.eu/main.js +++ /dev/null @@ -1,16 +0,0 @@ -document.addEventListener("DOMContentLoaded", () => { - const tabs = document.querySelectorAll(".tab"); - const viewer = document.getElementById("pdf-viewer"); - const download = document.getElementById("pdf-download"); - - tabs.forEach(tab => { - tab.addEventListener("click", () => { - tabs.forEach(t => t.classList.remove("active")); - tab.classList.add("active"); - const version = tab.dataset.version; - const url = `pdf/eurkey-${version}-layout.pdf`; - viewer.src = url; - download.href = url; - }); - }); -}); diff --git a/eurkey-macos.eu/style.css b/eurkey-macos.eu/style.css index bf024c8..046d62c 100644 --- a/eurkey-macos.eu/style.css +++ b/eurkey-macos.eu/style.css @@ -207,55 +207,40 @@ img { margin-bottom: 2rem; } -.layout-tabs { +.layout-downloads { display: flex; justify-content: center; - gap: 0.5rem; - margin-bottom: 1.5rem; + gap: 1rem; + flex-wrap: wrap; } -.tab { +.layout-link { + display: inline-flex; + align-items: center; + gap: 0.5rem; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; - padding: 0.5rem 1.25rem; - font-size: 0.9rem; - font-weight: 500; - cursor: pointer; + padding: 0.75rem 1.5rem; + font-size: 1rem; + font-weight: 600; + color: #1a1a2e; + text-decoration: none; transition: all 0.15s; - color: #5a6178; } -.tab:hover { +.layout-link span { + font-size: 0.75rem; + font-weight: 500; + color: #5a6178; + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.layout-link:hover { border-color: #003399; color: #003399; -} - -.tab.active { - background: #003399; - border-color: #003399; - color: #fff; -} - -.layout-viewer { - background: #fff; - border: 1px solid rgba(0, 0, 0, 0.08); - border-radius: 12px; - overflow: hidden; -} - -.layout-viewer iframe { - width: 100%; - height: 600px; - border: none; -} - -.layout-fallback { - text-align: center; - padding: 0.75rem; - font-size: 0.875rem; - color: #5a6178; - border-top: 1px solid rgba(0, 0, 0, 0.06); + text-decoration: none; } /* Installation */ @@ -372,9 +357,6 @@ img { grid-template-columns: repeat(2, 1fr); } - .layout-viewer iframe { - height: 400px; - } } @media (max-width: 480px) { @@ -394,10 +376,6 @@ img { grid-template-columns: 1fr; } - .layout-viewer iframe { - height: 300px; - } - .install-screenshots { grid-template-columns: 1fr; }