faq.vue 6.3 KB

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