sdk.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <NuxtPicture src="/images/products/flowchart.png" alt="安全加速SDK防护架构" />
  30. </section>
  31. </section>
  32. </template>
  33. <script setup>
  34. definePageMeta({
  35. layout: 'pc'
  36. })
  37. import { ref } from 'vue'
  38. import Introduction from '~/components/products/Introduction.vue'
  39. import Card from '~/components/products/Card.vue'
  40. const videoRef = ref(null)
  41. const onVideoLoaded = () => {
  42. if (videoRef.value) {
  43. videoRef.value.play().catch(() => {
  44. // 自动播放失败时静默处理
  45. })
  46. }
  47. }
  48. useHead(() => ({
  49. title: 'SDK安全加固',
  50. meta: [
  51. { name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' },
  52. { name: 'description', content: '一体化解决游戏安全问题' },
  53. { name: 'keywords', content: '全链加密 | DDoS 防护 | 智能加速 ' }
  54. ]
  55. }))
  56. </script>
  57. <style scoped lang="scss">
  58. .video-section {
  59. position: relative;
  60. width: 100%;
  61. margin: 0 auto;
  62. overflow: hidden;
  63. .left-bg {
  64. position: absolute;
  65. top: 0;
  66. left: 0;
  67. width: 927px;
  68. height: auto;
  69. aspect-ratio: 103/62;
  70. background-image: url('/images/products/sdk-bg.png');
  71. background-size: contain;
  72. background-position: center;
  73. background-repeat: no-repeat;
  74. z-index: 2;
  75. opacity: 0.6;
  76. }
  77. .video-bg {
  78. width: 100%;
  79. height: auto;
  80. display: block;
  81. z-index: 1;
  82. position: relative;
  83. object-fit: cover;
  84. clip-path: inset(0 0 9% 0);
  85. }
  86. .video-title {
  87. position: absolute;
  88. top: 30%;
  89. left: 48%;
  90. transform: translateX(-50%);
  91. width: 100%;
  92. max-width: 1200px;
  93. z-index: 3;
  94. color: #fff;
  95. font-style: normal;
  96. display: flex;
  97. flex-direction: column;
  98. gap: 30px;
  99. h1 {
  100. font-size: 45px;
  101. font-weight: 500;
  102. line-height: 45px;
  103. background: linear-gradient(91deg, #D8D3FF -6.9%, #E6D2FF 111.73%);
  104. background-clip: text;
  105. }
  106. .video-subtitle {
  107. margin-left: -4%;
  108. color: #DBB9FF;
  109. font-size: 45px;
  110. font-weight: 500;
  111. line-height: 45px;
  112. }
  113. .video-text {
  114. margin-top: 20px;
  115. display: flex;
  116. flex-direction: column;
  117. gap: 20px;
  118. }
  119. p {
  120. color: #E2D9FF;
  121. font-size: 20px;
  122. font-weight: 400;
  123. line-height: 20px;
  124. }
  125. }
  126. }
  127. .main-text {
  128. width: 100%;
  129. text-align: center;
  130. margin-top: 92px;
  131. .main-text-title {
  132. font-size: 45px;
  133. font-style: normal;
  134. font-weight: 500;
  135. line-height: 80px;
  136. background: linear-gradient(90deg, #B8AFFF 20.05%, #C597FF 101.05%);
  137. background-clip: text;
  138. -webkit-background-clip: text;
  139. -webkit-text-fill-color: transparent;
  140. }
  141. .main-text-subtitle {
  142. color: #E2D9FF;
  143. font-size: 24px;
  144. font-style: normal;
  145. font-weight: 400;
  146. line-height: 80px;
  147. }
  148. }
  149. .products-server {
  150. width: 100%;
  151. height: 1280px;
  152. display: flex;
  153. flex-direction: column;
  154. align-items: center;
  155. margin-top: 50px;
  156. position: relative;
  157. h2 {
  158. font-size: 45px;
  159. font-style: normal;
  160. font-weight: 500;
  161. line-height: 80px;
  162. background: linear-gradient(91deg, #B8AFFF 10.8%, #C597FF 108.3%);
  163. background-clip: text;
  164. -webkit-background-clip: text;
  165. -webkit-text-fill-color: transparent;
  166. }
  167. &::before {
  168. content: '';
  169. position: absolute;
  170. left: 50%;
  171. top: -14%;
  172. width: 1280px;
  173. height: 1280px;
  174. transform: translate(-50%) rotate(173.992deg);
  175. border-radius: 50%;
  176. background: linear-gradient(189deg, #7A41FF 6.39%, rgba(3, 0, 20, 0.20) 30.53%);
  177. filter: blur(50px);
  178. z-index: 0;
  179. }
  180. }
  181. .products-sdk {
  182. display: flex;
  183. flex-direction: column;
  184. align-items: center;
  185. gap: 50px;
  186. h2 {
  187. font-size: 62px;
  188. font-style: normal;
  189. font-weight: 500;
  190. line-height: 80px;
  191. background: linear-gradient(91deg, #C597FF 4.96%, #C597FF 109.07%);
  192. background-clip: text;
  193. -webkit-background-clip: text;
  194. -webkit-text-fill-color: transparent;
  195. }
  196. }
  197. </style>