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.

98 lines
4.0 KiB

2 years ago
  1. <template>
  2. <div
  3. class="RelatedServices tw-bg-neutrals-0 tw-rounded-[16px] tw-px-[10px] tw-pt-[12px] tw-pb-[22px] md:tw-pb-[12px] md:tw-px-[20px]">
  4. <div
  5. class="tw-grid tw-grid-cols-[80px_auto] tw-gap-[10px] tw-items-start md:tw-grid-cols-[148px_auto] md:tw-gap-[20px]">
  6. <nuxt-link :to="localePath('/service/'+relatedservice.id)" target="_blank">
  7. <img :src="relatedservice.preview_image"
  8. class="tw-rounded-[10px] tw-h-[60px] tw-w-full md:tw-mr-[20px] md:tw-h-[111px]" alt="" /></nuxt-link>
  9. <div class="md:tw-my-[4px] xl:tw-grid xl:tw-grid-cols-[444px_150px]">
  10. <div>
  11. <div class="tw-body-5 tw-text-neutrals-600 tw-font-normal tw-mb-[6px] md:tw-body-4">
  12. {{ relatedservice.category }}
  13. </div>
  14. <div class="tw-body-5 tw-text-base-primary tw-font-normal tw-mb-[6px] tw-h-[36px] md:t16 md:tw-h-[42px]">
  15. {{ relatedservice.name }}
  16. </div>
  17. <!-- <div
  18. class="tw-hidden xl:tw-block xl:tw-body-5 xl:tw-text-base-primary xl:tw-h-[32px] xl:tw-overflow-ellipsis xl:tw-overflow-hidden"
  19. >
  20. Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia
  21. officiis dolorem error ex dignissimos minima iure a distinctio culpa
  22. fugiat, ipsam inventore illo. Aut optio numquam fugiat ipsam
  23. reprehenderit vero.
  24. </div> -->
  25. </div>
  26. <div class="md:tw-grid md:tw-grid-cols-[auto_auto] md:tw-items-center xl:tw-grid-cols-1">
  27. <div
  28. class="md:tw-grid md:tw-grid-cols-[21px_auto] md:tw-items-center md:tw-gap-[12px] xl:tw-flex xl:tw-flex-col xl:tw-items-start xl:tw-mb-[10px]">
  29. <like class="tw-hidden md:tw-block md:tw-mr-[12px] md:tw-w-full xl:tw-w-[21px]"></like>
  30. <div class="tw-body-5 tw-text-base-primary tw-font-medium tw-mb-[10px] md:tw-text-[16px] md:tw-mb-0">
  31. ${{ relatedservice.price }} {{ relatedservice.payment_currency }} up
  32. </div>
  33. </div>
  34. <div
  35. class="tw-grid tw-grid-cols-[24px_auto] tw-gap-[10px] tw-items-center md:tw-flex md:tw-justify-end md:tw-items-center md:tw-grid-cols-none xl:tw-justify-start">
  36. <like class="md:tw-hidden"></like>
  37. <nuxt-link :to="localePath('/service/'+relatedservice.id)" target="_blank">
  38. <button
  39. class="tw-bg-primary-1 tw-w-full tw-text-white tw-body-4 tw-rounded-[12px] tw-py-[9px] tw-whitespace-nowrap md:tw-w-fit md:tw-px-[16px] md:tw-text-[16px] md:tw-justify-end">
  40. {{$t('More details')}}
  41. </button>
  42. </nuxt-link>
  43. </div>
  44. </div>
  45. <!-- <div
  46. class="tw-grid tw-grid-cols-[auto_24px_auto] tw-items-center md:tw-grid-col-[24px_348px_auto] xl:tw-mt-[-53px]"
  47. >
  48. <div
  49. class="md:tw-flex md:tw-flex-row-reverse md:tw-items-center md:tw-justify-end xl:tw-flex-col-reverse xl:tw-items-start"
  50. >
  51. <div
  52. class="tw-body-5 tw-text-base-primary tw-font-medium tw-mb-[10px] tw-col-span-2 md:t16 md:tw-mb-0 xl:tw-mt-[8px]"
  53. >
  54. ${{ relatedservice.price }} USD up
  55. </div>
  56. <like
  57. class="tw-mr-[12px] tw-mt-[3px] md:tw-w-[21px] tw-inline-block"
  58. ></like>
  59. </div>
  60. <button
  61. class="tw-bg-primary-1 tw-text-white tw-body-4 tw-rounded-[12px] tw-px-[60px] tw-py-[9px] tw-ml-[35px] tw-mt-[35px] tw-whitespace-nowrap tw-absolute hover:tw-bg-primary-light md:t16 md:tw-px-[16px] md:tw-mt-0 md:tw-ml-[400px] xl:tw-ml-0 xl:tw-mt-[117px]"
  62. >
  63. Book Now
  64. </button>
  65. </div> -->
  66. </div>
  67. </div>
  68. </div>
  69. </template>
  70. <script>
  71. import like from "@/components/newComponent/like/like.vue";
  72. export default {
  73. data() {
  74. return {
  75. categoryname: "",
  76. };
  77. },
  78. components: {
  79. like,
  80. },
  81. props: {
  82. relatedservice: {
  83. type: Object,
  84. },
  85. getservicecategory: {
  86. type: Array,
  87. },
  88. },
  89. };
  90. </script>
  91. <style lang="scss" scoped>
  92. </style>