web.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div>
  3. <section class="video-section">
  4. <video ref="videoRef" class="video-bg" src="~/assets/video/web.mp4" autoplay loop muted playsinline
  5. @loadedmetadata="onVideoLoaded"></video>
  6. <div class="video-title">
  7. <p class="video-text">Intelligent routing / dynamic optimization / real-time processing</p>
  8. <h1><span>智能</span>路由/<span>动态</span>优化/<span>实时</span>处理</h1>
  9. <div class="video-subtitle">不止于快,更稳更安全,为您的业务保驾护航</div>
  10. <div class="video-btn">
  11. <span>联系我们</span>
  12. <Icon name="line-md:chevron-right" />
  13. </div>
  14. </div>
  15. </section>
  16. <section class="cdn-container">
  17. <div class="cdn-title">
  18. <h2>
  19. 678CDN功能
  20. </h2>
  21. <p>让科技为您的业务发光发亮,CDN功能助力您的网站顺畅、高效、安全地运作,
  22. 同时提供数据防范和预防技术,让您的网站免于遭受恶意攻击</p>
  23. </div>
  24. </section>
  25. </div>
  26. </template>
  27. <script setup>
  28. definePageMeta({
  29. layout: 'pc'
  30. })
  31. </script>
  32. <style lang="scss" scoped>
  33. .video-section {
  34. position: relative;
  35. width: 100%;
  36. margin: 0 auto;
  37. overflow: hidden;
  38. .video-bg {
  39. width: 100%;
  40. height: auto;
  41. display: block;
  42. z-index: 1;
  43. position: relative;
  44. object-fit: cover;
  45. clip-path: inset(0 0 9% 0);
  46. }
  47. .video-title {
  48. position: absolute;
  49. top: 30%;
  50. left: 48%;
  51. transform: translateX(-50%);
  52. width: 100%;
  53. max-width: 1200px;
  54. z-index: 3;
  55. color: #fff;
  56. font-style: normal;
  57. display: flex;
  58. flex-direction: column;
  59. h1 {
  60. color: #D8D3FF;
  61. font-size: 45px;
  62. font-style: normal;
  63. font-weight: 500;
  64. line-height: 80px;
  65. span {
  66. color: #997DFF;
  67. }
  68. }
  69. .video-subtitle {
  70. margin-top: 20px;
  71. color: #E2D9FF;
  72. font-size: 20px;
  73. font-style: normal;
  74. font-weight: 400;
  75. line-height: 30px;
  76. }
  77. .video-text {
  78. color: #E2D9FF;
  79. font-size: 20px;
  80. font-style: normal;
  81. font-weight: 300;
  82. line-height: 30px;
  83. }
  84. p {
  85. color: #E2D9FF;
  86. font-size: 20px;
  87. font-weight: 400;
  88. line-height: 20px;
  89. }
  90. .video-btn {
  91. cursor: pointer;
  92. margin-top: 112px;
  93. display: flex;
  94. box-sizing: border-box;
  95. width: 255px;
  96. height: 60px;
  97. padding: 7px 21px 7px 45px;
  98. justify-content: center;
  99. align-items: center;
  100. gap: 10px;
  101. border-radius: 10px;
  102. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  103. }
  104. }
  105. }
  106. .cdn-container {
  107. width: 100%;
  108. display: flex;
  109. flex-direction: column;
  110. align-items: center;
  111. .cdn-title {
  112. display: flex;
  113. flex-direction: column;
  114. align-items: center;
  115. gap: 20px;
  116. h2 {
  117. font-size: 45px;
  118. font-style: normal;
  119. font-weight: 500;
  120. line-height: 45px;
  121. background: linear-gradient(90deg, #B8AFFF 20.05%, #C597FF 101.05%);
  122. background-clip: text;
  123. -webkit-background-clip: text;
  124. -webkit-text-fill-color: transparent;
  125. }
  126. p {
  127. color: #E2D9FF;
  128. text-align: center;
  129. font-size: 24px;
  130. font-style: normal;
  131. font-weight: 400;
  132. line-height: 36px;
  133. }
  134. }
  135. }
  136. </style>