From fda3bed33c9b000fe67f0295f0a6b3559935168d Mon Sep 17 00:00:00 2001 From: SDUTAIer Date: Tue, 31 Dec 2024 22:58:40 +0800 Subject: [PATCH] 11 --- src/assets/hard.css | 11 ++++++----- src/assets/night.css | 18 ++++++++++++------ src/components/Hard.vue | 4 ++-- src/components/Night.vue | 5 ++--- src/views/Message.vue | 7 ++++--- 5 files changed, 26 insertions(+), 19 deletions(-) diff --git a/src/assets/hard.css b/src/assets/hard.css index 34bd4ad..4f74aaa 100644 --- a/src/assets/hard.css +++ b/src/assets/hard.css @@ -20,19 +20,20 @@ .hardtxt { letter-spacing: 0.1rem; width: 6rem; - height: 15% !important; + height: 20% !important; display: flex; + flex-direction: column; font-size: 0.35rem; font-weight: 700; - justify-content: start; - align-items: start; + justify-content: center; + align-items: center; background-clip: text; flex-wrap: wrap; color: rgba(0, 0, 0, 0); background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%); position: absolute; left: 1rem; - top: 0rem; + top: 5% !important; transition: all 1s ease; transition-delay: 0.5s; transform: translateX(-3rem); @@ -59,7 +60,7 @@ font-weight: 70; display: flex; color: aliceblue; - justify-content: start; + justify-content: center; align-items: center; transition: all 1s ease; transition-delay: 1s; diff --git a/src/assets/night.css b/src/assets/night.css index 5089937..cdc0560 100644 --- a/src/assets/night.css +++ b/src/assets/night.css @@ -51,14 +51,16 @@ } .nightfont { + white-space: nowrap; position: absolute; z-index: 3; display: flex; + flex-direction: column; justify-content: start; align-items: center; width: 6rem; - height: 1rem; - top: 0; + height: 4rem !important; + top: 5% !important; left: 1rem; /* background-color: red; */ font-size: 0.35rem; @@ -84,13 +86,13 @@ .nightgl { display: flex; - justify-content: start; + justify-content: center; align-items: center; width: 5rem; - height: 0.5rem; + height: 1rem !important; position: absolute; left: 1.2rem; - top: 1.1rem; + top: 24% !important; color: aliceblue; font-weight: 70; font-size: 0.2rem; @@ -101,9 +103,13 @@ filter: blur(0.1rem); .haiyou{ + display: flex; + width: 100%; + justify-content: center; + align-items: center; position: absolute; left: 0; - top: 100%; + top: 90%; font-size: .3rem; } } diff --git a/src/components/Hard.vue b/src/components/Hard.vue index 653b71a..809b4a6 100644 --- a/src/components/Hard.vue +++ b/src/components/Hard.vue @@ -2,8 +2,8 @@
- 还记得
{{ maxtries }}
这道题吗?你提交了整整 {{ cnt }} 次才过 + 还记得「{{ maxtries }}」这道题吗?你提交了整整 {{ cnt }} 次才过
那份喜悦背后的坚韧,一定也陪你走到了今天 diff --git a/src/components/Night.vue b/src/components/Night.vue index 6ca401a..dd90bdd 100644 --- a/src/components/Night.vue +++ b/src/components/Night.vue @@ -2,12 +2,11 @@
- 与星同行的你{{ night }}还在做题😴 +

与星同行的你

{{ night }}

还在做题😴

这是属于你的不眠之夜 -
在这一晚,还有{{haiyou}}名用户和你一样在夜色中遨想星河
- +
在这一晚,还有{{haiyou}}名用户和你一样在夜色中遨想星河
diff --git a/src/views/Message.vue b/src/views/Message.vue index 1a25d83..d7f45bf 100644 --- a/src/views/Message.vue +++ b/src/views/Message.vue @@ -6,8 +6,11 @@ class="next" :class="{ nextactive: isnext }" /> + + + -
+
@@ -68,8 +71,6 @@ - -