| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <section class="mb-index">
- <section>
- <div class="mb-home-title">
- <h1>您专注业务,我们守护安全再强的攻击,也有攻不破的防线</h1>
- <p>高防服务器 | 高防DNS | 游戏盾SDK高防CDN 全方位守护您的业务</p>
- </div>
- <div class="mb-video-content">
- <video ref="videoRef" class="mb-video" preload="auto" :src="homeVideo" autoplay loop muted playsinline
- @loadedmetadata="onVideoLoaded"></video>
- <ParticlesCanvas :size="1" class="canvas-overlay" />
- <ProductTabs class="mb-tabs-positioner" />
- </div>
- </section>
- <PlansSection class="mb-plans-section" />
- </section>
- </template>
- <script setup>
- import homeVideo from '~/assets/video/home.webm'
- import ProductTabs from '~/components/mobile/home/ProductTabs.vue'
- import PlansSection from '~/components/mobile/home/PlansSection.vue'
- </script>
- <style scoped lang="scss">
- .mb-index {
- .mb-home-title {
- position: relative;
- margin-top: 20px;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- z-index: 1;
- h1 {
- text-align: center;
- width: 240px;
- font-size: 18px;
- font-weight: 500;
- line-height: 26px;
- background: linear-gradient(90deg, #7C4DFF 0.24%, #DEB9FF 45.03%, #617FFF 132.52%);
- background-clip: text;
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- }
- p {
- color: rgba(255, 255, 255, 0.80);
- width: 184px;
- text-align: center;
- font-size: 12px;
- font-weight: 350;
- line-height: 20px;
- }
- }
- .mb-video-content {
- height: 500px;
- position: relative;
- z-index: 0;
- .mb-video {
- width: 100%;
- height: auto;
- position: absolute;
- top: 20%;
- transform: translateY(-50%);
- left: 0;
- }
- .canvas-overlay {
- position: absolute;
- top: 18%;
- transform: translateY(-50%);
- left: 0;
- height: 80px;
- z-index: 1;
- }
- .mb-tabs-positioner {
- position: absolute;
- top: 56%;
- left: 0;
- transform: translateY(-50%);
- z-index: 1
- }
- }
- .mb-plans-section {
- margin-top: 18px;
- padding-bottom: 20px;
- }
- }
- </style>
|