From 6baba3a4341cdc4890bd26debc4a1520ad229bac 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 ------------------ www/layouts/_default/baseof.html | 3 --- www/layouts/index.html | 23 +++-------------------- 5 files changed, 3 insertions(+), 65 deletions(-) (limited to 'www') 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 - } - }) -}) diff --git a/www/layouts/_default/baseof.html b/www/layouts/_default/baseof.html index 621aea1..6d00be5 100644 --- a/www/layouts/_default/baseof.html +++ b/www/layouts/_default/baseof.html @@ -19,9 +19,6 @@ {{ end }} -
- 🙃The world is full of pain, but we can fix it with love! -
{{ block "pre-article" .}} {{ end }}
diff --git a/www/layouts/index.html b/www/layouts/index.html index e05af03..abf8a74 100644 --- a/www/layouts/index.html +++ b/www/layouts/index.html @@ -26,12 +26,9 @@

Welcome to my home page! Nice to meet you here! 🥰

-

If you have something interesting to share with me, feel free to email me - at crupest@crupest.life. - You can also create an issue in any of my repos - on GitHub to talk - anything to me. -

+

Feel free to contact me via my email address **, + or just create an issue in any of my GitHub + repos. I love talking with people a lot.

-
-
-

Always Remember

-
-
-

Die Philosophen haben die Welt nur verschieden interpretiert, es kömmt aber darauf an, sie zu verändern.

-

Translated from German: - The philosophers have only interpreted the world in various ways, the point is to change it.

-
-
- Karl Marx, Theses on Feuerbach (1845) -
-
-
{{ end }} -- cgit v1.2.3