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.

131 lines
2.9 KiB

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