|
|
@@ -4,7 +4,7 @@
|
|
|
<!-- 标题区域和视频背景 -->
|
|
|
<section class="hero-section">
|
|
|
<!-- 视频背景 -->
|
|
|
- <video ref="videoRef" class="hero-video-bg" src="~/assets/video/home.webm" autoplay loop muted playsinline
|
|
|
+ <video ref="videoRef" class="hero-video-bg" preload="auto" :src="homeVideo" autoplay loop muted playsinline
|
|
|
@loadedmetadata="onVideoLoaded"></video>
|
|
|
<!-- Canvas动画组件 -->
|
|
|
<ParticlesCanvas class="canvas-overlay" />
|
|
|
@@ -156,7 +156,7 @@
|
|
|
<div class="industry-subtitle">完成注册,即可免费体验 DDoS防护、CC防护、DNS解析等多款安全产品</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
- <section class="hero-section">
|
|
|
+ <section class="hero-section" style="margin-top: 0;">
|
|
|
<!-- 视频背景 -->
|
|
|
<video ref="videoRef" class="hero-video-bg" src="~/assets/video/home.webm" autoplay loop muted playsinline
|
|
|
@loadedmetadata="onVideoLoaded"></video>
|
|
|
@@ -178,7 +178,7 @@ import ProductTabs from '~/components/home/ProductTabs.vue'
|
|
|
import PlansSection from '~/components/PlansSection.vue'
|
|
|
import ParticlesCanvas from '~/components/ParticlesCanvas.vue'
|
|
|
import SecurityParticles from '~/components/SecurityParticles.vue'
|
|
|
-
|
|
|
+import homeVideo from '~/assets/video/home.webm'
|
|
|
|
|
|
|
|
|
|
|
|
@@ -194,12 +194,13 @@ const onVideoLoaded = () => {
|
|
|
useHead(() => ({
|
|
|
title: 'DDAC',
|
|
|
meta: [
|
|
|
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
+ { name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' },
|
|
|
{ name: 'description', content: 'DDAC - 游戏盾防御' },
|
|
|
{ name: 'keywords', content: '高防服务器 | 高防DNS | 游戏盾SDK | 高防CDN' }
|
|
|
],
|
|
|
link: [
|
|
|
- { rel: 'icon', href: '/favicon.ico' }
|
|
|
+ { rel: 'icon', href: '/favicon.ico' },
|
|
|
+ // { rel: 'preload', as: 'video', href: homeVideo }
|
|
|
],
|
|
|
htmlAttrs: {
|
|
|
lang: 'en'
|
|
|
@@ -230,17 +231,17 @@ useHead(() => ({
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- padding: 81px 0 0;
|
|
|
+ margin-top: 182px;
|
|
|
box-sizing: border-box;
|
|
|
- overflow: hidden;
|
|
|
|
|
|
.hero-video-bg {
|
|
|
position: absolute;
|
|
|
- top: -3%;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
+ top: 32%;
|
|
|
+ left: 50%;
|
|
|
+ width: 1200px;
|
|
|
+ transform: translate(-50%);
|
|
|
object-fit: cover;
|
|
|
- clip-path: inset(0 0 50% 0);
|
|
|
+ clip-path: inset(0 0 40% 0);
|
|
|
z-index: 0;
|
|
|
}
|
|
|
|
|
|
@@ -503,7 +504,7 @@ $Diameter :890px;
|
|
|
align-items: center;
|
|
|
width: 240px;
|
|
|
height: 100px;
|
|
|
- border-radius: 20px;
|
|
|
+ border-radius: 10px;
|
|
|
border: 1px solid #B2A1FF;
|
|
|
background: #1C192B;
|
|
|
}
|