@@ -52,7 +52,8 @@ export default class Home extends Vue {
5252 // 服务端默认为非移动设备
5353 this .isMobile = false ;
5454 }
55- }; private handleResize = () => {
55+ };
56+ private handleResize = () => {
5657 this .checkIfMobile ();
5758 };
5859
@@ -80,7 +81,7 @@ export default class Home extends Vue {
8081
8182 // 等待版本数据加载完成
8283 while (! this .homeState .version ) {
83- await new Promise (resolve => setTimeout (resolve , 100 ));
84+ await new Promise (( resolve ) => setTimeout (resolve , 100 ));
8485 }
8586
8687 // 等待图片和其他资源加载完成
@@ -171,6 +172,21 @@ export default class Home extends Vue {
171172 })
172173 "
173174 >
175+ <svg
176+ xmlns =" http://www.w3.org/2000/svg"
177+ width =" 24"
178+ height =" 24"
179+ viewBox =" 0 0 24 24"
180+ fill =" none"
181+ stroke =" currentColor"
182+ stroke-width =" 2"
183+ stroke-linecap =" round"
184+ stroke-linejoin =" round"
185+ >
186+ <circle cx =" 12" cy =" 12" r =" 10" />
187+ <path d =" M12 8v8" />
188+ <path d =" m8 12 4 4 4-4" />
189+ </svg >
174190 前往下载
175191 </div >
176192 </client-only >
@@ -183,18 +199,30 @@ export default class Home extends Vue {
183199
184200<style scoped lang="less">
185201.to-download-button {
186- width : fit-content ;
187- height : fit-content ;
188- padding : 5px 20px ;
189- font-size : var (--font-small-size );
190- background-color : var (--glass-bg-color );
191- border : 2px solid var (--glass-border-color );
202+ padding : 10px 15px ;
203+ @media screen and (min-width : 768px ) {
204+ padding : 15px 20px ;
205+ }
206+ @media screen and (min-width : 1700px ) {
207+ padding : 20px 25px ;
208+ }
209+ border : none ;
210+ outline : none ;
192211 border-radius : 100px ;
193- cursor : pointer ;
212+ font-size : var (--font-small-size );
213+ font-weight : 600 ;
214+ text-decoration : none ;
215+ display : flex ;
216+ justify-content : center ;
217+ align-items : center ;
218+ gap : 6px ;
219+ margin-top : 100px ;
220+ background-color : rgba (255 , 255 , 255 , 0.1 );
221+ backdrop-filter : blur (15px );
222+ outline : 1px solid rgba (255 , 255 , 255 , 0.4 );
194223 color : var (--font-secondary-color );
195- z-index : 10 ;
196- transition : color 0.3s ease ;
197- margin : 50px ;
224+ transition : color 0.5s ease ;
225+ cursor : pointer ;
198226 & :hover {
199227 color : var (--font-primary-color );
200228 }
@@ -229,11 +257,13 @@ export default class Home extends Vue {
229257}
230258
231259/* 动态组件过渡效果 */
232- .beams-enter-active , .beams-leave-active {
260+ .beams-enter-active ,
261+ .beams-leave-active {
233262 transition : opacity 0.8s ease-in-out ;
234263}
235264
236- .beams-enter-from , .beams-leave-to {
265+ .beams-enter-from ,
266+ .beams-leave-to {
237267 opacity : 0 ;
238268}
239269 </style >
0 commit comments