Skip to content

Commit e2e9de1

Browse files
committed
feat(增加了首页的友情链接栏目,优化样式)
1 parent b66098f commit e2e9de1

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

docs/index/IndexPage.vue

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
<template>
2-
<section>
32

4-
<div id="big-bg" :style="{ backgroundImage: `url(${randomImage})` }">
3+
<div id="big-bg" :style="{ backgroundImage: `url(${randomImage})` }">
54

6-
</div>
5+
</div>
76

8-
<div id="small-bg">
9-
<div id="bg-overlay" :class="{ 'rotate-animation': randomImage === 'imgs/bg/small_videos.png' }"
10-
:style="{ backgroundImage: `url(${randomImage})` }">
11-
<!-- 背景部分 -->
7+
<div id="center-div">
8+
<div id="small-bg" :class="{ 'rotate-animation': randomImage === 'imgs/bg/small_videos.png' }"
9+
:style="{ backgroundImage: `url(${randomImage})` }">
10+
<!-- 背景部分 -->
11+
</div>
12+
<div class="content">
13+
<div style="cursor: pointer" @click="openLink">
14+
<img id="index-logo" alt="星梦起航,点击跳转~" src="/logo_super.svg">
1215
</div>
13-
<div class="content">
14-
<div style="cursor: pointer" @click="openLink">
15-
<img id="index-logo" alt="星梦起航,点击跳转~" src="/logo_super.svg">
16-
</div>
17-
<div id="box-cursor">
18-
<span id="box"></span>
19-
</div>
16+
<div id="box-cursor">
17+
<span id="box"></span>
2018
</div>
2119
</div>
22-
<SponsorsLinks/>
23-
</section>
20+
</div>
2421

22+
<sponsors-links/>
2523
</template>
2624

2725
<script setup>
@@ -35,7 +33,7 @@ const openLink = () => {
3533
};
3634
const changeBgHeight = () => {
3735
const header = document.querySelector('header');
38-
const bg = document.querySelector('#bg-overlay');
36+
const bg = document.querySelector('#small-bg');
3937
console.log(header.clientHeight)
4038
4139
const headerHeight = header.clientHeight;
@@ -136,6 +134,10 @@ onBeforeUnmount(() => {
136134
</script>
137135

138136
<style>
137+
.container {
138+
padding: 0 !important;
139+
margin: 0 !important;
140+
}
139141
140142
body::-webkit-scrollbar {
141143
display: none;
@@ -153,6 +155,8 @@ body::-webkit-scrollbar {
153155
justify-content: center;
154156
align-items: center;
155157
/* background-image: url('imgs/bg/small_1.jpg'); */
158+
/* background-image: url('imgs/bg/small_1.jpg'); */
159+
/* background-image: url('imgs/bg/1.jpg'); */
156160
/* background-size: cover; */
157161
/*background-size: 100 auto;*/
158162
/* background-size: cover; */
@@ -165,7 +169,7 @@ body::-webkit-scrollbar {
165169
z-index: 1;
166170
}
167171
168-
#small-bg {
172+
#center-div {
169173
border-radius: 50px;
170174
height: 100vh;
171175
width: 100vw;
@@ -174,7 +178,6 @@ body::-webkit-scrollbar {
174178
position: relative;
175179
justify-content: center;
176180
align-items: center;
177-
/* background-image: url('imgs/bg/small_2.png'); */
178181
background-size: contain;
179182
background-position: center;
180183
color: white;
@@ -183,7 +186,7 @@ body::-webkit-scrollbar {
183186
background-repeat: no-repeat;
184187
}
185188
186-
#bg-overlay {
189+
#small-bg {
187190
position: absolute;
188191
top: 0;
189192
left: 0;
@@ -194,7 +197,6 @@ body::-webkit-scrollbar {
194197
flex-direction: column;
195198
justify-content: center;
196199
align-items: center;
197-
/* background-image: url('imgs/bg/small_2.png'); */
198200
background-size: contain;
199201
background-position: center;
200202
color: white;

0 commit comments

Comments
 (0)