SecurityServicesSuite.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <section class="service-container">
  3. <NuxtImg src="/images/products/SecurityServicesSuite.png" class="bg-img" alt="bg-img" />
  4. <div class="service-content">
  5. <h2>为您定制的企业级安全服务包</h2>
  6. <div class="service-cards">
  7. <div v-for="(item, index) in products" :key="index" class="service-card">
  8. <div class="card-title">{{ item.title }}</div>
  9. <template v-if="item.price">
  10. <div class="card-price">
  11. <span class="amount">${{ item.price }}</span>
  12. <span class="unit">{{ item.unit }}</span>
  13. </div>
  14. <div class="payment-support">
  15. 支持 <img width="22" height="22" src="/images/products/icon.png" alt="icon"> 支付
  16. </div>
  17. </template>
  18. <template v-else>
  19. <div class="customized-icon">
  20. <NuxtPicture width="112" height="112" src="/images/products/customized.png" alt="定制" />
  21. </div>
  22. </template>
  23. <button class="action-btn">{{ item.btnText }}</button>
  24. <div class="features-list">
  25. <div v-for="(feature, idx) in item.features" :key="idx" class="feature-item">
  26. <span class="label">{{ feature.label }}</span>
  27. <span class="value">{{ feature.value }}</span>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </section>
  34. </template>
  35. <script setup>
  36. const products = [
  37. {
  38. title: '标准版',
  39. price: '299',
  40. unit: '/月',
  41. btnText: '立即开通',
  42. features: [
  43. { label: 'DDoS防护值', value: '150Gbps' },
  44. { label: 'CC防御值', value: '30000QPS' },
  45. { label: '域名', value: '5个' },
  46. { label: '防御端口', value: '10个' },
  47. { label: '业务宽带', value: '50Mbps' },
  48. { label: 'SSL', value: '支持' },
  49. { label: 'Websocket', value: '支持' },
  50. { label: '网络', value: 'BGP/CN2网络' },
  51. ]
  52. },
  53. {
  54. title: '高级版',
  55. price: '1199',
  56. unit: '/月',
  57. btnText: '立即开通',
  58. features: [
  59. { label: 'DDoS防护值', value: '400Gbps' },
  60. { label: 'CC防御值', value: '50000QPS' },
  61. { label: '域名', value: '10个' },
  62. { label: '防御端口', value: '20个' },
  63. { label: '业务宽带', value: '100Mbps' },
  64. { label: 'SSL', value: '支持' },
  65. { label: 'Websocket', value: '支持' },
  66. { label: '网络', value: 'BGP/CN2网络' },
  67. ]
  68. },
  69. {
  70. title: '至尊版',
  71. price: '2999',
  72. unit: '/月',
  73. btnText: '立即开通',
  74. features: [
  75. { label: 'DDoS防护值', value: '600Gbps' },
  76. { label: 'CC防御值', value: '15WQPS' },
  77. { label: '域名', value: '50个' },
  78. { label: '防御端口', value: '50个' },
  79. { label: '业务宽带', value: '500Mbps' },
  80. { label: 'SSL', value: '支持' },
  81. { label: 'Websocket', value: '支持' },
  82. { label: '网络', value: 'BGP/CN2网络' },
  83. ]
  84. },
  85. {
  86. title: '定制版',
  87. btnText: '联系商务',
  88. features: [
  89. { label: 'DDoS防护值', value: 'T级防御' },
  90. { label: 'CC防御值', value: '免疫98%CC' },
  91. { label: '域名', value: '定制' },
  92. { label: '防御端口', value: '定制' },
  93. { label: '业务宽带', value: '定制' },
  94. { label: 'SSL', value: '定制' },
  95. { label: 'Websocket', value: '定制' },
  96. { label: '网络', value: 'BGP/CN2网络' },
  97. ]
  98. }
  99. ]
  100. </script>
  101. <style lang="scss" scoped>
  102. .service-container {
  103. width: 100%;
  104. height: 1150px;
  105. position: relative;
  106. overflow: hidden;
  107. .bg-img {
  108. position: absolute;
  109. top: 0;
  110. left: 0;
  111. width: 100%;
  112. height: auto;
  113. z-index: 1;
  114. }
  115. .service-content {
  116. position: relative;
  117. z-index: 2;
  118. padding-top: 306px;
  119. width: 100%;
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. h2 {
  124. font-size: 45px;
  125. font-style: normal;
  126. font-weight: 500;
  127. line-height: 45px;
  128. background: linear-gradient(91deg, #B8AFFF 10.8%, #C597FF 108.3%);
  129. background-clip: text;
  130. -webkit-background-clip: text;
  131. -webkit-text-fill-color: transparent;
  132. }
  133. .service-cards {
  134. margin-top: 82px;
  135. display: flex;
  136. justify-content: center;
  137. gap: 12px;
  138. .service-card {
  139. border-radius: 10px;
  140. background: #1B192A;
  141. width: 290px;
  142. height: 610px;
  143. flex-shrink: 0;
  144. padding: 42px 20px;
  145. display: flex;
  146. flex-direction: column;
  147. align-items: center;
  148. color: #fff;
  149. box-sizing: border-box;
  150. transition: transform .3s ease;
  151. &:hover {
  152. transform: translateY(-5px);
  153. border: 1px solid #BF69FF;
  154. background: linear-gradient(176deg, rgba(146, 116, 254, 0.20) -10.82%, rgba(125, 70, 255, 0.20) 109.01%);
  155. }
  156. &:hover .action-btn {
  157. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  158. }
  159. .card-title {
  160. color: #FFF;
  161. text-align: center;
  162. font-size: 26px;
  163. font-style: normal;
  164. font-weight: 400;
  165. line-height: 26px;
  166. }
  167. .customized-icon {
  168. padding-top: 12px
  169. }
  170. .card-price {
  171. display: flex;
  172. align-items: baseline;
  173. padding: 25px 0 18px 0;
  174. .amount {
  175. font-size: 50px;
  176. font-style: normal;
  177. font-weight: 700;
  178. line-height: 50px;
  179. background: linear-gradient(91deg, #B8AFFF 10.8%, #C597FF 108.3%);
  180. background-clip: text;
  181. -webkit-background-clip: text;
  182. -webkit-text-fill-color: transparent;
  183. }
  184. .unit {
  185. color: #FFF;
  186. font-size: 26px;
  187. font-style: normal;
  188. font-weight: 400;
  189. line-height: 50px;
  190. }
  191. }
  192. .payment-support {
  193. display: flex;
  194. align-items: center;
  195. gap: 5px;
  196. color: #FFF;
  197. font-size: 18px;
  198. font-style: normal;
  199. font-weight: 400;
  200. line-height: 18px;
  201. }
  202. .action-btn {
  203. display: flex;
  204. justify-content: center;
  205. align-items: center;
  206. width: 250px;
  207. height: 50px;
  208. margin-top: 34px;
  209. gap: 10px;
  210. border-radius: 50px;
  211. background: rgba(255, 255, 255, 0.20);
  212. color: #FFF;
  213. font-size: 24px;
  214. font-weight: 400;
  215. cursor: pointer;
  216. }
  217. .features-list {
  218. width: 100%;
  219. display: flex;
  220. flex-direction: column;
  221. gap: 10px;
  222. margin-top: 20px;
  223. .feature-item {
  224. display: flex;
  225. justify-content: space-between;
  226. font-size: 16px;
  227. font-weight: 400;
  228. .label {
  229. color: rgba(255, 255, 255, 0.60)
  230. }
  231. .value {
  232. color: #FFF;
  233. text-align: right;
  234. }
  235. }
  236. }
  237. }
  238. }
  239. }
  240. }
  241. </style>