From 4663210f91af39eba9e2b8b774d88654e00783cc Mon Sep 17 00:00:00 2001 From: futile Date: Thu, 23 Jul 2026 16:58:40 +0100 Subject: [PATCH] small cleanup --- index.html | 28 +++++++++++++--------------- index.js | 22 ---------------------- index.css => style/reset.css | 30 ------------------------------ style/style.css | 29 +++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 67 deletions(-) delete mode 100644 index.js rename index.css => style/reset.css (54%) create mode 100644 style/style.css diff --git a/index.html b/index.html index 1266803..0c89519 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,15 @@ - + - - - - futile - - - - - -

- futile -

- - + + + futile + + + + + +

+ futile +

+ diff --git a/index.js b/index.js deleted file mode 100644 index 1619772..0000000 --- a/index.js +++ /dev/null @@ -1,22 +0,0 @@ -function onKonamiCode(callback) { - let input = ""; - const konami = - "arrowuparrowuparrowdownarrowdownarrowleftarrowrightarrowleftarrowrightba"; - document.addEventListener("keydown", (e) => { - input = (input + e.key.toLowerCase()).slice(-konami.length); - if (input === konami) callback(); - }); -} - -onKonamiCode(() => { - const body = document.body; - const header = document.getElementById("header"); - - if (body.style.backgroundColor === "white") { - body.style.backgroundColor = "black"; - header.style.color = "white"; - } else { - body.style.backgroundColor = "white"; - header.style.color = "black"; - } -}); diff --git a/index.css b/style/reset.css similarity index 54% rename from index.css rename to style/reset.css index 37df43a..7117dcc 100644 --- a/index.css +++ b/style/reset.css @@ -42,33 +42,3 @@ h1, h2, h3, h4, h5, h6 { isolation: isolate; } /* CSS reset */ - -@font-face { - font-family: "Pirata One"; - src: url("assets/Pirata One.woff2") format("woff2"); -} - -.body { - display: flex; - justify-content: center; - align-items: center; - height: 100vh; - overflow: hidden; - background-color: black; -} - -.header { - font-weight: 600; - font-family: Pirata One; - font-size: clamp(1em, 12em, 40vw); - user-select: none; - line-height: 1; - overflow: hidden; - color: white; -} - -@supports not (-moz-appearance: none) { - .header { - font-weight: 400; - } -} diff --git a/style/style.css b/style/style.css new file mode 100644 index 0000000..5976312 --- /dev/null +++ b/style/style.css @@ -0,0 +1,29 @@ +@font-face { + font-family: "Pirata One"; + src: url("../assets/Pirata One.woff2") format("woff2"); +} + +.body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + overflow: hidden; + background-color: black; +} + +.header { + font-weight: 600; + font-family: Pirata One; + font-size: clamp(1em, 12em, 40vw); + user-select: none; + line-height: 1; + overflow: hidden; + color: white; +} + +@supports not (-moz-appearance: none) { + .header { + font-weight: 400; + } +}