faq.vue 6.3 KB

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