aboutsummaryrefslogtreecommitdiff
path: root/www/assets
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-10 16:52:00 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-10 17:12:17 +0800
commit0eae3f8365c8012331c7de0696b0267f674996ed (patch)
tree9ce744c22608747b4b8264f765cf44ec5fca3171 /www/assets
parent32315f0f6548cddf55a90c4ce584852f59813cf2 (diff)
downloadcrupest-0eae3f8365c8012331c7de0696b0267f674996ed.tar.gz
crupest-0eae3f8365c8012331c7de0696b0267f674996ed.tar.bz2
crupest-0eae3f8365c8012331c7de0696b0267f674996ed.zip
chore(www): remove slogan and quotes, simplify greetings.
Diffstat (limited to 'www/assets')
-rw-r--r--www/assets/res/css/base.css18
-rw-r--r--www/assets/res/css/home.css6
-rw-r--r--www/assets/res/js/color-scheme.ts18
3 files changed, 0 insertions, 42 deletions
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
- }
- })
-})