工业设计
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
3.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="link_card_container">
  3. <div class="card mr" @click="toPage('/')">
  4. <img class="bg_img" :src="BG" alt="" />
  5. <div class="modal">
  6. <h1 class="title">整机开发</h1>
  7. <div class="btn">
  8. <p class="text">立即前往</p>
  9. <img :src="Arrow" class="icon" alt="" />
  10. </div>
  11. <p class="en">Complete machine</p>
  12. </div>
  13. </div>
  14. <div class="card" @click="toPage('/pc-hardware')">
  15. <img class="bg_img" :src="BG" alt="" />
  16. <div class="modal">
  17. <h1 class="title">软硬件定制</h1>
  18. <div class="btn">
  19. <p class="text">立即前往</p>
  20. <img :src="Arrow" class="icon" alt="" />
  21. </div>
  22. <p class="en">Hardware</p>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script setup>
  28. import BG from '@/assets/design/link/1.png'
  29. import Arrow from '@/assets/design/link/arrow.png'
  30. import { useRouter, useRoute } from 'vue-router'
  31. const router = useRouter()
  32. const route = useRoute()
  33. const toPage = (path, p) => {
  34. window.location.href = `http://iflytop.com${path}`
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. @keyframes btnAnimation {
  39. 0% {
  40. transform: translateX(0);
  41. }
  42. 25% {
  43. transform: translateX(25px);
  44. }
  45. 75% {
  46. transform: translateX(-25px);
  47. }
  48. 100% {
  49. transform: translateX(0);
  50. }
  51. }
  52. .link_card_container {
  53. padding: 0 190px;
  54. padding-bottom: 120px;
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. .card {
  59. flex: 1;
  60. height: 420px;
  61. position: relative;
  62. cursor: pointer;
  63. .bg_img {
  64. width: 100%;
  65. height: auto;
  66. object-fit: cover;
  67. }
  68. .modal {
  69. position: absolute;
  70. left: 0;
  71. top: 0;
  72. width: 100%;
  73. height: 100%;
  74. background: rgba(0, 0, 0, 0.86);
  75. padding-left: 98px;
  76. box-sizing: border-box;
  77. display: flex;
  78. flex-direction: column;
  79. justify-content: center;
  80. align-items: flex-start;
  81. .title {
  82. font-family: AlibabaPuHuiTi;
  83. font-size: 76px;
  84. font-weight: bold;
  85. line-height: normal;
  86. letter-spacing: 0.06em;
  87. color: #f6f6f6;
  88. }
  89. .btn {
  90. margin-top: 18px;
  91. margin-bottom: 20px;
  92. border-radius: 324px;
  93. padding: 11px 24px;
  94. background: #2a4ee1;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. .text {
  99. font-family: Source Han Sans CN;
  100. font-size: 16px;
  101. font-weight: normal;
  102. line-height: normal;
  103. letter-spacing: 0.1em;
  104. color: #ffffff;
  105. margin-right: 15px;
  106. }
  107. .icon {
  108. width: 19px;
  109. height: 4px;
  110. }
  111. }
  112. .en {
  113. font-family: Poppins;
  114. font-size: 30px;
  115. font-weight: 500;
  116. line-height: normal;
  117. letter-spacing: 0em;
  118. color: #ffffff;
  119. }
  120. }
  121. &:hover {
  122. .modal {
  123. .btn {
  124. animation-name: btnAnimation;
  125. animation-duration: 1s;
  126. }
  127. }
  128. }
  129. }
  130. .mr {
  131. margin-right: 20px;
  132. }
  133. }
  134. </style>