Skip to content

Commit

Permalink
feat: up
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Dec 31, 2024
1 parent 05fffe4 commit 231bf44
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/assets/master.css
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
font-size: 25px;
font-weight: 800;
margin-left: 60px;
margin-top: 4px;
color: #ea9518;
top: -5px;
}
Expand Down
8 changes: 7 additions & 1 deletion src/assets/sumarry.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
letter-spacing: 0;
font-size: 0.55rem;
}
.days-num,
.achiv-num,
.rating {
width: 50%;
Expand All @@ -147,6 +148,12 @@
margin-left: 0.2rem;
}
}
.days-num {
span {
color: #4ba6e4;
margin-right: 6px;
}
}

.contests {
width: 100%;
Expand Down Expand Up @@ -179,7 +186,6 @@
.heading-secondary,
.heading-tertiary {
color: #000;
text-transform: capitalize;
font-weight: 700 !important;
font-size: 0.6rem;
margin-bottom: 0.4rem;
Expand Down
4 changes: 2 additions & 2 deletions src/components/AchivementStar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ onMounted(() => {
@import url("../assets/achivestar.css");
.gun {
animation: gundong 15s infinite linear;
animation: gundong 30s infinite linear;
}
.gun2 {
animation: gundong2 15s infinite linear;
animation: gundong2 30s infinite linear;
}
@keyframes gundong {
Expand Down
18 changes: 11 additions & 7 deletions src/components/Last.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<section v-if="generate">
<div class="font2">
<span class="font2-txt">时至今日,</span>
<span class="font2-txt">我们的旅程已经开始了{{ days }}天。</span>
<span class="font2-txt">我们的旅程已经开始了 {{ days }} 天。</span>
<span class="font2-txt">看似一眨眼的时间,</span>
<span class="font2-txt">却承载了我们无可忘却的珍重回忆。</span>
<span class="font2-txt">以这份回忆的重量所编织的纽带,</span>
Expand Down Expand Up @@ -110,7 +110,7 @@
<p v-if="percent > 0" class="percent">Top {{ percentVal }}%</p>
</div>
<div class="ac-num">
<div class="rating" v-if="showRating">
<div class="rating" v-if="false && showRating">
Rating
<span
class="rating-color"
Expand Down Expand Up @@ -140,6 +140,10 @@
<div class="achiv-num">
总成就数 <span>{{ userAchieve }}</span>
</div>

<div class="days-num">
同行&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span>{{ days }}</span> 天
</div>
</div>
<div class="contests" v-if="haveContest">
<li
Expand Down Expand Up @@ -234,7 +238,7 @@ onMounted(() => {
entry.target.classList.add("charsanim");
const title = document.querySelector(".title");
title.classList.remove("fontactive");
}, 31000);
}, 26000);
} else {
entry.target.classList.remove("charsanim");
}
Expand All @@ -249,7 +253,7 @@ onMounted(() => {
if (entry.isIntersecting) {
setTimeout(() => {
entry.target.classList.add("font1anim");
}, 31000);
}, 26000);
} else {
entry.target.classList.remove("font1anim");
}
Expand All @@ -275,13 +279,13 @@ onMounted(() => {
});
setTimeout(() => {
entry.target.classList.add("remove");
}, 30000);
}, 25000);
setTimeout(() => {
const sdutoj = document.querySelector(".sdutoj");
sdutoj.classList.add("sdutojanim");
const btn = document.querySelector(".btn");
btn.classList.add("sdutojanim");
}, 31000);
}, 26000);
}
});
},
Expand All @@ -294,7 +298,7 @@ onMounted(() => {
if (entry.isIntersecting) {
setTimeout(() => {
entry.target.classList.add("btm-logo");
}, 31000);
}, 26000);
} else {
entry.target.classList.remove("btm-logo");
}
Expand Down
8 changes: 5 additions & 3 deletions src/components/Master.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<div class="master">
<div class="mstxt">
<div class="mstxt1">纵观整个OJ</div>
<!-- <div class="mstxt5">在所有成就中,最稀有的成就是<span>{{ title }}</span></div>
<div class="mstxt6">仅有<span>{{ rareNum }}</span>人达成</div> -->

<div class="mstxt2">
<span>最强成就大师</span><img
:src="`https://cdn.sdutacm.cn/oj/image/avatars/${masterAvatar}`"
Expand All @@ -12,8 +15,6 @@
</div>
<div class="mstxt3">已经达成了<span>{{ masterNum }}</span>项成就</div>
<div class="mstxt4">距离<span>{{ globalAchiveNum }}</span>项全成就仅有一步之遥</div>
<div class="mstxt5">在所有成就中,最稀有的成就是<span>{{ title }}</span></div>
<div class="mstxt6">仅有<span>{{ rareNum }}</span>人达成</div>
</div>
<div class="cards">
<div class="outlinePage">
Expand Down Expand Up @@ -198,7 +199,8 @@ onMounted(() => {
{ threshold: 0.5 }
);
const mstxt1s = document.querySelectorAll(
".mstxt1, .mstxt2, .mstxt3, .mstxt4, .mstxt5, .mstxt6, .cards"
// ".mstxt1, .mstxt5, .mstxt6, .mstxt2, .mstxt3, .mstxt4, .cards"
".mstxt1, .mstxt2, .mstxt3, .mstxt4, .cards"
);
mstxt1s.forEach((mstxt1) => ms1anim.observe(mstxt1));
});
Expand Down

0 comments on commit 231bf44

Please # to comment.