yjryu / KERIS star
kimgkdud898 2023-11-21
231121김하영
@64935c733b56926fa6b03bec01fe27af207675d3
client/resources/css/Main.css
--- client/resources/css/Main.css
+++ client/resources/css/Main.css
@@ -69,7 +69,9 @@
 .main-notice h2 i {
   margin-right: 1rem;
 }
-
+.m-p-table table tr td p:nth-child(1) {
+  text-align: left;
+}
 .modal-content iframe {
   height: 300px;
 }
@@ -82,7 +84,32 @@
 .modal-content-box > p {
   margin-bottom: 1.5rem;
 }
-
+.main-popup {
+  position: fixed;
+  top: 20%;
+  right: 40%;
+  width: 300px;
+  /* height: 200px; */
+  margin: 0 auto;
+  text-align: center;
+  z-index: 1;
+  border-radius: 2rem;
+  box-shadow: 1px 1px 10px #3a3a3a;
+}
+.main-popup-div {
+  background-color: white;
+  border-radius: 2rem;
+}
+.main-popup img {
+  width: 100%;
+  /* margin: 2rem; */
+  border-top-right-radius: 2rem;
+  border-top-left-radius: 2rem;
+}
+.main-popup-div div:nth-child(2) {
+  text-align: right;
+  padding: 2rem;
+}
 .modal-news-title {
   font-size: 2rem;
   font-weight: 600;
 
client/resources/jpg/main-popup-img.jpg (Binary) (added)
+++ client/resources/jpg/main-popup-img.jpg
Binary file is not shown
client/views/pages/user/main/Main.vue
--- client/views/pages/user/main/Main.vue
+++ client/views/pages/user/main/Main.vue
@@ -323,6 +323,19 @@
 
         </div>
     </div>
+
+
+
+    <div class="main-popup" v-if="showPopup">
+        <div class="main-popup-div">
+
+            <div><img src="../../../../resources/jpg/main-popup-img.jpg" alt=""></div>
+            <div>
+                <input type="checkbox" v-model="doNotShow">오늘 하루동안 열지 않기
+
+            </div>
+        </div>
+    </div>
 </template>
 
 <script>
@@ -355,9 +368,14 @@
             noticeList: [],
             noticeListForBanner: [],
             swiper: null,
+            showPopup: true,
+            doNotShow: false
         }
     },
     methods: {
+        openWindow() {
+            window.open('', '팝업창', 'width=300, height=200, left=0, top=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no');
+        },
         showAlert: function () {
             alert('페이지 준비중입니다.');
         },
@@ -469,7 +487,12 @@
 
     },
     watch: {
-
+        doNotShow(newValue) {
+            if (newValue) {
+                this.showPopup = false;
+                localStorage.setItem('doNotShow', true);
+            }
+        }
     },
     computed: {
 
@@ -489,6 +512,9 @@
         this.noticeListForMain();
         this.noticeBannerListForMain();
         this.initSwiper();
+        if (localStorage.getItem('doNotShow')) {
+            this.showPopup = false;
+        }
     }
 }
 </script>
Add a comment
List