index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <section class="mb-index">
  3. <section>
  4. <div class="mb-home-title">
  5. <h1>您专注业务,我们守护安全再强的攻击,也有攻不破的防线</h1>
  6. <p>高防服务器 | 高防DNS | 游戏盾SDK高防CDN 全方位守护您的业务</p>
  7. </div>
  8. <div class="mb-video-content">
  9. <video ref="videoRef" class="mb-video" preload="auto" :src="homeVideo" autoplay loop muted playsinline
  10. @loadedmetadata="onVideoLoaded"></video>
  11. <ParticlesCanvas :size="1" class="canvas-overlay" />
  12. <ProductTabs class="mb-tabs-positioner" />
  13. </div>
  14. </section>
  15. <PlansSection class="mb-plans-section" />
  16. <section class="mb-subtitle">
  17. <h2>全景技术架构让技术成为增长引擎</h2>
  18. <p>从基础设施、数据引擎、服务中台到业务应用,层层协同,将算力、数据与能力统一管理</p>
  19. </section>
  20. <Flowchart class="mb-flowchart" />
  21. <section class="mb-insight-header">
  22. <h2 class="mb-insight-title">安全洞见&nbsp;&nbsp;&nbsp;全网感知</h2>
  23. <p class="mb-insight-subtitle">实时攻防态势数据</p>
  24. </section>
  25. <StatsSection />
  26. </section>
  27. </template>
  28. <script setup>
  29. import homeVideo from '~/assets/video/home.webm'
  30. import ProductTabs from '~/components/mobile/home/ProductTabs.vue'
  31. import PlansSection from '~/components/mobile/home/PlansSection.vue'
  32. import Flowchart from '~/components/mobile/home/Flowchart.vue'
  33. import StatsSection from '~/components/mobile/home/StatsSection.vue';
  34. </script>
  35. <style scoped lang="scss">
  36. .mb-index {
  37. .mb-home-title {
  38. position: relative;
  39. margin-top: 20px;
  40. display: flex;
  41. flex-direction: column;
  42. align-items: center;
  43. gap: 8px;
  44. z-index: 1;
  45. h1 {
  46. text-align: center;
  47. width: 240px;
  48. font-size: 18px;
  49. font-weight: 500;
  50. line-height: 26px;
  51. background: linear-gradient(90deg, #7C4DFF 0.24%, #DEB9FF 45.03%, #617FFF 132.52%);
  52. background-clip: text;
  53. -webkit-background-clip: text;
  54. -webkit-text-fill-color: transparent;
  55. }
  56. p {
  57. color: rgba(255, 255, 255, 0.80);
  58. width: 184px;
  59. text-align: center;
  60. font-size: 12px;
  61. font-weight: 350;
  62. line-height: 20px;
  63. }
  64. }
  65. .mb-video-content {
  66. height: 500px;
  67. position: relative;
  68. z-index: 0;
  69. .mb-video {
  70. width: 100%;
  71. height: auto;
  72. position: absolute;
  73. top: 20%;
  74. transform: translateY(-50%);
  75. left: 0;
  76. }
  77. .canvas-overlay {
  78. position: absolute;
  79. top: 18%;
  80. transform: translateY(-50%);
  81. left: 0;
  82. height: 80px;
  83. z-index: 1;
  84. }
  85. .mb-tabs-positioner {
  86. position: absolute;
  87. top: 56%;
  88. left: 0;
  89. transform: translateY(-50%);
  90. z-index: 1
  91. }
  92. }
  93. .mb-plans-section {
  94. margin-top: 18px;
  95. padding-bottom: 20px;
  96. }
  97. .mb-subtitle {
  98. margin-top: 32px;
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. gap: 12px;
  103. h2 {
  104. width: 216px;
  105. color: #FFF;
  106. text-align: center;
  107. font-size: 24px;
  108. font-weight: 400;
  109. line-height: 36px;
  110. }
  111. p {
  112. width: 322px;
  113. color: rgba(255, 255, 255, 0.80);
  114. text-align: center;
  115. font-size: 12px;
  116. font-weight: 400;
  117. line-height: 16px;
  118. }
  119. }
  120. .mb-flowchart {
  121. margin-top: 24px;
  122. padding-bottom: 32px;
  123. }
  124. .mb-insight-header {
  125. width: 174px;
  126. margin: 0 auto;
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. gap: 8px;
  131. .mb-insight-title {
  132. color: #FFF;
  133. font-size: 20px;
  134. font-weight: 400;
  135. line-height: 24px;
  136. }
  137. .mb-insight-subtitle {
  138. color: #A39DFF;
  139. font-size: 12px;
  140. font-weight: 400;
  141. }
  142. }
  143. }
  144. </style>