sdk.vue 7.1 KB

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