sdk.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <template>
  2. <section class="mb-product">
  3. <section class="video-section">
  4. <div class="video-title">
  5. <h1>DDAC游戏盾——让APP自带</h1>
  6. <div class="video-subtitle">“国家级别”防御</div>
  7. <div class="video-text">
  8. 却只需要开发者“日常级别”
  9. 的工作量
  10. </div>
  11. <div class="video-btn">
  12. 联系我们 <Icon size="16" name="ic:sharp-keyboard-arrow-right"></Icon>
  13. </div>
  14. </div>
  15. <div class="right-bg"></div>
  16. </section>
  17. <Introduction />
  18. <section class="mb-card-text">
  19. <h3>
  20. 一体化解决游戏安全问题
  21. </h3>
  22. <div class="mb-accordion">
  23. <div v-for="(item, index) in accordionItems" :key="item.title" class="accordion-item"
  24. :class="{ 'is-open': openIndices.includes(index) }" @click="toggleAccordion(index)">
  25. <div class="accordion-header">
  26. <div class="accordion-left">
  27. <img :src="item.icon" alt="icon">
  28. <span class="accordion-title">{{ item.title }}</span>
  29. </div>
  30. <Icon name="line-md:chevron-right" class="accordion-icon" />
  31. </div>
  32. <Transition name="accordion-expand">
  33. <div v-show="openIndices.includes(index)" class="accordion-body">
  34. <p class="accordion-text">{{ item.description }}</p>
  35. </div>
  36. </Transition>
  37. </div>
  38. </div>
  39. </section>
  40. <div class="mb-plans-box">
  41. <PlansSection />
  42. </div>
  43. <section class="mb-flow">
  44. <h3>安全加速SDK防护架构</h3>
  45. <NuxtImg loading="eager" src="/images/products/sdk-flow.png" alt="安全加速SDK防护架构" />
  46. </section>
  47. </section>
  48. </template>
  49. <script setup>
  50. import { ref } from 'vue'
  51. import Introduction from '~/components/mobile/products/Introduction.vue'
  52. import PlansSection from '~/components/mobile/home/PlansSection.vue'
  53. import icon1 from '~/assets/svg/products/sdk/security.svg'
  54. import icon2 from '~/assets/svg/products/sdk/acceleration.svg'
  55. import icon3 from '~/assets/svg/products/sdk/lock.svg'
  56. import icon4 from '~/assets/svg/products/sdk/user.svg'
  57. useHead(() => ({
  58. title: 'SDK安全加固',
  59. meta: [
  60. { name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' }
  61. ]
  62. }))
  63. const accordionItems = [
  64. {
  65. title: 'DDoS 防护',
  66. description: '分布式的抗D节点,同时基于SDK端流量数据的灵活调度策略,智能隔离清洗攻击流量。',
  67. icon: icon1
  68. },
  69. {
  70. title: '智能加速',
  71. description: '基于用户IP识别,智能网络传输线路选择,静态动态Edge分发,即时游戏无延迟。',
  72. icon: icon2
  73. },
  74. {
  75. title: '全链加密',
  76. description: 'SDK自身高强度加密,且可以实时动态更新,安全可靠,无惧 MITM Attack。',
  77. icon: icon3
  78. },
  79. {
  80. title: '用户友好的加密调度中心',
  81. description: '用于替代DNS的一个加密调度中心,能够实现细化到单个客户端,级别的秒级调度,兼容性稳定可靠!提供完整SDK中文文档,轻松集成!',
  82. icon: icon4
  83. }
  84. ]
  85. const openIndices = ref([0])
  86. const toggleAccordion = (index) => {
  87. const i = openIndices.value.indexOf(index)
  88. if (i > -1) {
  89. openIndices.value.splice(i, 1)
  90. } else {
  91. openIndices.value.push(index)
  92. }
  93. }
  94. </script>
  95. <style scoped lang="scss">
  96. .mb-product {
  97. .video-section {
  98. box-sizing: border-box;
  99. padding-top: 32px;
  100. display: flex;
  101. position: relative;
  102. width: 100%;
  103. margin: 0 auto;
  104. .right-bg {
  105. position: absolute;
  106. right: 0;
  107. top: -52px;
  108. width: 312px;
  109. height: 260px;
  110. background-image: url('/images/products/sdk-bg1.png');
  111. background-size: contain;
  112. background-position: center;
  113. background-repeat: no-repeat;
  114. z-index: 3;
  115. }
  116. .video-title {
  117. z-index: 3;
  118. color: #fff;
  119. font-style: normal;
  120. display: flex;
  121. flex-direction: column;
  122. h1 {
  123. font-size: 14px;
  124. font-weight: 500;
  125. background: linear-gradient(91deg, #D8D3FF -6.9%, #E6D2FF 111.73%);
  126. background-clip: text;
  127. -webkit-background-clip: text;
  128. -webkit-text-fill-color: transparent;
  129. }
  130. .video-subtitle {
  131. margin-left: -4%;
  132. color: #DBB9FF;
  133. font-size: 14px;
  134. font-weight: 500;
  135. }
  136. .video-text {
  137. width: 130px;
  138. margin-top: 12px;
  139. color: #E2D9FF;
  140. font-size: 10px;
  141. font-weight: 400;
  142. }
  143. .video-btn {
  144. margin-top: 12px;
  145. display: flex;
  146. width: 85px;
  147. height: 24px;
  148. justify-content: center;
  149. align-items: center;
  150. color: #FFF;
  151. font-size: 10px;
  152. font-weight: 400;
  153. border-radius: 4px;
  154. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  155. }
  156. }
  157. }
  158. }
  159. .mb-card-text {
  160. margin-top: 20px;
  161. h3 {
  162. text-align: center;
  163. color: #FFF;
  164. font-size: 20px;
  165. font-weight: 400;
  166. }
  167. .mb-accordion {
  168. margin-top: 14px;
  169. display: flex;
  170. flex-direction: column;
  171. gap: 10px;
  172. .accordion-item {
  173. padding: 20px;
  174. border-radius: 10px;
  175. border: 1px solid rgba(255, 255, 255, 0.10);
  176. background: #1C192B;
  177. backdrop-filter: blur(9px);
  178. transition: border-color 0.2s ease, background 0.2s ease;
  179. }
  180. .accordion-header {
  181. display: flex;
  182. align-items: center;
  183. justify-content: space-between;
  184. }
  185. .accordion-left {
  186. display: flex;
  187. align-items: center;
  188. gap: 10px;
  189. img {
  190. width: 24px;
  191. height: 24px;
  192. }
  193. }
  194. .accordion-title {
  195. color: #FFF;
  196. font-size: 14px;
  197. font-weight: 500;
  198. }
  199. .accordion-icon {
  200. color: #fff;
  201. font-size: 20px;
  202. transition: transform 0.2s ease;
  203. }
  204. .accordion-item.is-open .accordion-icon {
  205. transform: rotate(90deg);
  206. }
  207. .accordion-body {
  208. margin-top: 10px;
  209. }
  210. .accordion-text {
  211. color: rgba(255, 255, 255, 0.50);
  212. font-size: 12px;
  213. font-weight: 400;
  214. line-height: 20px;
  215. }
  216. }
  217. .accordion-expand-enter-active,
  218. .accordion-expand-leave-active {
  219. transition: all 0.2s ease;
  220. overflow: hidden;
  221. }
  222. .accordion-expand-enter-from,
  223. .accordion-expand-leave-to {
  224. opacity: 0;
  225. max-height: 0;
  226. }
  227. .accordion-expand-enter-to,
  228. .accordion-expand-leave-from {
  229. opacity: 1;
  230. max-height: 200px;
  231. }
  232. }
  233. .mb-plans-box {
  234. margin-top: 44px;
  235. margin-bottom: 60px;
  236. position: relative;
  237. &::after {
  238. content: '';
  239. position: absolute;
  240. left: 50%;
  241. bottom: -50px;
  242. z-index: 0;
  243. width: 260px;
  244. height: 260px;
  245. transform: translate(-50%) rotate(164deg);
  246. border-radius: 260px;
  247. background: linear-gradient(189deg, #7A41FF 6.39%, rgba(3, 0, 20, 0.20) 30.53%);
  248. filter: blur(10px);
  249. }
  250. }
  251. .mb-flow {
  252. padding-top: 20px;
  253. h3 {
  254. text-align: center;
  255. font-size: 20px;
  256. font-weight: 500;
  257. background: linear-gradient(91deg, #C597FF 4.96%, #C597FF 109.07%);
  258. background-clip: text;
  259. -webkit-background-clip: text;
  260. -webkit-text-fill-color: transparent;
  261. }
  262. :deep(img) {
  263. width: 100%;
  264. height: auto;
  265. }
  266. }
  267. </style>