web.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div>
  3. <section class="video-section">
  4. <video ref="videoRef" class="video-bg" src="~/assets/video/web.mp4" autoplay loop muted playsinline
  5. @loadedmetadata="onVideoLoaded"></video>
  6. <div class="video-title">
  7. <p class="video-text">Intelligent routing / dynamic optimization / real-time processing</p>
  8. <h1><span>智能</span>路由/<span>动态</span>优化/<span>实时</span>处理</h1>
  9. <div class="video-subtitle">不止于快,更稳更安全,为您的业务保驾护航</div>
  10. <div class="video-btn">
  11. <span>联系我们</span>
  12. <Icon name="line-md:chevron-right" />
  13. </div>
  14. </div>
  15. </section>
  16. </div>
  17. </template>
  18. <script setup>
  19. definePageMeta({
  20. layout: 'pc'
  21. })
  22. </script>
  23. <style lang="scss" scoped>
  24. .video-section {
  25. position: relative;
  26. width: 100%;
  27. margin: 0 auto;
  28. overflow: hidden;
  29. .video-bg {
  30. width: 100%;
  31. height: auto;
  32. display: block;
  33. z-index: 1;
  34. position: relative;
  35. object-fit: cover;
  36. clip-path: inset(0 0 9% 0);
  37. }
  38. .video-title {
  39. position: absolute;
  40. top: 30%;
  41. left: 48%;
  42. transform: translateX(-50%);
  43. width: 100%;
  44. max-width: 1200px;
  45. z-index: 3;
  46. color: #fff;
  47. font-style: normal;
  48. display: flex;
  49. flex-direction: column;
  50. h1 {
  51. color: #D8D3FF;
  52. font-size: 45px;
  53. font-style: normal;
  54. font-weight: 500;
  55. line-height: 80px;
  56. span {
  57. color: #997DFF;
  58. }
  59. }
  60. .video-subtitle {
  61. margin-top: 20px;
  62. color: #E2D9FF;
  63. font-size: 20px;
  64. font-style: normal;
  65. font-weight: 400;
  66. line-height: 30px;
  67. }
  68. .video-text {
  69. color: #E2D9FF;
  70. font-size: 20px;
  71. font-style: normal;
  72. font-weight: 300;
  73. line-height: 30px;
  74. }
  75. p {
  76. color: #E2D9FF;
  77. font-size: 20px;
  78. font-weight: 400;
  79. line-height: 20px;
  80. }
  81. .video-btn {
  82. cursor: pointer;
  83. margin-top: 112px;
  84. display: flex;
  85. box-sizing: border-box;
  86. width: 255px;
  87. height: 60px;
  88. padding: 7px 21px 7px 45px;
  89. justify-content: center;
  90. align-items: center;
  91. gap: 10px;
  92. border-radius: 10px;
  93. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  94. }
  95. }
  96. }
  97. </style>