

231123 김하영
@b9458615febc27755a69b8bc6e8c85bbb47dce65
--- client/resources/css/Main.css
+++ client/resources/css/Main.css
... | ... | @@ -94,10 +94,13 @@ |
94 | 94 |
text-align: center; |
95 | 95 |
z-index: 1; |
96 | 96 |
border-radius: 2rem; |
97 |
- box-shadow: 1px 1px 10px #3a3a3a; |
|
97 |
+ box-shadow: 1px 1px 20px #3a3a3a; |
|
98 |
+ background-color: white; |
|
99 |
+} |
|
100 |
+.main-popup-div .swiper-wrapper { |
|
101 |
+ padding: 0 0 3rem; |
|
98 | 102 |
} |
99 | 103 |
.main-popup-div { |
100 |
- background-color: white; |
|
101 | 104 |
border-radius: 2rem; |
102 | 105 |
} |
103 | 106 |
.main-popup img { |
... | ... | @@ -106,10 +109,13 @@ |
106 | 109 |
border-top-right-radius: 2rem; |
107 | 110 |
border-top-left-radius: 2rem; |
108 | 111 |
} |
109 |
-.main-popup-div div:nth-child(2) { |
|
110 |
- text-align: right; |
|
111 |
- padding: 2rem; |
|
112 |
+.main-popup-input { |
|
113 |
+ padding: 0.5rem 1.7rem; |
|
114 |
+ display: flex; |
|
115 |
+ justify-content: space-between; |
|
116 |
+ text-align: center; |
|
112 | 117 |
} |
118 |
+ |
|
113 | 119 |
.modal-news-title { |
114 | 120 |
font-size: 2rem; |
115 | 121 |
font-weight: 600; |
... | ... | @@ -2077,7 +2083,9 @@ |
2077 | 2083 |
width: 70%; |
2078 | 2084 |
margin: 0 auto; |
2079 | 2085 |
} |
2086 |
+/* 임시 css */ |
|
2080 | 2087 |
|
2088 |
+/* -------------- */ |
|
2081 | 2089 |
.login-info > div > p { |
2082 | 2090 |
color: rgb(255, 0, 0); |
2083 | 2091 |
padding: 0 1rem; |
... | ... | @@ -2608,10 +2616,9 @@ |
2608 | 2616 |
|
2609 | 2617 |
.login-checkbox-i { |
2610 | 2618 |
text-align: left; |
2611 |
- margin: 0 auto; |
|
2619 |
+ /* margin: 0 auto; */ |
|
2612 | 2620 |
} |
2613 |
- |
|
2614 |
-.login-checkbox-i input[type="checkbox"] { |
|
2621 |
+.flex .login-checkbox-i input[type="checkbox"] { |
|
2615 | 2622 |
text-align: left; |
2616 | 2623 |
margin: 1rem; |
2617 | 2624 |
transform: scale(1.5); |
--- client/views/pages/user/login/Login.vue
+++ client/views/pages/user/login/Login.vue
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 |
</div> |
21 | 21 |
</section> |
22 | 22 |
|
23 |
- <section class="login-checkbox"> |
|
23 |
+ <!-- <section class="login-checkbox"> |
|
24 | 24 |
<div class="login-checkbox-i"> |
25 | 25 |
<input type="checkbox"> |
26 | 26 |
<span> |
... | ... | @@ -35,11 +35,24 @@ |
35 | 35 |
<router-link :to="{ path: '/userIDsearch.page', query: { mode: 'pw' } }"> |
36 | 36 |
<button class="login-bu-after">비밀번호찾기</button> |
37 | 37 |
</router-link> |
38 |
- <router-link to="/Join.page"> |
|
39 |
- <button>회원가입</button> |
|
40 |
- </router-link> |
|
38 |
+ <router-link to="/Join.page"> |
|
39 |
+ <button>회원가입</button> |
|
40 |
+ </router-link> |
|
41 |
+ </div> |
|
42 |
+ </section> --> |
|
43 |
+ |
|
44 |
+ <div class="flex " style="margin: 1.5rem 0.5rem ;"> |
|
45 |
+ <div class="login-checkbox-i"> |
|
46 |
+ <input type="checkbox"> |
|
47 |
+ <span> |
|
48 |
+ 로그인상태 유지 |
|
49 |
+ </span> |
|
41 | 50 |
</div> |
42 |
- </section> |
|
51 |
+ <router-link to="/Join.page"> |
|
52 |
+ <button style="background-color: rgba(255, 228, 196, 0);">회원가입</button> |
|
53 |
+ </router-link> |
|
54 |
+ |
|
55 |
+ </div> |
|
43 | 56 |
<section class="login-button"> |
44 | 57 |
<button @click="login">로그인</button> |
45 | 58 |
</section> |
... | ... | @@ -80,12 +93,12 @@ |
80 | 93 |
}, |
81 | 94 |
methods: { |
82 | 95 |
//아스크 변환 |
83 |
- asc: function(data) { |
|
96 |
+ asc: function (data) { |
|
84 | 97 |
let ascii = ''; |
85 |
- for ( let i = 0; i < data.length; i++) { |
|
98 |
+ for (let i = 0; i < data.length; i++) { |
|
86 | 99 |
ascii += data.charCodeAt(i); |
87 | 100 |
} |
88 |
- console.log('ascii',ascii) |
|
101 |
+ console.log('ascii', ascii) |
|
89 | 102 |
return ascii |
90 | 103 |
}, |
91 | 104 |
//로그인 |
... | ... | @@ -95,9 +108,9 @@ |
95 | 108 |
let iv = this.store.state.key.iv; |
96 | 109 |
var salt = this.store.state.key.salt; |
97 | 110 |
var passPhrase = this.store.state.key.ENC_KEY; |
98 |
- console.log('this.asc(iv) - ',this.asc(iv)); |
|
99 |
- console.log('this.asc(salt) - ',this.asc(salt)); |
|
100 |
- console.log('this.asc(passPhrase) - ',this.asc(passPhrase)); |
|
111 |
+ console.log('this.asc(iv) - ', this.asc(iv)); |
|
112 |
+ console.log('this.asc(salt) - ', this.asc(salt)); |
|
113 |
+ console.log('this.asc(passPhrase) - ', this.asc(passPhrase)); |
|
101 | 114 |
var keySize = 128; |
102 | 115 |
var iterationCount = 1000; |
103 | 116 |
var key128Bits100Iterations = crypto.PBKDF2(passPhrase, crypto.enc.Hex.parse(salt), { keySize: keySize / 32, iterations: iterationCount }); |
--- client/views/pages/user/main/Main.vue
+++ client/views/pages/user/main/Main.vue
... | ... | @@ -326,16 +326,31 @@ |
326 | 326 |
|
327 | 327 |
|
328 | 328 |
|
329 |
- <div class="main-popup" v-if="showPopup"> |
|
330 |
- <div class="main-popup-div"> |
|
329 |
+ <!-- <div class="main-popup" v-if="showPopup"> |
|
330 |
+ <div> |
|
331 | 331 |
|
332 |
- <div><img src="../../../../resources/jpg/main-popup-img.jpg" alt=""></div> |
|
333 |
- <div> |
|
334 |
- <input type="checkbox" v-model="doNotShow">오늘 하루동안 열지 않기 |
|
332 |
+ <div class="main-popup-div"> |
|
333 |
+ <swiper style="margin: 2rem;" :spaceBetween="30" :centeredSlides="true" :autoplay="{ |
|
334 |
+ delay: 3000, |
|
335 |
+ disableOnInteraction: false, |
|
336 |
+ }" :pagination="{ |
|
337 |
+ clickable: true, |
|
338 |
+}" :navigation="false" :modules="modules" class="mySwiper"> |
|
339 |
+ |
|
340 |
+ <swiper-slide><img src="../../../../resources/jpg/main-popup-img.jpg" alt=""></swiper-slide> |
|
341 |
+ <swiper-slide><img src="../../../../resources/jpg/main-popup-img.jpg" alt=""></swiper-slide> |
|
342 |
+ <swiper-slide><img src="../../../../resources/jpg/main-popup-img.jpg" alt=""></swiper-slide> |
|
343 |
+ <swiper-slide><img src="../../../../resources/jpg/main-popup-img.jpg" alt=""></swiper-slide> |
|
344 |
+ |
|
345 |
+ </swiper> |
|
346 |
+ </div> |
|
347 |
+ <div class="main-popup-input" :class="{ active: doNotShow }"> |
|
348 |
+ <p @click="closeForDay">오늘 하루동안 열지 않기</p> |
|
349 |
+ <p @click="closeNow">닫기</p> |
|
335 | 350 |
|
336 | 351 |
</div> |
337 | 352 |
</div> |
338 |
- </div> |
|
353 |
+ </div> --> |
|
339 | 354 |
</template> |
340 | 355 |
|
341 | 356 |
<script> |
... | ... | @@ -368,14 +383,39 @@ |
368 | 383 |
noticeList: [], |
369 | 384 |
noticeListForBanner: [], |
370 | 385 |
swiper: null, |
371 |
- showPopup: true, |
|
372 |
- doNotShow: false |
|
386 |
+ // showPopup: true, |
|
387 |
+ // doNotShow: false, |
|
388 |
+ // doNotShow: this.checkPopup() |
|
373 | 389 |
} |
374 | 390 |
}, |
375 | 391 |
methods: { |
376 |
- openWindow() { |
|
377 |
- window.open('', '팝업창', 'width=300, height=200, left=0, top=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no'); |
|
378 |
- }, |
|
392 |
+ // closeForDay: function () { |
|
393 |
+ // this.doNotShow = true; |
|
394 |
+ // const now = new Date(); |
|
395 |
+ // localStorage.setItem('popupClosed', now); |
|
396 |
+ // this.doNotShow = true; |
|
397 |
+ // }, |
|
398 |
+ // closeNow: function () { |
|
399 |
+ // this.doNotShow = true; |
|
400 |
+ |
|
401 |
+ // }, |
|
402 |
+ // checkPopup: function () { |
|
403 |
+ // const popupClosedTime = localStorage.getItem('popupClosed'); |
|
404 |
+ // if (popupClosedTime) { |
|
405 |
+ // const closedTime = new Date(popupClosedTime); |
|
406 |
+ // const now = new Date(); |
|
407 |
+ // const diffTime = Math.abs(now - closedTime); |
|
408 |
+ // const diffHours = Math.ceil(diffTime / (1000 * 60 * 60)); |
|
409 |
+ // if (diffHours < 24) { |
|
410 |
+ // return true; |
|
411 |
+ // } |
|
412 |
+ // } |
|
413 |
+ // return false; |
|
414 |
+ // }, |
|
415 |
+ |
|
416 |
+ |
|
417 |
+ |
|
418 |
+ |
|
379 | 419 |
showAlert: function () { |
380 | 420 |
alert('페이지 준비중입니다.'); |
381 | 421 |
}, |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?