sdk.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <section>
  3. <section class="video-section">
  4. <div class="left-bg"></div>
  5. <video ref="videoRef" class="video-bg" src="~/assets/video/sdk.mp4" autoplay loop muted playsinline
  6. @loadedmetadata="onVideoLoaded"></video>
  7. <div class="video-title">
  8. <h1>DDAC游戏盾——让APP自带</h1>
  9. <div class="video-subtitle">“国家级别”防御</div>
  10. <div class="video-text">
  11. <p>我们把7层防护做成了一根函数 StartService</p>
  12. <p>客户端程序员几分钟就能完成集成,黑产却要</p>
  13. <p>重新设计整条攻击链</p>
  14. </div>
  15. </div>
  16. </section>
  17. <Introduction />
  18. <section class="main-text">
  19. <h2 class="main-text-title">一体化解决游戏安全问题</h2>
  20. <p class="main-text-subtitle">整合资源、强化防御,让安全从未如此简单</p>
  21. </section>
  22. <Card />
  23. <section class="products-server">
  24. <h2>为您定制的企业级安全服务包</h2>
  25. <PlansSection style="margin-top: 40px;" />
  26. </section>
  27. <section class="products-sdk">
  28. <h2>安全加速SDK防护架构</h2>
  29. <NuxtImg width="1920" loading="eager" src="/images/products/flowchart.png" alt="安全加速SDK防护架构" />
  30. </section>
  31. </section>
  32. </template>
  33. <script setup>
  34. import { ref } from 'vue'
  35. import Introduction from '~/components/products/Introduction.vue'
  36. import Card from '~/components/products/Card.vue'
  37. const videoRef = ref(null)
  38. const onVideoLoaded = () => {
  39. if (videoRef.value) {
  40. videoRef.value.play().catch(() => {
  41. // 自动播放失败时静默处理
  42. })
  43. }
  44. }
  45. useHead(() => ({
  46. title: 'SDK安全加固',
  47. meta: [
  48. { name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' },
  49. { name: 'description', content: '一体化解决游戏安全问题' },
  50. { name: 'keywords', content: '全链加密 | DDoS 防护 | 智能加速 ' }
  51. ]
  52. }))
  53. </script>
  54. <style scoped lang="scss">
  55. .video-section {
  56. position: relative;
  57. width: 100%;
  58. margin: 0 auto;
  59. overflow: hidden;
  60. .left-bg {
  61. position: absolute;
  62. top: 0;
  63. left: 0;
  64. width: 927px;
  65. height: auto;
  66. aspect-ratio: 103/62;
  67. background-image: url('/images/products/sdk-bg.png');
  68. background-size: contain;
  69. background-position: center;
  70. background-repeat: no-repeat;
  71. z-index: 2;
  72. opacity: 0.6;
  73. }
  74. .video-bg {
  75. width: 100%;
  76. height: auto;
  77. display: block;
  78. z-index: 1;
  79. position: relative;
  80. object-fit: cover;
  81. clip-path: inset(0 0 0% 0);
  82. }
  83. .video-title {
  84. position: absolute;
  85. top: 30%;
  86. left: 48%;
  87. transform: translateX(-50%);
  88. width: 100%;
  89. max-width: 1200px;
  90. z-index: 3;
  91. color: #fff;
  92. font-style: normal;
  93. display: flex;
  94. flex-direction: column;
  95. gap: 30px;
  96. h1 {
  97. font-size: 45px;
  98. font-weight: 500;
  99. line-height: 45px;
  100. background: linear-gradient(91deg, #D8D3FF -6.9%, #E6D2FF 111.73%);
  101. background-clip: text;
  102. }
  103. .video-subtitle {
  104. margin-left: -4%;
  105. color: #DBB9FF;
  106. font-size: 45px;
  107. font-weight: 500;
  108. line-height: 45px;
  109. }
  110. .video-text {
  111. margin-top: 20px;
  112. display: flex;
  113. flex-direction: column;
  114. gap: 20px;
  115. }
  116. p {
  117. color: #E2D9FF;
  118. font-size: 20px;
  119. font-weight: 400;
  120. line-height: 20px;
  121. }
  122. }
  123. }
  124. .main-text {
  125. width: 100%;
  126. text-align: center;
  127. margin-top: 92px;
  128. .main-text-title {
  129. font-size: 45px;
  130. font-style: normal;
  131. font-weight: 500;
  132. line-height: 80px;
  133. background: linear-gradient(90deg, #B8AFFF 20.05%, #C597FF 101.05%);
  134. background-clip: text;
  135. -webkit-background-clip: text;
  136. -webkit-text-fill-color: transparent;
  137. }
  138. .main-text-subtitle {
  139. color: #E2D9FF;
  140. font-size: 24px;
  141. font-style: normal;
  142. font-weight: 400;
  143. line-height: 80px;
  144. }
  145. }
  146. .products-server {
  147. width: 100%;
  148. height: 1280px;
  149. display: flex;
  150. flex-direction: column;
  151. align-items: center;
  152. margin-top: 50px;
  153. position: relative;
  154. h2 {
  155. font-size: 45px;
  156. font-style: normal;
  157. font-weight: 500;
  158. line-height: 80px;
  159. background: linear-gradient(91deg, #B8AFFF 10.8%, #C597FF 108.3%);
  160. background-clip: text;
  161. -webkit-background-clip: text;
  162. -webkit-text-fill-color: transparent;
  163. }
  164. &::before {
  165. content: '';
  166. position: absolute;
  167. left: 50%;
  168. top: -14%;
  169. width: 1280px;
  170. height: 1280px;
  171. transform: translate(-50%) rotate(173.992deg);
  172. border-radius: 50%;
  173. background: linear-gradient(189deg, #7A41FF 6.39%, rgba(3, 0, 20, 0.20) 30.53%);
  174. filter: blur(50px);
  175. z-index: 0;
  176. }
  177. }
  178. .products-sdk {
  179. display: flex;
  180. flex-direction: column;
  181. align-items: center;
  182. gap: 50px;
  183. margin-bottom: 92px;
  184. h2 {
  185. font-size: 62px;
  186. font-style: normal;
  187. font-weight: 500;
  188. line-height: 80px;
  189. background: linear-gradient(91deg, #C597FF 4.96%, #C597FF 109.07%);
  190. background-clip: text;
  191. -webkit-background-clip: text;
  192. -webkit-text-fill-color: transparent;
  193. }
  194. }
  195. </style>