From a57cfdff2058fb6af8fad7ca24f5038127ca167c Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Thu, 14 Oct 2021 02:43:57 +0100 Subject: [PATCH] Good bye old friend --- oldsite/css/style.css | 116 ------------------------------------- oldsite/discord/index.html | 5 -- oldsite/index.html | 30 ---------- oldsite/js/main.js | 21 ------- 4 files changed, 172 deletions(-) delete mode 100644 oldsite/css/style.css delete mode 100644 oldsite/discord/index.html delete mode 100644 oldsite/index.html delete mode 100644 oldsite/js/main.js diff --git a/oldsite/css/style.css b/oldsite/css/style.css deleted file mode 100644 index 7165ffa..0000000 --- a/oldsite/css/style.css +++ /dev/null @@ -1,116 +0,0 @@ -:root { - --dark-bg-color: #333; - --light-bg-color: #f7f5eb; - - --dark-text-color: #f7f5eb; - --light-text-color: #333; - - --text-color-white: #fff; - - --text-color-subtle: #999; -} - -@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700); - -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - padding: 3em 2em; - font-family: 'Open Sans', Arial, sans-serif; - color: var(--light-text-color); - background: var(--light-bg-color); -} - -body.dark { - color: var(--dark-text-color); - background: var(--dark-bg-color); -} - -header { - flex: 1; -} - -.content { - display: flex; - min-width: 600px; - width: 50vw; - margin: 0 auto; - margin-top: 30vh; - justify-content: space-around; - flex-direction: column; - text-align: center; -} -.subheader { - padding: 5px 0; -} -.discord { - margin-top: 2rem; - width: 130px; - box-sizing: border-box; - background: #7289da; - border: none; - color: var(--text-color-white); - padding: 10px 5px; - border-radius: 3px; - cursor: pointer; - transition: 0.2s ease; - text-decoration: none; - align-self: center; -} - -.discord:hover { - background: #6b7fc5; -} - -.darkmode-toggle { - position: absolute; - top: 5px; - right: 5px; - height: 40px; - width: 80px; - background: var(--dark-bg-color); - border-radius: 40px; - padding: 3px; - margin: auto; - cursor: pointer; -} -.darkmode-toggle::before { - content: ''; - display: block; - height: 35px; - width: 35px; - border-radius: 30px; - background: var(--light-bg-color); - position: absolute; - z-index: 2; - transform: translate(0); - transition: transform ease-in-out; -} -body.dark .darkmode-toggle { - background: var(--light-bg-color); -} -body.dark .darkmode-toggle::before { - background: var(--dark-bg-color); -} -body.dark .darkmode-toggle::before { - transform: translateX(40px); -} - -.footer { - position: fixed; - font-size: 0.8rem; - bottom: 5px; - left: 0; - color: var(--text-color-subtle); - margin: 0 auto; - text-align: center; - width: 100vw; -} -.footer a { - color: inherit; - text-decoration: none; -} \ No newline at end of file diff --git a/oldsite/discord/index.html b/oldsite/discord/index.html deleted file mode 100644 index 8f82606..0000000 --- a/oldsite/discord/index.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Redirecting to https://discord.gg/wg8ybKYzKK/ - - diff --git a/oldsite/index.html b/oldsite/index.html deleted file mode 100644 index c1cdb7d..0000000 --- a/oldsite/index.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - Marauders of Ishtakar - - - - - - - -
-

New World

-

Ishtakar

- - Join Discord -
- - - -
- - - - \ No newline at end of file diff --git a/oldsite/js/main.js b/oldsite/js/main.js deleted file mode 100644 index 1ebfe7a..0000000 --- a/oldsite/js/main.js +++ /dev/null @@ -1,21 +0,0 @@ -const element = document.querySelector("#dm-toggle") - -let prefersDarkMode = JSON.parse( - window.localStorage.getItem("prefers-dark-mode") -) -if (prefersDarkMode === null) { - prefersDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches -} -if (prefersDarkMode) { - document.body.classList.add("dark") -} else { - document.body.classList.remove("dark") -} -element.addEventListener("click", () => { - document.body.classList.toggle("dark") - prefersDarkMode = !prefersDarkMode - window.localStorage.setItem( - "prefers-dark-mode", - JSON.stringify(prefersDarkMode) - ) -})