Skip to content

Commit b712ac9

Browse files
committed
feat: 更新首页
1 parent 92d871a commit b712ac9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

index.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
color: var(--text-color);
2828
line-height: 1.7;
2929
overflow-x: hidden;
30+
min-height: 100vh;
31+
display: flex;
32+
flex-direction: column;
3033
}
3134

3235
.container {
@@ -131,11 +134,15 @@
131134
footer {
132135
background: var(--secondary-color);
133136
padding: 3rem 0;
134-
margin-top: 5rem;
137+
margin-top: auto;
135138
text-align: center;
136139
color: white;
137140
}
138141

142+
main {
143+
flex: 1;
144+
}
145+
139146
@media (max-width: 768px) {
140147
.hero-title {
141148
font-size: 2rem;
@@ -220,7 +227,7 @@ <h2>靶场目录</h2>
220227
}
221228

222229
// 页面加载时更新 star 数量
223-
// updateStars();
230+
updateStars();
224231
</script>
225232
</body>
226233
</html>

0 commit comments

Comments
 (0)