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.

55 lines
2.4 KiB

2 years ago
2 years ago
  1. <template>
  2. <section
  3. class="other-info tw-px-[30px] tw-mt-[50px] tw-grid tw-grid-cols-1 tw-gap-[30px] md:tw-gap-[20px] md:tw-mt-[65px] xl:tw-mt-[80px] xl:tw-grid-cols-3 xl:tw-gap-[40px] xl:tw-px-[60px] xl:tw-max-w-[1366px] xl:tw-mx-auto">
  4. <div v-for="n in lengths" :key="n"
  5. class="tw-border tw-border-solid tw-border-neutrals-200 tw-h-auto tw-overflow-hidden tw-rounded-[20px] tw-px-[30px] tw-py-[20px] tw-flex tw-justify-between md:tw-grid-cols-none md:tw-gap-0 md:tw-px-[60px] md:tw-py-[42px] xl:tw-flex-col-reverse xl:tw-items-center xl:tw-px-[85px] xl:tw-py-[55px]">
  6. <div class="md:tw-flex md:tw-flex-col md:tw-justify-center xl:tw-items-center xl:tw-mt-[56px]">
  7. <div class="tw-body-3 tw-mb-[20px] md:tw-body-1">
  8. {{ $t(titleList[n - 1]) }}
  9. </div>
  10. <a v-if=" n == 2" :href="redirectLinkList[n - 1]" target="_blank"
  11. class="tw-transition tw-block tw-body-4 tw-border tw-border-solid tw-border-black tw-text-black tw-decoration-0 tw-px-[16px] tw-py-[9px] tw-rounded-[12px] md:tw-body-3 hover:tw-bg-neutrals-900 hover:tw-text-white">{{
  12. $t(btnTitleList[n - 1])
  13. }}</a>
  14. <a v-else :href="redirectLinkList[n - 1]"
  15. class="tw-transition tw-block tw-body-4 tw-border tw-border-solid tw-border-black tw-text-black tw-decoration-0 tw-px-[16px] tw-py-[9px] tw-rounded-[12px] md:tw-body-3 hover:tw-bg-neutrals-900 hover:tw-text-white">{{
  16. $t(btnTitleList[n - 1])
  17. }}</a>
  18. </div>
  19. <img :src="require(`@/assets/svg/${iconList[n - 1]}.svg`)"
  20. :class="'tw-max-w-[37%] md:tw-max-w-[30%] xl:tw-max-w-[218px]'" />
  21. </div>
  22. </section>
  23. </template>
  24. <script>
  25. import lazyImg from "@/components/img/img.vue";
  26. export default {
  27. components: {
  28. lazyImg,
  29. },
  30. data() {
  31. return {
  32. lengths: 3,
  33. iconList: ["OtherInfo1", "OtherInfo2", "OtherInfo3"],
  34. titleList: ["About Us", "Blog", "FAQ"],
  35. btnTitleList: ["Learn More", "Explore More", "Learn More"],
  36. redirectLinkList: [this.$i18n.locale == 'en' ? '/aboutUs' : `/aboutUs`, this.$i18n.locale == 'en' ? "https://medium.com/showeasy-eng" : "https://medium.com/showeasy", this.$i18n.locale == 'en' ? '/FAQ' : `/FAQ`],
  37. };
  38. },
  39. };
  40. </script>
  41. <style lang="scss" scoped>
  42. .remove-upper {
  43. text-transform: none !important;
  44. }
  45. .border-r-20px {
  46. border-radius: 20px !important;
  47. }
  48. .border-r-10px {
  49. border-radius: 10px !important;
  50. }
  51. </style>