index.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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>
  22. </template>
  23. <script setup>
  24. import homeVideo from '~/assets/video/home.webm'
  25. import ProductTabs from '~/components/mobile/home/ProductTabs.vue'
  26. import PlansSection from '~/components/mobile/home/PlansSection.vue'
  27. import Flowchart from '~/components/mobile/home/Flowchart.vue'
  28. </script>
  29. <style scoped lang="scss">
  30. .mb-index {
  31. .mb-home-title {
  32. position: relative;
  33. margin-top: 20px;
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. gap: 8px;
  38. z-index: 1;
  39. h1 {
  40. text-align: center;
  41. width: 240px;
  42. font-size: 18px;
  43. font-weight: 500;
  44. line-height: 26px;
  45. background: linear-gradient(90deg, #7C4DFF 0.24%, #DEB9FF 45.03%, #617FFF 132.52%);
  46. background-clip: text;
  47. -webkit-background-clip: text;
  48. -webkit-text-fill-color: transparent;
  49. }
  50. p {
  51. color: rgba(255, 255, 255, 0.80);
  52. width: 184px;
  53. text-align: center;
  54. font-size: 12px;
  55. font-weight: 350;
  56. line-height: 20px;
  57. }
  58. }
  59. .mb-video-content {
  60. height: 500px;
  61. position: relative;
  62. z-index: 0;
  63. .mb-video {
  64. width: 100%;
  65. height: auto;
  66. position: absolute;
  67. top: 20%;
  68. transform: translateY(-50%);
  69. left: 0;
  70. }
  71. .canvas-overlay {
  72. position: absolute;
  73. top: 18%;
  74. transform: translateY(-50%);
  75. left: 0;
  76. height: 80px;
  77. z-index: 1;
  78. }
  79. .mb-tabs-positioner {
  80. position: absolute;
  81. top: 56%;
  82. left: 0;
  83. transform: translateY(-50%);
  84. z-index: 1
  85. }
  86. }
  87. .mb-plans-section {
  88. margin-top: 18px;
  89. padding-bottom: 20px;
  90. }
  91. .mb-subtitle {
  92. margin-top: 32px;
  93. display: flex;
  94. flex-direction: column;
  95. align-items: center;
  96. gap: 12px;
  97. h2 {
  98. width: 216px;
  99. color: #FFF;
  100. text-align: center;
  101. font-size: 24px;
  102. font-weight: 400;
  103. line-height: 36px;
  104. }
  105. p {
  106. width: 322px;
  107. color: rgba(255, 255, 255, 0.80);
  108. text-align: center;
  109. font-size: 12px;
  110. font-weight: 400;
  111. line-height: 16px;
  112. }
  113. }
  114. .mb-flowchart {
  115. margin-top: 24px;
  116. padding-bottom: 32px;
  117. }
  118. }
  119. </style>