faq.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!-- @format -->
  2. <script lang="ts" setup>
  3. const activeName = ref()
  4. </script>
  5. <template>
  6. <div class="bg-#F3F4FB py-120px">
  7. <div class="w-1200-auto flex justify-between">
  8. <div>
  9. <div
  10. class="py-5px mb-20px w-70px text-center text-#9B6CFF b-rd-200px bg-#EAE5FA"
  11. >
  12. FAQ
  13. </div>
  14. <h2 class="!mb-10px text-#333 text-36px !fw-800">
  15. Frequently
  16. </h2>
  17. <h2 class="!mb-20px text-#333 text-36px !fw-800">
  18. Asked <span class="custom-title-bg">Questions</span>
  19. </h2>
  20. <div
  21. class="py-14px text-14px w-128px text-center text-#fff b-rd-200px bg-#0F0820 hover:bg-#9B6CFF hover:text-#fff cursor-pointer"
  22. >
  23. Learn More
  24. </div>
  25. </div>
  26. <div class="custom-collapse w-680px pos-relative">
  27. <el-collapse v-model="activeName" accordion>
  28. <el-collapse-item
  29. name="1"
  30. >
  31. <template #title>
  32. <div class="flex">
  33. <div class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px">
  34. 1
  35. </div>
  36. <h3 class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px">
  37. What is the suggested strategy to manage creative fatigue?
  38. </h3>
  39. </div>
  40. </template>
  41. <template #icon="{ isActive }">
  42. <img v-if="!isActive" src="@/assets/images/plus.png" class="!w-20px !h-20px mt-12px">
  43. <img v-else src="@/assets/images/reduce.png" class="!w-20px !h-20px mt-12px ">
  44. </template>
  45. <div class="text-#999 fw-500 lh-24px mt-10px px-60px">
  46. Consistent with real life: in line with the process and logic of
  47. real life, and comply with languages and habits that the users are
  48. used to;
  49. </div>
  50. </el-collapse-item>
  51. <el-collapse-item
  52. name="2"
  53. >
  54. <template #title>
  55. <div class="flex">
  56. <div class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px">
  57. 2
  58. </div>
  59. <h3 class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px">
  60. What is the suggested strategy to manage creative fatigue?
  61. </h3>
  62. </div>
  63. </template>
  64. <template #icon="{ isActive }">
  65. <img v-if="!isActive" src="@/assets/images/plus.png" class="!w-20px !h-20px mt-12px">
  66. <img v-else src="@/assets/images/reduce.png" class="!w-20px !h-20px mt-12px ">
  67. </template>
  68. <h3 class="text-#999 fw-500 lh-24px mt-10px px-60px">
  69. Consistent with real life: in line with the process and logic of
  70. real life, and comply with languages and habits that the users are
  71. used to;
  72. </h3>
  73. </el-collapse-item>
  74. <el-collapse-item
  75. name="3"
  76. >
  77. <template #title>
  78. <div class="flex">
  79. <div class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px">
  80. 3
  81. </div>
  82. <div class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px">
  83. What is the suggested strategy to manage creative fatigue?
  84. </div>
  85. </div>
  86. </template>
  87. <template #icon="{ isActive }">
  88. <img v-if="!isActive" src="@/assets/images/plus.png" class="!w-20px !h-20px mt-12px">
  89. <img v-else src="@/assets/images/reduce.png" class="!w-20px !h-20px mt-12px ">
  90. </template>
  91. <h3 class="text-#999 fw-500 lh-24px mt-10px px-60px">
  92. Consistent with real life: in line with the process and logic of
  93. real life, and comply with languages and habits that the users are
  94. used to;
  95. </h3>
  96. </el-collapse-item>
  97. <el-collapse-item
  98. name="4"
  99. >
  100. <template #title>
  101. <div class="flex">
  102. <div class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px">
  103. 4
  104. </div>
  105. <div class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px">
  106. What is the suggested strategy to manage creative fatigue?
  107. </div>
  108. </div>
  109. </template>
  110. <template #icon="{ isActive }">
  111. <img v-if="!isActive" src="@/assets/images/plus.png" class="!w-20px !h-20px mt-12px">
  112. <img v-else src="@/assets/images/reduce.png" class="!w-20px !h-20px mt-12px ">
  113. </template>
  114. <h3 class="text-#999 fw-500 lh-24px mt-10px px-60px">
  115. Consistent with real life: in line with the process and logic of
  116. real life, and comply with languages and habits that the users are
  117. used to;
  118. </h3>
  119. </el-collapse-item>
  120. </el-collapse>
  121. <img src="@/assets/images/icon_face.png" class="w-70px h-70px pos-absolute top--50px right-0px" alt="" srcset="">
  122. </div>
  123. </div>
  124. </div>
  125. </template>
  126. <style lang="less">
  127. .custom-collapse {
  128. .el-collapse {
  129. .el-collapse-item {
  130. margin-bottom: 20px;
  131. border-radius: 12px;
  132. background-color: #fff;
  133. box-sizing: border-box;
  134. border: 1px solid #e0e4ea;
  135. overflow: hidden;
  136. padding: 30px;
  137. .el-collapse-item__header {
  138. border-bottom: unset !important;
  139. display: flex;
  140. justify-content: space-between;
  141. align-items: start;
  142. height: unset !important;
  143. line-height: unset !important;
  144. }
  145. &.is-active{
  146. .el-collapse-item__wrap{
  147. border-bottom: unset !important;
  148. }
  149. }
  150. .el-collapse-item__content{
  151. padding: 0px !important;
  152. }
  153. }
  154. }
  155. }
  156. .custom-title-bg{
  157. position: relative;
  158. display: inline-block;
  159. background: url(~/assets/images/title_bg04.png);
  160. background-repeat: no-repeat;
  161. background-position: 88% 150%;
  162. background-size: 94% auto;
  163. }
  164. </style>