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.

90 lines
2.8 KiB

2 years ago
  1. <template>
  2. <div
  3. class="youMightLike tw-border tw-border-solid tw-border-neutrals-200 tw-h-auto tw-rounded-[24px] tw-mt-[20px]"
  4. >
  5. <a
  6. :href="localePath(`/service/${item.service_id}`)"
  7. class="tw-block tw-w-full xl:tw-h-[216px] xl:tw-overflow-hidden"
  8. ><img
  9. :src="item.preview_image"
  10. class="tw-rounded-t-[24px] tw-w-full tw-h-[50vw] tw-transition tw-duration-200 tw-ease-in-out md:tw-h-[28vw] xl:tw-h-[216px] xl:hover:tw-scale-110"
  11. /></a>
  12. <div class="tw-px-[16px] tw-py-[10px] tw-bg-white tw-rounded-[24px]">
  13. <div class="tw-body-4 tw-text-neutrals-600 tw-mb-[4px]">
  14. {{ item.regionName }}{{ item.countryName }}
  15. </div>
  16. <a :href="localePath(`/service/${item.service_id}`)">
  17. <div
  18. class="t16 tw-text-base-primary tw-mb-[10px] tw-h-[42px] tw-overflow-ellipsis tw-overflow-clip"
  19. >
  20. {{ item.name }}
  21. </div>
  22. </a>
  23. <div class="tw-min-h-[50px] tw-relative">
  24. <!-- <div
  25. class="t12 tw-text-neutrals-800 tw-bg-[#f6f6f6] tw-rounded-[10px] tw-inline-block tw-px-[10px] tw-py-[5px] tw-mb-[10px] tw-h-[26px]"
  26. >
  27. {{ item.subcategory }}
  28. </div>
  29. <div class="tw-flex tw-items-center tw-mb-[8px] tw-h-[18px]">
  30. <div class="tw-body-4 tw-text-primary-1 tw-mr-[4px]">
  31. {{ service.rating }}
  32. </div>
  33. <img
  34. src="~/assets/svg/star.svg"
  35. class="tw-h-[12px] tw-w-[12px] tw-mr-[7px]"
  36. />
  37. <div class="tw-body-4 tw-text-neutrals-600">
  38. ({{ service.reviews }} reviews)
  39. </div>
  40. </div> -->
  41. <div
  42. class="tw-flex tw-flex-col tw-items-end tw-absolute tw-bottom-0 tw-right-0"
  43. >
  44. <!-- <div
  45. class="t12 tw-bg-primary-1 tw-text-neutrals-100 tw-inline-block tw-rounded-[8px] tw-mb-[8px] tw-px-[10px] tw-py-[4px] tw-h-[24px]">
  46. {{ service.discount }}% OFF
  47. </div> -->
  48. <div class="t16 tw-flex tw-h-[21px]">
  49. <!-- <div class="tw-text-neutrals-400 tw-inline-block tw-line-through tw-mr-[8px]">
  50. ${{ service.total }}
  51. </div> -->
  52. <div class="tw-text-primary-1">
  53. ${{ item.price }} {{ currency }}
  54. <span class="tw-text-primary-2">up</span>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </template>
  62. <script>
  63. export default {
  64. data() {
  65. return {
  66. countrycode: [],
  67. regionName: [],
  68. };
  69. },
  70. props: {
  71. service: {
  72. type: Object,
  73. },
  74. item: {
  75. type: Object,
  76. },
  77. },
  78. computed: {
  79. currency() {
  80. return this.$store.getters.getCurrency;
  81. },
  82. },
  83. };
  84. </script>
  85. <style lang="scss" scoped>
  86. .youMightLike {
  87. -webkit-mask-image: -webkit-radial-gradient(white, black);
  88. }
  89. </style>