assortment.vue 6.4 KB

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