From 0eae3f8365c8012331c7de0696b0267f674996ed Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Tue, 10 Jun 2025 16:52:00 +0800 Subject: chore(www): remove slogan and quotes, simplify greetings. --- www/assets/res/css/base.css | 18 ------------------ www/assets/res/css/home.css | 6 ------ www/assets/res/js/color-scheme.ts | 18 ------------------ 3 files changed, 42 deletions(-) (limited to 'www/assets/res') diff --git a/www/assets/res/css/base.css b/www/assets/res/css/base.css index c628271..06fcb4b 100644 --- a/www/assets/res/css/base.css +++ b/www/assets/res/css/base.css @@ -70,19 +70,6 @@ nav { font-size: large; } -#slogan { - color: white; - width: 100%; - padding: 0.5em 1em; - text-align: center; - background-color: dodgerblue; - user-select: none; - - & > * { - user-select: text; - } -} - #main-article { position: relative; left: 50%; @@ -147,9 +134,4 @@ html[data-theme="dark"] { & a:visited { color:#abcac4; } - - & #slogan { - color: var(--body-fg-color); - background-color: midnightblue; - } } diff --git a/www/assets/res/css/home.css b/www/assets/res/css/home.css index 3df42ff..60c9ac7 100644 --- a/www/assets/res/css/home.css +++ b/www/assets/res/css/home.css @@ -1,9 +1,3 @@ -#slogan { - position: sticky; - z-index: 1; - top: 0; -} - #avatar { float: right; } diff --git a/www/assets/res/js/color-scheme.ts b/www/assets/res/js/color-scheme.ts index db6a3aa..fb4accf 100644 --- a/www/assets/res/js/color-scheme.ts +++ b/www/assets/res/js/color-scheme.ts @@ -90,21 +90,3 @@ function next(): Scheme | null { } } } - -window.addEventListener("load", () => { - const slogon = document.getElementById("slogan")! - let clicks: number = 0 - - const reset = createResetTimer(() => { - clicks = 0 - }) - - slogon.addEventListener("click", () => { - reset() - clicks += 1 - if (clicks === 3) { - saveScheme(next()) - clicks = 0 - } - }) -}) -- cgit v1.2.3