11<template >
2- <div class =" section-container" >
3- <section id =" first-section" >
2+ <section >
43
5- <div id =" bg" :style =" { backgroundImage: `url(${randomImage})` }" >
4+ <div id =" big- bg" :style =" { backgroundImage: `url(${randomImage})` }" >
65
7- </div >
6+ </div >
87
9- <div id =" big-bg" >
10- <div id =" bg-overlay" :class =" { 'rotate-animation': randomImage === 'imgs/bg/small_videos.png' }"
11- :style =" { backgroundImage: `url(${randomImage})` }" >
12- <!-- 背景部分 -->
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+ <!-- 背景部分 -->
12+ </div >
13+ <div class =" content" >
14+ <div style =" cursor : pointer " @click =" openLink" >
15+ <img id =" index-logo" alt =" 星梦起航,点击跳转~" src =" /logo_super.svg" >
1316 </div >
14- <div class =" content" >
15- <div style =" cursor : pointer " @click =" openLink" >
16- <img id =" index-logo" alt =" 星梦起航,点击跳转~" src =" /logo_super.svg" >
17- </div >
18- <div id =" box-cursor" >
19- <span id =" box" ></span >
20- </div >
17+ <div id =" box-cursor" >
18+ <span id =" box" ></span >
2119 </div >
2220 </div >
23- </section >
24- <section >
25- </section >
26-
27- </div >
21+ </div >
22+ <SponsorsLinks />
23+ </section >
2824
2925</template >
3026
3127<script setup>
3228import {onBeforeUnmount , onMounted , ref } from ' vue' ;
3329import Typed from ' typed.js' ;
30+ import SponsorsLinks from " ./SponsorsLinks.vue" ;
3431// 响应式数据
3532const randomImage = ref (' ' );
3633const openLink = () => {
@@ -43,7 +40,7 @@ const changeBgHeight = () => {
4340
4441 const headerHeight = header .clientHeight ;
4542 console .log (headerHeight)
46- const bg1 = document .querySelector (' #bg' );
43+ const bg1 = document .querySelector (' #big- bg' );
4744 // bg.style.height = `calc(100vh)`;
4845 // bg1.style.height = `calc(100vh)`;
4946 bg .style .height = ` calc(100vh - ${ headerHeight} px)` ;
@@ -139,55 +136,23 @@ onBeforeUnmount(() => {
139136 </script >
140137
141138<style >
142- /* div {
143- padding-top: 0 !important;
144-
145- }
146-
147- header {
148- position: fixed !important;
149- opacity: 0.1;
150- z-index: 5;
151- }
152-
153- header:hover {
154- top: 0;
155- } */
156-
157- /* .vp-doc{
158- width:100% !important;
159- } */
160- /* .section-container{
161- width: 100vw;
162- background-color: antiquewhite;
163- scroll-snap-type:y mandatory;
164- } */
165-
166- .container {
167- padding : 0 !important ;
168- /* max-width:3000 !important; */
169- margin : 0 !important ;
170- }
171139
172140body ::-webkit-scrollbar {
173141 display : none ;
174- /* Safari 和 Chrome */
175142}
176143
177144* {
178145 margin : 0 ;
179146 padding : 0 ;
180147}
181148
182- #bg {
149+ #big- bg {
183150 height : 100vh ;
184151 width : 100vw ;
185152 position : absolute ;
186153 justify-content : center ;
187154 align-items : center ;
188155 /* background-image: url('imgs/bg/small_1.jpg'); */
189- /* background-image: url('imgs/bg/small_1.jpg'); */
190- /* background-image: url('imgs/bg/1.jpg'); */
191156 /* background-size: cover; */
192157 /* background-size: 100 auto;*/
193158 /* background-size: cover; */
@@ -200,7 +165,7 @@ body::-webkit-scrollbar {
200165 z-index : 1 ;
201166}
202167
203- #big -bg {
168+ #small -bg {
204169 border-radius : 50px ;
205170 height : 100vh ;
206171 width : 100vw ;
@@ -210,11 +175,7 @@ body::-webkit-scrollbar {
210175 justify-content : center ;
211176 align-items : center ;
212177 /* background-image: url('imgs/bg/small_2.png'); */
213- /* background-image: url('imgs/bg/small_1.jpg'); */
214- /* background-image: url('imgs/bg/1.jpg'); */
215178 background-size : contain ;
216- /* background-size: 100% auto; */
217- /* background-size: cover; */
218179 background-position : center ;
219180 color : white ;
220181 font-size : 36px ;
@@ -234,17 +195,12 @@ body::-webkit-scrollbar {
234195 justify-content : center ;
235196 align-items : center ;
236197 /* background-image: url('imgs/bg/small_2.png'); */
237- /* background-image: url('imgs/bg/small_1.jpg'); */
238- /* background-image: url('imgs/bg/1.jpg'); */
239198 background-size : contain ;
240- /* background-size: 100% auto; */
241- /* background-size: cover; */
242199 background-position : center ;
243200 color : white ;
244201 font-size : 36px ;
245202 z-index : 2 ;
246203 background-repeat : no-repeat ;
247- /* 如果有其他样式 */
248204}
249205
250206.content {
@@ -253,8 +209,7 @@ body::-webkit-scrollbar {
253209 flex-direction : column ;
254210 justify-content : center ;
255211 align-items : center ;
256- z-index : 3 ; /* 保证文字在最上层 */
257- /* 其他文字样式 */
212+ z-index : 3 ;
258213}
259214
260215#box {
0 commit comments