You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
3.7 KiB

2 years ago
2 years ago
  1. <template>
  2. <section class="xl:tw-max-w-[1246px] xl:tw-mx-auto">
  3. <div class="tw-relative tw-px-[30px] xl:tw-px-[30px] tw-mt-[40px] md:tw-mt-[50px]">
  4. <div class="tw-absolute tw-top-0 tw-right-0 tw-left-0 tw-bottom-0 md:tw-block xl:tw-block">
  5. <div class="tw-grid tw-grid-cols-10 tw-gap-[20px] md:tw-gap-[30px] xl:tw-grid-cols-10" style="height:100%;">
  6. <div class="tw-col-span-10 md:tw-col-span-6 xl:tw-col-span-6 col-span-4-bg tw-rounded-r-[50px]"></div>
  7. <div class="tw-col-span-0 md:tw-col-span-4 xl:tw-col-span-4 tw-hidden">
  8. </div>
  9. </div>
  10. </div>
  11. <div class="tw-relative tw-py-20">
  12. <div class="tw-grid tw-grid-cols-1 md:tw-grid-cols-7 xl:tw-grid-cols-7 xl:tw-mx-auto">
  13. <!-- <div class="tw-col-span-2 tw-h-16"></div> -->
  14. <div class="tw-col-span-7 xl:tw-col-span-3 md:tw-col-span-7">
  15. <div class="tw-flex tw-flex-col tw-justify-center tw-pb-[30px]">
  16. <div class="tw-flex tw-justify-center">
  17. <div class="tw-flex tw-justify-center tw-flex-col tw-w-11/12">
  18. <h1 class="tw-text-2xl tw-text-left tw-font-black tw-text-primary-default tw-mt-[5px] md:tw-mt-[15px] xl:tw-mt-[25px] md:tw-text-3xl xl:tw-text-4xl">
  19. {{$t("Four reasons for choosing ShowEasy")}}
  20. </h1>
  21. <p class="t14 tw-text-left tw-font-medium tw-text-neutrals-600 tw-py-[5px] md:tw-py-[10px] xl:tw-py-[10px] md:t16 xl:t18">{{$t("ShowEasy is an online exhibition service business platform, where you can find exhibition information and related services from around the world.")}}</p>
  22. </div>
  23. </div>
  24. <div class="tw-flex tw-justify-center tw-w-full">
  25. <img class="tw-self-center tw-w-1/3 md:tw-w-1/3 xl:tw-w-4/6" src="~/assets/svg/reason.svg">
  26. </div>
  27. </div>
  28. </div>
  29. <div class="tw-col-span-7 xl:tw-col-span-4 md:tw-col-span-7">
  30. <div class="tw-grid tw-grid-cols-1 tw-gap-[15px] md:tw-gap-[30px] xl:tw-grid-cols-2">
  31. <div class="tw-relative card tw-rounded-[20px] tw-overflow-hidden tw-h-full tw-shadow-md tw-bg-white tw-px-5 tw-py-1" v-for="(item,index) in reasons" :key="index">
  32. <div :class="['tw-absolute tw-left-0 tw-top-0 tw-w-full tw-h-[6px] tw-rounded-t',(index === 0 || index === 3) ? 'tw-bg-[#3f3d56]' : 'tw-bg-[#e68000]']"></div>
  33. <a :href="item.url" class="tw-relative tw-w-full tw-h-full tw-text-center tw-content-center">
  34. <div class="tw-content-center tw-mb-3 tw-mt-5"><img class="tw-h-[42px] tw-w-[42px] md:tw-h-[64px] xl:tw-h-[64px] md:tw-w-[64px] xl:tw-w-[64px]" :src="item.image"></div>
  35. <div class="t14 tw-text-center tw-mt-[5px] md:tw-mt-[15px] xl:tw-mt-[25px] md:t16 xl:t18 tw-text-black tw-font-black tw-mb-3">{{ item.name }}</div>
  36. <div class="t12 tw-text-center tw-text-neutral-700 tw-mt-[5px] md:tw-mt-[15px] xl:tw-mt-[25px] tw-mb-[15px] md:t14 xl:t16 tw-text-left tw-font-medium">{{ item.content }}</div>
  37. </a>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </section>
  45. </template>
  46. <script>
  47. export default {
  48. props: {
  49. reasons: {
  50. type: Array,
  51. },
  52. title: {
  53. type: String,
  54. },
  55. },
  56. created() {
  57. if (this.$props.reasons.length > 4) {
  58. this.$props.reasons = this.$props.reasons.slice(0, 4);
  59. }
  60. },
  61. };
  62. </script>
  63. <style lang="scss" scoped>
  64. .col-span-4-bg{
  65. background-image: radial-gradient(circle at 118% 118%, rgba(250, 174, 105, 0.2), rgba(250, 174, 105, 0.03) 89%);
  66. }
  67. </style>