jichoi / lms_front star
[jichoi] 2024-08-12
240812 최정임
@11b0520a146cdb5f7248d67d81569e3134c6e9d1
client/resources/css/style.css
--- client/resources/css/style.css
+++ client/resources/css/style.css
@@ -284,7 +284,7 @@
 .mypage .photobook .title1{font-family: 'ONEMobilePOPOTF'; font-weight: 100;}
 .mypage .textbook .text {border-radius:  12px 12px 0px 0px; height: 68px;
 }
-.mypage .textbook .box{height: 199px; text-align: center; padding: 10px;}
+.mypage .textbook .box{height: fit-content; text-align: center; padding: 10px;}
 .mypage .book-red .text{background-color: #DB2B39;}
 /* .mypage .textbook:nth-child(2) .text */
 .mypage .book-blue .text{background-color:#2D7DD2;}
@@ -674,7 +674,7 @@
 .listenGroup img.bg {
   position: absolute;
   top: 0;
-  width: 1670px;
+  width: 100%;
   height: 710px;
 }
 
@@ -690,14 +690,15 @@
   top: 45%;
     left: 31%;
   transform: translate(-50%, -50%);
-  width: 900px;
+  /* width: 900px; */
 }
 
 .listenGroup .textbox p {
   font-size: 28px;
   line-height: 45px;
+  
 }
-
+p.textbox {width: 100%;}
 .listenGroup p.title {
   font-size: 42px;
   text-shadow: 0px 0px 0 #fff, 0px 0px 0 #fff, 0px 0px 0 #fff, 0px 0px 0 #fff;
@@ -744,7 +745,7 @@
 
 /* step2_2 */
 .popTxt{position: relative; }
-.popTxt img:last-child{position: absolute; top: 0; left: 0;}
+
 
 h4{font-size: 20px;}
 
client/views/pages/main/Chapter/Chapter1_3.vue
--- client/views/pages/main/Chapter/Chapter1_3.vue
+++ client/views/pages/main/Chapter/Chapter1_3.vue
@@ -45,4 +45,7 @@
     mounted() {
     }
 }
-</script>
(No newline at end of file)
+</script>
+<style scoped>
+.listenGroup .textbox { width: 900px};
+</style>
(No newline at end of file)
client/views/pages/main/Chapter/Chapter2_2.vue
--- client/views/pages/main/Chapter/Chapter2_2.vue
+++ client/views/pages/main/Chapter/Chapter2_2.vue
@@ -1,31 +1,40 @@
 <template>
-  <div id="Chapter2_2" class="content-wrap">
-     <div class="title-box mb25 flex align-center mt40">
-        <span class="title mr40">1. Hello WORLD</span>
-        <span class="subtitle">my name is dd</span>
-     </div>
-     <div class="flex justify-between align-center">
-        <div class="pre-btn" @click="goToPage('Chapter2_1')"><img src="../../../../resources/img/left.png" alt=""></div>
-        <div class="content title-box">
-           <p class="title mt25 title-bg">step2</p>
-          <div class="flex align-center mb30">
-          <p class="subtitle2 mr20">카드를 뒤집어 보세요.</p>
-          <!-- <button><img src="../../../../resources/img/btn10_s.png" alt="">
+   <div id="Chapter2_2" class="content-wrap">
+      <div class="title-box mb25 flex align-center mt40">
+         <span class="title mr40">1. Hello WORLD</span>
+         <span class="subtitle">my name is dd</span>
+      </div>
+      <div class="flex justify-between align-center">
+         <div class="pre-btn" @click="goToPage('Chapter2_1')"><img src="../../../../resources/img/left.png" alt="">
+         </div>
+         <div class="content title-box">
+            <p class="title mt25 title-bg">step2</p>
+            <div class="flex align-center mb30">
+               <p class="subtitle2 mr20">카드를 뒤집어 보세요.</p>
+               <!-- <button><img src="../../../../resources/img/btn10_s.png" alt="">
           </button> -->
-        </div>
+            </div>
 
-           <div class="imgGroup">
-              <div class="flex justify-center" style="gap: 90px;">
-                 <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)">
-                    <img :src="item.imgSrc1" >
-                    <img :src="item.imgSrc2" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }">
-                 </button>
-              </div>
-           </div>
-        </div>
-        <div class="next-btn" @click="goToPage('Chapter2_3')"><img src="../../../../resources/img/right.png" alt=""></div>
-     </div>
-  </div>
+            <div class="imgGroup">
+               <div class="flex justify-center" style="gap: 90px;">
+                  <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)">
+                     <div class="listenGroup">
+                        <img :src="item.imgSrc1">
+                        <p class="textbox"><img :src="item.imgSrc"></p>
+
+                     </div>
+                     <div class="listenGroup" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }">
+                        <img :src="item.imgSrc2">
+                        <p class="title4 textbox">{{ item.title }}</p>
+                     </div>
+                  </button>
+               </div>
+            </div>
+         </div>
+         <div class="next-btn" @click="goToPage('Chapter2_3')"><img src="../../../../resources/img/right.png" alt="">
+         </div>
+      </div>
+   </div>
 </template>
 
 
@@ -34,10 +43,10 @@
    data() {
       return {
          items: [
-            { imgSrc1: 'client/resources/img/img49_s_1.png', imgSrc2: 'client/resources/img/img50_s_2.png', isSecondImageVisible: false },
-            { imgSrc1: 'client/resources/img/img49_s_2.png', imgSrc2: 'client/resources/img/img50_s_3.png', isSecondImageVisible: false },
-            { imgSrc1: 'client/resources/img/img49_s_3.png', imgSrc2: 'client/resources/img/img50_s_4.png', isSecondImageVisible: false },
-            { imgSrc1: 'client/resources/img/img49_s_4.png', imgSrc2: 'client/resources/img/img50_s_1.png', isSecondImageVisible: false }
+            { imgSrc1: 'client/resources/img/img49_s.png', imgSrc2: 'client/resources/img/img50_s.png', imgSrc: 'client/resources/img/img59_36s.png', isSecondImageVisible: false, title: 'a' },
+            { imgSrc1: 'client/resources/img/img49_s.png', imgSrc2: 'client/resources/img/img50_s.png', imgSrc: 'client/resources/img/img59_36s.png', isSecondImageVisible: false, title: 'a' },
+            { imgSrc1: 'client/resources/img/img49_s.png', imgSrc2: 'client/resources/img/img50_s.png', imgSrc: 'client/resources/img/img59_36s.png', isSecondImageVisible: false, title: 'a' },
+            { imgSrc1: 'client/resources/img/img49_s.png', imgSrc2: 'client/resources/img/img50_s.png', imgSrc: 'client/resources/img/img59_36s.png', isSecondImageVisible: false, title: 'a' }
          ]
       };
    },
@@ -51,4 +60,21 @@
    }
 }
 
-</script>
(No newline at end of file)
+</script>
+<style scoped>
+.popTxt {
+   width: 295px;
+   height: 406px;
+}
+
+.popTxt div:last-child img {
+   position: absolute;
+   top: 0;
+   left: 0;
+}
+
+.listenGroup .textbox {
+   top: 50%;
+    left: 50%;
+}
+</style>
(No newline at end of file)
client/views/pages/main/Chapter/Chapter2_4.vue
--- client/views/pages/main/Chapter/Chapter2_4.vue
+++ client/views/pages/main/Chapter/Chapter2_4.vue
@@ -19,11 +19,15 @@
             <div class="imgGroup">
 
                <div class="flex justify-center">
-                  <div class="btnGroup  flex" style="gap: 60px;">
+                  <div class="listenGroup  flex" style="gap: 60px;">
                      <button class="popTxt" v-for="(item, index) in items" :key="index" @click="updateContent(index)"
                         :class="{ active: selectedIndex === index }">
                         <img :src="item.imgSrc1">
                         <img :src="item.imgSrc2" v-if="selectedIndex === index" style="display: block;">
+                        <div class="textbox">
+                          <div style="height: 80%; line-height: 200px;"> <img :src="item.imgSrc" alt=""></div>
+                           <p class="subtitle3" style="height: 20%;">{{ item.title }}</p>
+                        </div>
                      </button>
                   </div>
                </div>
@@ -43,10 +47,10 @@
    data() {
       return {
          items: [
-            { imgSrc1: 'client/resources/img/img61_36s_1.png', imgSrc2: 'client/resources/img/img61_36s_1_Click.png' },
-            { imgSrc1: 'client/resources/img/img61_36s_2.png', imgSrc2: 'client/resources/img/img61_36s_2_Click.png' },
-            { imgSrc1: 'client/resources/img/img61_36s_3.png', imgSrc2: 'client/resources/img/img61_36s_4_Click.png' },
-            { imgSrc1: 'client/resources/img/img61_36s_4.png', imgSrc2: 'client/resources/img/img61_36s_3_Click.png' },
+            { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img59_36s.png', title: 'apple' },
+            { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img58_36s.png', title: 'a'},
+            { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img57_36s.png', title: 'a' },
+            { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img56_36s.png', title: 'a' },
          ],
          selectedIndex: 0,
          timer: "00",
@@ -68,10 +72,17 @@
 </script>
 
 <style scoped>
+.listenGroup{height: 305px;}
+.listenGroup button{position: relative;}
+.listenGroup .textbox {    
+   width: 184px;
+    height: 206px;
+    left: 46%;
+    top: 43%;} 
 .look-text{bottom: 50px;}
 .btnGroup{width: 1060px; height: 340px;}
-.popTxt{width: 216px;}
-.popTxt img {
+.popTxt{width: 216px; }
+.popTxt > img {
    position: absolute;
    top: 0;
    left: 0;
Add a comment
List