faq.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <!-- @format -->
  2. <script lang="ts" setup>
  3. const activeName = ref()
  4. </script>
  5. <template>
  6. <div class="bg-#F3F4FB py-120px data-section" data-section-color="#F3F4FB">
  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="text-#333 text-36px !fw-800 custom-title-font">
  15. Frequently
  16. </h2>
  17. <h2 class="!mb-20px text-#333 text-36px !fw-800 custom-title-font">
  18. Asked <span class="custom-title-bg04">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. <nuxt-link to="/faq">
  24. Learn More
  25. </nuxt-link>
  26. </div>
  27. </div>
  28. <div class="custom-collapse w-680px pos-relative">
  29. <el-collapse v-model="activeName" accordion>
  30. <el-collapse-item name="1">
  31. <template #title>
  32. <div class="flex">
  33. <div
  34. class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
  35. >
  36. 1
  37. </div>
  38. <h3
  39. class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px custom-title-font"
  40. >
  41. What is the suggested strategy to manage creative fatigue?
  42. </h3>
  43. </div>
  44. </template>
  45. <template #icon="{ isActive }">
  46. <img
  47. v-if="!isActive"
  48. src="@/assets/images/plus.png"
  49. class="!w-20px !h-20px mt-12px"
  50. >
  51. <img
  52. v-else
  53. src="@/assets/images/reduce.png"
  54. class="!w-20px !h-20px mt-12px"
  55. >
  56. </template>
  57. <div
  58. class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
  59. >
  60. Consistent with real life: in line with the process and logic of
  61. real life, and comply with languages and habits that the users are
  62. used to;
  63. </div>
  64. </el-collapse-item>
  65. <el-collapse-item name="2">
  66. <template #title>
  67. <div class="flex">
  68. <div
  69. class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
  70. >
  71. 2
  72. </div>
  73. <h3
  74. class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px custom-title-font"
  75. >
  76. What is the suggested strategy to manage creative fatigue?
  77. </h3>
  78. </div>
  79. </template>
  80. <template #icon="{ isActive }">
  81. <img
  82. v-if="!isActive"
  83. src="@/assets/images/plus.png"
  84. class="!w-20px !h-20px mt-12px"
  85. >
  86. <img
  87. v-else
  88. src="@/assets/images/reduce.png"
  89. class="!w-20px !h-20px mt-12px"
  90. >
  91. </template>
  92. <h3
  93. class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
  94. >
  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 name="3">
  101. <template #title>
  102. <div class="flex">
  103. <div
  104. class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
  105. >
  106. 3
  107. </div>
  108. <div
  109. class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px custom-title-font"
  110. >
  111. What is the suggested strategy to manage creative fatigue?
  112. </div>
  113. </div>
  114. </template>
  115. <template #icon="{ isActive }">
  116. <img
  117. v-if="!isActive"
  118. src="@/assets/images/plus.png"
  119. class="!w-20px !h-20px mt-12px"
  120. >
  121. <img
  122. v-else
  123. src="@/assets/images/reduce.png"
  124. class="!w-20px !h-20px mt-12px"
  125. >
  126. </template>
  127. <h3
  128. class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
  129. >
  130. Consistent with real life: in line with the process and logic of
  131. real life, and comply with languages and habits that the users are
  132. used to;
  133. </h3>
  134. </el-collapse-item>
  135. <el-collapse-item name="4">
  136. <template #title>
  137. <div class="flex">
  138. <div
  139. class="w-36px mt-6px h-36px text-16px lh-36px text-center b-rd-50% bg-#9B6CFF text-#fff mr-20px"
  140. >
  141. 4
  142. </div>
  143. <div
  144. class="flex-1 text-24px fw-bold text-#333 text-left lh-34px w-520px custom-title-font"
  145. >
  146. What is the suggested strategy to manage creative fatigue?
  147. </div>
  148. </div>
  149. </template>
  150. <template #icon="{ isActive }">
  151. <img
  152. v-if="!isActive"
  153. src="@/assets/images/plus.png"
  154. class="!w-20px !h-20px mt-12px"
  155. >
  156. <img
  157. v-else
  158. src="@/assets/images/reduce.png"
  159. class="!w-20px !h-20px mt-12px"
  160. >
  161. </template>
  162. <h3
  163. class="text-#999 fw-500 lh-24px mt-10px px-60px custom-title-font"
  164. >
  165. Consistent with real life: in line with the process and logic of
  166. real life, and comply with languages and habits that the users are
  167. used to;
  168. </h3>
  169. </el-collapse-item>
  170. </el-collapse>
  171. <img
  172. src="@/assets/images/icon_face.png"
  173. class="w-70px h-70px pos-absolute top--50px right-0px"
  174. alt=""
  175. srcset=""
  176. >
  177. </div>
  178. </div>
  179. </div>
  180. </template>
  181. <style lang="less" scoped>
  182. .custom-collapse {
  183. ::v-deep(.el-collapse) {
  184. .el-collapse-item {
  185. margin-bottom: 20px;
  186. border-radius: 12px;
  187. background-color: #fff;
  188. box-sizing: border-box;
  189. border: 1px solid #e0e4ea;
  190. overflow: hidden;
  191. padding: 30px;
  192. .el-collapse-item__header {
  193. border-bottom: unset !important;
  194. display: flex;
  195. justify-content: space-between;
  196. align-items: start;
  197. height: unset !important;
  198. line-height: unset !important;
  199. }
  200. &.is-active {
  201. .el-collapse-item__wrap {
  202. border-bottom: unset !important;
  203. }
  204. }
  205. .el-collapse-item__content {
  206. padding: 0px !important;
  207. }
  208. }
  209. }
  210. }
  211. </style>