Joung Jiwon

css 3차 수정

...@@ -384,42 +384,6 @@ select::-ms-expand { ...@@ -384,42 +384,6 @@ select::-ms-expand {
384 input{ 384 input{
385 border-radius:5px; 385 border-radius:5px;
386 } 386 }
387 -
388 -#map-answer{
389 - display:flex;
390 - justify-content: center;
391 - border-top:2px solid white;
392 - padding-top:50px;
393 -}
394 -.answer-field{
395 - width:30%;
396 - font-size :30px;
397 - line-height:80px;
398 -}
399 -#answer-how-many-hours{
400 - width:100%;
401 - margin-bottom:100px;
402 -}
403 -.row{
404 - display:flex;
405 - justify-content: center;
406 -}
407 -#answer-detail{
408 - display:flex;
409 - justify-content: center;
410 -}
411 -.answer-detail-question,
412 -.answer-detail-answer{
413 - width:49%;
414 -}
415 -.answer-detail-question{
416 - text-align: right;
417 - margin-right:10px;
418 -}
419 -.answer-highlight{
420 - font-size:35px;
421 - color:darkseagreen;
422 -}
423 .tm-underline { 387 .tm-underline {
424 border-top: 2px solid white; 388 border-top: 2px solid white;
425 height: 8px; 389 height: 8px;
...@@ -494,7 +458,70 @@ iframe{ ...@@ -494,7 +458,70 @@ iframe{
494 min-height: 750px; 458 min-height: 750px;
495 position: relative; 459 position: relative;
496 padding-bottom: 50px; 460 padding-bottom: 50px;
497 - padding-top: 160px; 461 + padding-top: 20px;
462 +}
463 +
464 +.answer-grid-container {
465 + display: grid;
466 + margin:30px 30px;
467 + grid-template-columns: 1fr 1fr 1fr 1fr;
468 + grid-template-rows: 1fr 0.5fr 0.5fr 0.5fr;
469 + gap: 10px 20px;
470 + grid-template-areas:
471 + ". map answer-field ."
472 + "list-answer-field list-answer-field list-answer-field list-answer-field"
473 + "detail-answer-field detail-answer-field detail-answer-field detail-answer-field"
474 + "detail-answer-field detail-answer-field detail-answer-field detail-answer-field";
475 +}
476 +
477 +.map { grid-area: map; }
478 +
479 +.answer-field {
480 + grid-area: answer-field;
481 + font-size:35px;
482 + text-shadow: 2px 2px 2px #333;
483 +}
484 +
485 +.list-answer-field {
486 + grid-area: list-answer-field;
487 + font-size:35px;
488 + text-shadow: 2px 2px 2px #333;
489 + text-align : center;
490 +}
491 +
492 +.detail-answer-field {
493 + display: grid;
494 + grid-template-columns: 1fr 1fr 1fr 1fr;
495 + gap: 20px 30px;
496 + grid-template-areas:
497 + "salary-field dish-field everest-field earth-field";
498 + grid-area: detail-answer-field;
499 + height : 200px;
500 +}
501 +.detail-answer-box{
502 + margin-top:10px;
503 + display:table-cell;
504 + background-color : darkgrey;
505 + border-radius:6px;
506 + font-size:20px;
507 + padding : 10px 10px;
508 + height:150px;
509 +}
510 +.detail-answer-small-box{
511 + font-size:30px;
512 + margin-top:20px;
513 +}
514 +.salary-field { grid-area: salary-field; }
515 +
516 +.dish-field { grid-area: dish-field; }
517 +
518 +.everest-field { grid-area: everest-field; }
519 +
520 +.earth-field { grid-area: earth-field; }
521 +
522 +.detail-answer-small-box{
523 + transform:translateX(2.5%);
524 + width : 95%;
498 } 525 }
499 526
500 527
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
66 </div> 66 </div>
67 67
68 <div class="tm-next tm-intro-next"> 68 <div class="tm-next tm-intro-next">
69 - <a href="#contact" class="text-center tm-down-arrow-link"> 69 + <a href="#contact" class="button1 text-center tm-down-arrow-link">
70 <i class="fas fa-3x fa-caret-down tm-down-arrow">계산해보기</i> 70 <i class="fas fa-3x fa-caret-down tm-down-arrow">계산해보기</i>
71 </a> 71 </a>
72 </div> 72 </div>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
102 </select> 102 </select>
103 </div></div> 103 </div></div>
104 </div> 104 </div>
105 - <a href="#result" class="text-center tm-down-arrow-link"> 105 + <a href="#result" class="button2 text-center tm-down-arrow-link">
106 <i class="fas fa-3x fa-caret-down tm-down-arrow">계산해보기</i> 106 <i class="fas fa-3x fa-caret-down tm-down-arrow">계산해보기</i>
107 </a> 107 </a>
108 </div> 108 </div>
...@@ -110,31 +110,34 @@ ...@@ -110,31 +110,34 @@
110 110
111 111
112 <section id="result"> 112 <section id="result">
113 - <div id="map" style="width:700px;height:300px;"></div> 113 + <div class="answer-grid-container">
114 - <div class="answer-field">한번 갈 때마다 ...<br> 114 + <div class="map" id="map" style="width:500px;height:300px;""></div>
115 - <span class="answer-highlight">n</span> 시간 115 + <div class="answer-field" style="width:300px;"><br><br>한번 갈 때마다 ...<br>
116 - <span class="answer-highlight">n</span><br> 116 + <span class="answer-highlight">?</span> 시간
117 - </div> 117 + <span class="answer-highlight">?</span><br>
118 - <div class="row">
119 - <div id="list-answer">
120 - <div class="answer-field" id="answer-how-many-hours">
121 - 지금까지 <span class="answer-highlight" id="since">?</span>시간을 길에서 보내셨군요<br>
122 - 졸업까지 앞으로 <span class="answer-highlight" id="until">?</span>시간은 더 길에서 보내시면 됩니다.<br>
123 - </div>
124 </div> 118 </div>
125 - </div> 119 +
126 - <div class="row"> 120 + <div class="list-answer-field">
127 - <div class="answer-detail-question"> 121 + 지금까지 <span class="answer-highlight" id="since">?</span>시간을 길에서 보내셨군요<br>
128 - 이 시간에 알바를 했다면? <br> 122 + 졸업까지 앞으로 <span class="answer-highlight" id="until">?</span>시간은 더 길에서 보내시면 됩니다.<br>
129 - 교통비로 국밥 <br>
130 - 이 거리라면 에베레스트 등반을 <br>
131 - 지구를
132 </div> 123 </div>
133 - <div class="answer-detail-answer"> 124 + <div class="detail-answer-field">
134 - <span id = "salary">?</span><br> 125 + <div class="detail-answer-box salary-field">이 시간에 알바를 했다면?<br>
135 - <span id = "dish">?</span>그릇<br> 126 + <div class="detail-answer-small-box">
136 - <span id = "everest">?</span>번이나...<br> 127 + <span id = "salary">?</span><br></div></div>
137 - <span id = "earth">?</span>바퀴나 돌아요<br><br><br> 128 + <div class="detail-answer-box dish-field">교통비로 국밥<br>
129 + <div class="detail-answer-small-box">
130 + <span id = "dish">?</span>그릇<br></div>
131 + </div>
132 + <div class="detail-answer-box everest-field">이 거리라면 에베레스트 등반을<br>
133 + <div class="detail-answer-small-box">
134 + <span id = "everest">?</span>번이나...<br></div>
135 + </div>
136 + <div class="detail-answer-box earth-field">지구를<br>
137 + <div class="detail-answer-small-box">
138 + <span id = "earth">?</span>바퀴나 돌아요<br><br><br>
139 + </div>
140 + </div>
138 </div> 141 </div>
139 </div> 142 </div>
140 <footer class="text-center small tm-footer"> 143 <footer class="text-center small tm-footer">
...@@ -500,7 +503,7 @@ ...@@ -500,7 +503,7 @@
500 $(function () { 503 $(function () {
501 // Hero Section - Background Parallax 504 // Hero Section - Background Parallax
502 background_image_parallax($(".tm-parallax"), 0.30, false); 505 background_image_parallax($(".tm-parallax"), 0.30, false);
503 - background_image_parallax_2($("#contact"), 0.80); 506 + background_image_parallax_2($("#contact"), 0.80)
504 507
505 // Handle window resize 508 // Handle window resize
506 window.addEventListener('resize', function () { 509 window.addEventListener('resize', function () {
...@@ -526,12 +529,18 @@ ...@@ -526,12 +529,18 @@
526 529
527 // Add smooth scrolling to all links 530 // Add smooth scrolling to all links
528 // https://www.w3schools.com/howto/howto_css_smooth_scroll.asp 531 // https://www.w3schools.com/howto/howto_css_smooth_scroll.asp
529 - $("a").on('click', function (event) { 532 + $(".button1").on('click', function (event) {
530 $('html, body').animate({ 533 $('html, body').animate({
531 scrollTop: $("#contact").offset().top 534 scrollTop: $("#contact").offset().top
532 }, 400); 535 }, 400);
533 }); 536 });
534 537
538 + $(".button2").on('click', function (event) {
539 + $('html, body').animate({
540 + scrollTop: $("#result").offset().top-50
541 + }, 400);
542 + });
543 +
535 // Pop up 544 // Pop up
536 $('.tm-gallery').magnificPopup({ 545 $('.tm-gallery').magnificPopup({
537 delegate: 'a', 546 delegate: 'a',
......