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.

91 lines
2.3 KiB

2 years ago
  1. <template>
  2. <div class="step-info tw-flex tw-justify-between tw-items-center tw-flex-nowrap">
  3. <div :class="[
  4. 'step-item',
  5. 'tw-block',
  6. 'tw-text-center',
  7. 'tw-w-full',
  8. 'tw-body-4',
  9. 'tw-text-black',
  10. 'tw-max-w-[66px]',
  11. 'md:tw-max-w-full',
  12. 'xl:tw-text-[18px]',
  13. ]">
  14. <span
  15. class="tw-flex tw-justify-center tw-items-center tw-w-[22px] tw-h-[22px] tw-text-neutrals-0 tw-bg-black tw-mx-auto tw-mb-[10px] tw-rounded-2xl">1</span>
  16. {{$t('Choose booking')}}
  17. </div>
  18. <div
  19. class="step-line tw-block tw-w-full tw-h-px tw-bg-neutrals-800 tw-mx-[30px] xl:tw-mx-[125px] xl:tw-max-w-[150px]">
  20. </div>
  21. <div :class="[
  22. 'step-item',
  23. 'tw-block',
  24. 'tw-text-center',
  25. 'tw-w-full',
  26. 'tw-body-4',
  27. 'tw-min-w-[66px]',
  28. 'tw-max-w-[66px]',
  29. 'md:tw-max-w-full',
  30. 'xl:tw-text-[18px]',
  31. step_active == '2' ? 'tw-text-primary-1' : '',
  32. step_active == '3' ? 'tw-text-black' : '',
  33. ]">
  34. <span :class="[
  35. 'tw-flex',
  36. 'tw-justify-center',
  37. 'tw-items-center',
  38. 'tw-w-[22px]',
  39. 'tw-h-[22px]',
  40. 'tw-text-neutrals-0',
  41. 'tw-mx-auto',
  42. 'tw-mb-[10px]',
  43. 'tw-rounded-2xl',
  44. step_active == '2' ? 'tw-bg-primary-1' : '',
  45. step_active == '3' ? 'tw-bg-black' : '',
  46. ]">2</span>
  47. {{$t('Enter info & Pay')}}
  48. </div>
  49. <div
  50. class="step-line tw-block tw-w-full tw-h-px tw-bg-neutrals-800 tw-mx-[30px] xl:tw-mx-[125px] xl:tw-max-w-[150px]">
  51. </div>
  52. <div :class="[
  53. 'step-item',
  54. 'tw-block',
  55. 'tw-text-center',
  56. 'tw-w-full',
  57. 'tw-body-4',
  58. 'tw-max-w-[66px]',
  59. 'md:tw-max-w-full',
  60. 'xl:tw-text-[18px]',
  61. step_active == '3' ? 'tw-text-primary-1' : 'tw-text-neutrals-400',
  62. ]">
  63. <span :class="[
  64. 'tw-flex',
  65. 'tw-justify-center',
  66. 'tw-items-center',
  67. 'tw-w-[22px]',
  68. 'tw-h-[22px]',
  69. 'tw-text-neutrals-0',
  70. 'tw-mx-auto',
  71. 'tw-mb-[10px]',
  72. 'tw-rounded-2xl',
  73. step_active == '3' ? 'tw-bg-primary-1' : 'tw-bg-neutrals-400',
  74. ]">3</span>
  75. {{$t('Done')}}
  76. </div>
  77. </div>
  78. </template>
  79. <script>
  80. export default {
  81. name: "StepInfo",
  82. props: {
  83. step_active: {
  84. type: String,
  85. },
  86. },
  87. };
  88. </script>
  89. <style lang="scss" scoped>
  90. </style>