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.

140 lines
3.3 KiB

2 years ago
  1. <template>
  2. <modal name="OtherDetails" :clickToClose="false">
  3. <div class="tw-text-base-primary xl:tw-p-[5px]">
  4. <div class="modal-header tw-flex tw-w-full tw-justify-center tw-mb-[32px] md:tw-mb-[21px] xl:tw-justify-start">
  5. <button class="close tw-transition tw-btn-md" @click="$modal.hide('OtherDetails')"></button>
  6. <div class="t18 xl:tw-text-[20px]">{{ $t('Other Details') }}</div>
  7. </div>
  8. <div class="modal-content tw-head-body tw-grid tw-gap-[10px] tw-grid-cols-1 md:tw-text-[12px]">
  9. <div v-for="(item,key) in OtherDetail" :key="key">
  10. <div class="tw-text-neutrals-600 tw-mb-[20px]">
  11. {{item.question}}<span class="tw-text-[#EF5A5A]">*</span>
  12. </div>
  13. <div class="tw-text-neutrals-800 tw-mb-[37px]">
  14. {{ item.answer }}
  15. </div>
  16. <div v-if=" key < OtherDetail.length - 1 " class="tw-border-solid tw-border-neutrals-200"></div>
  17. </div>
  18. <div class="tw-flex tw-justify-end tw-hidden xl:tw-flex">
  19. <button
  20. class="tw-body-2 tw-text-neutrals-0 tw-bg-base-secondary tw-rounded-[16px] tw-px-[24px] tw-py-[12px] tw-mb-[10px]"
  21. @click="$modal.hide('OtherDetails')">
  22. OK
  23. </button>
  24. </div>
  25. </div>
  26. </div>
  27. </modal>
  28. </template>
  29. <script>
  30. export default {
  31. name: "OtherDetails",
  32. data() {
  33. return {};
  34. },
  35. props: {
  36. OtherDetail: {
  37. type: Array,
  38. },
  39. },
  40. };
  41. </script>
  42. <style lang="scss" scoped>
  43. .close {
  44. position: absolute;
  45. left: 25px;
  46. top: 25px;
  47. background-image: url("~/assets/svg/close.svg");
  48. background-position: center;
  49. background-repeat: no-repeat;
  50. background-size: cover;
  51. width: 14px;
  52. height: 14px;
  53. @media screen and (min-width: 1366px) {
  54. margin-left: 530px;
  55. }
  56. }
  57. :deep() {
  58. .v--modal {
  59. background-color: #f8f8f8 !important;
  60. text-align: left;
  61. border-top-left-radius: 16px;
  62. border-top-right-radius: 16px;
  63. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  64. padding: 20px;
  65. min-width: 100% !important;
  66. top: 0 !important;
  67. left: 0 !important;
  68. right: 0 !important;
  69. margin: 0;
  70. height: auto !important;
  71. vertical-align: bottom;
  72. @media screen and (min-width: 1366px) {
  73. border-radius: 16px;
  74. width: max-content;
  75. vertical-align: middle;
  76. }
  77. }
  78. .v--modal-overlay {
  79. position: fixed;
  80. box-sizing: border-box;
  81. left: 0;
  82. top: 0;
  83. align-items: flex-end;
  84. width: 100%;
  85. height: auto;
  86. background: rgba(0, 0, 0, 0.2);
  87. z-index: 999;
  88. opacity: 1;
  89. @media screen and (min-width: 1366px) {
  90. width: max-content !important;
  91. display: flex;
  92. justify-content: center;
  93. }
  94. }
  95. .v--modal-overlay {
  96. width: max-content !important;
  97. display: flex;
  98. justify-content: center;
  99. }
  100. .v--modal-box {
  101. top: 0;
  102. left: 0;
  103. width: 100%;
  104. height: 0;
  105. @media screen and (min-width: 1366px) {
  106. width: max-content;
  107. }
  108. }
  109. .v--modal-top-right {
  110. display: block;
  111. position: fixed;
  112. right: 0;
  113. top: 0;
  114. }
  115. .v--modal-background-click {
  116. display: flex;
  117. align-items: flex-end;
  118. margin: 0 auto;
  119. @media screen and (min-width: 1366px) {
  120. width: max-content;
  121. display: flex;
  122. align-items: center;
  123. justify-content: center;
  124. }
  125. }
  126. }
  127. </style>