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.

102 lines
2.0 KiB

2 years ago
2 years ago
  1. <template>
  2. <modal name="CancellationPolicy" :clickToClose="false">
  3. <div class="tw-text-base-primary">
  4. <div class="modal-header tw-flex tw-w-full tw-justify-between tw-mb-[30px]">
  5. <div class="t14 tw-font-bold tw-mr-[100px] md:tw-text-[20px]">
  6. {{ $t("Cancellation Policy") }}
  7. </div>
  8. <button class="close tw-transition tw-btn-md" @click="$modal.hide('CancellationPolicy')"></button>
  9. </div>
  10. <div class="modal-content t12 md:t14" v-html="Policy"></div>
  11. </div>
  12. </modal>
  13. </template>
  14. <script>
  15. export default {
  16. name: "CancellationPolicy",
  17. data() {
  18. return {};
  19. },
  20. props: {
  21. Policy: {
  22. type: String,
  23. },
  24. },
  25. };
  26. </script>
  27. <style lang="scss" scoped>
  28. .close {
  29. position: absolute;
  30. right: 25px;
  31. top: 25px;
  32. background-image: url("~/assets/svg/close.svg");
  33. background-position: center;
  34. background-repeat: no-repeat;
  35. background-size: cover;
  36. width: 14px;
  37. height: 14px;
  38. @media (min-width: 1366px) {
  39. position: relative;
  40. right: initial;
  41. top: initial;
  42. }
  43. }
  44. :deep() {
  45. .v--modal {
  46. background-color: #f8f8f8 !important;
  47. text-align: left;
  48. border-radius: 16px;
  49. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  50. padding: 20px;
  51. max-width: max-content;
  52. top: 0 !important;
  53. left: 0 !important;
  54. right: 0 !important;
  55. margin: 0 auto;
  56. height: auto !important;
  57. vertical-align: middle;
  58. @media screen and (min-width: 768px) {
  59. padding: 30px;
  60. }
  61. }
  62. .v--modal-overlay {
  63. position: fixed;
  64. box-sizing: border-box;
  65. left: 0;
  66. top: 0;
  67. width: max-content;
  68. height: auto;
  69. background: rgba(0, 0, 0, 0.2);
  70. z-index: 999;
  71. opacity: 1;
  72. }
  73. .v--modal-top-right {
  74. display: block;
  75. position: fixed;
  76. right: 0;
  77. top: 0;
  78. }
  79. .v--modal-background-click {
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. }
  84. .v--modal-box {
  85. margin-left: 60px;
  86. margin-right: 60px;
  87. @media (min-width: 768px) {
  88. margin-left: 67px;
  89. margin-right: 67px;
  90. }
  91. }
  92. }
  93. </style>