jichoi / lms_front star
이은진 이은진 09-11
240911 이은진 마이페이지 css 수정
@96aad6fd030e6adff1820509fb411099ff349af3
 
client/resources/img/new_img/mypage/background.png (Binary) (added)
+++ client/resources/img/new_img/mypage/background.png
Binary file is not shown
 
client/resources/img/new_img/mypage/photoBtn.png (Binary) (added)
+++ client/resources/img/new_img/mypage/photoBtn.png
Binary file is not shown
client/views/pages/main/Main.vue
--- client/views/pages/main/Main.vue
+++ client/views/pages/main/Main.vue
@@ -9,6 +9,9 @@
                     <div v-if="$route.name === 'MyPlan'" class="main-wrap-plan">
                         <router-view />
                     </div>
+                    <div v-else-if="$route.name === 'MyPage'" class="main-wrap-mypage">
+                        <router-view />
+                    </div>
                     <div v-else class="main-wrap">
                         <router-view />
                     </div>
client/views/pages/main/MyPage.vue
--- client/views/pages/main/MyPage.vue
+++ client/views/pages/main/MyPage.vue
@@ -3,14 +3,14 @@
         <div class="flex justify-between mb30" style="gap: 30px;">
             <div>
                 <div class="title-box flex justify-between mb20">
-                    <p class="title">소속 반</p>
+                    <p class="title" style="color: white;">소속 반</p>
                     <div class="flex align-center look-btn">
                         <!-- <p>더보기 </p><svg-icon type="mdi" :path="mdilArrowRight" class=" ml10"></svg-icon> -->
                     </div>
                 </div>
-                <div class="wrap " style="width: 82rem;">
+                <div style="width: 82rem; padding: 2rem;">
                     <section class="flex" style="gap: 20px;">
-                        <div class="class flex justify-between" style="cursor: default;">
+                        <div class="class flex justify-between" style="cursor: default; background-color: transparent;">
                             <div class="box gd-col2" style="gap: 5px;">
                                 <div><img src="../../../resources/img/img176_82t.png" alt=""></div>
                                 <div><img src="../../../resources/img/img176_82t.png" alt=""></div>
@@ -27,66 +27,60 @@
                 </div>
             </div>
             <div>
-                <div class="title-box flex justify-between mb20">
-                    <p class="title">사진첩</p>
-                </div>
-                <div class="photobook">
-                    <div class="flex justify-between">
-                        <div class="box" style="gap: 5px;">
-                            <div><img src="../../../resources/img/img198_12p.png" alt=""></div>
-                        </div>
-                        <div class="text mt10">
-                            <p class="title1 mb10">나의 사진첩</p>
-                            <button @click="selectedTab = 'tab4'; goToPage('PhotoBook')" type="button" title="글쓰기"
-                                class="new-btn">
-                                바로가기
-                            </button>
 
-                        </div>
-                    </div>
-
+                <div style="position: absolute; left: 102rem; top: 10rem; "
+                    @click="selectedTab = 'tab4'; goToPage('PhotoBook')"><img
+                        src="../../../resources/img/new_img/mypage/photoBtn.png" alt=""></div>
+                <div class="title-box flex justify-between mb20" style=" position: absolute; left: 117em; top: 6em; ">
+                    <p class="title" style="color: white;">사진첩</p>
                 </div>
             </div>
         </div>
         <div class="title-box flex justify-between mb20">
-            <p class="title">{{ studentInfo.studentName }} 학생 랭킹</p>
+            <p class="title" style="color: white;">{{ studentInfo.studentName }} 학생 랭킹</p>
         </div>
         <div class=" mb30">
-            <div class=" flex " style="gap: 50px;">
-                <div class="textbook book-red">
-                    <div class="text ">
+            <div class=" flex " style="gap: 95px;">
+                <div class="textbook book-red" style="background-color: white; width: 19%; border: #f9c4eb solid 6px;">
+                    <div class="text" style="background-color: #f9c4eb;">
                         <p class="title1" style="color: #fff;">포토북 랭킹</p>
                     </div>
                     <div class="box " style="gap: 10px;">
                         <div><img src="../../../resources/img/img196_12p.png" alt=""></div>
-                        <P class="title2 mt10">현재 {{ stdCount }}명 중 <em class="red">{{ photo_rank }}등</em>입니다.</P>
+                        <P class="subtitle mt10" style="font-size: 19px;">현재 {{ stdCount }}명 중 <em class="red">{{
+                            photo_rank }}등</em>입니다.</P>
                     </div>
                 </div>
-                <div class="textbook ">
-                    <div class="text ">
+                <div class="textbook " style="background-color: white; width: 19%;  border: #b5dbcc solid 6px;">
+                    <div class="text" style="background-color: #b5dbcc;">
                         <p class="title1" style="color: #fff;">진도율 랭킹</p>
                     </div>
                     <div class="box " style="gap: 10px;">
                         <div><img src="../../../resources/img/img196_12p.png" alt=""></div>
-                        <P class="title2 mt10">현재 {{ stdCount }}명 중 <em class="yellow">{{ problem_rank }}등</em>입니다.</P>
+                        <P class="subtitle mt10" style="font-size: 19px;">현재 {{ stdCount }}명 중 <em class="yellow">{{
+                            problem_rank }}등</em>입니다.</P>
                     </div>
                 </div>
-                <div class="textbook book-blue">
-                    <div class="text ">
+                <div class="textbook book-blue "
+                    style="background-color: white; width: 19%;  border: #bcd3eb solid 6px;">
+                    <div class="text" style="background-color: #bcd3eb;">
                         <p class="title1" style="color: #fff;">점수 랭킹</p>
                     </div>
                     <div class="box " style="gap: 10px;">
                         <div><img src="../../../resources/img/img196_12p.png" alt=""></div>
-                        <P class="title2 mt10">현재 {{ stdCount }}명 중 <em class="blue">{{ score_rank }}등</em>입니다.</P>
+                        <P class="subtitle mt10" style="font-size: 19px;">현재 {{ stdCount }}명 중 <em class="blue">{{
+                            score_rank }}등</em>입니다.</P>
                     </div>
                 </div>
-                <div class="textbook book-navy">
-                    <div class="text ">
+                <div class="textbook book-navy "
+                    style="background-color: white; width: 19%;  border: #f9c894 solid 6px;">
+                    <div class="text" style="background-color: #f9c894;">
                         <p class="title1" style="color: #fff;">학습시간 랭킹</p>
                     </div>
                     <div class="box " style="gap: 10px;">
                         <div><img src="../../../resources/img/img196_12p.png" alt=""></div>
-                        <P class="title2 mt10">현재 {{ stdCount }}명 중 <em class="navy">{{ time_rank }}등</em>입니다.</P>
+                        <P class="subtitle mt10" style="font-size: 19px;">현재 {{ stdCount }}명 중 <em class="navy">{{
+                            time_rank }}등</em>입니다.</P>
                     </div>
                 </div>
             </div>
@@ -159,11 +153,11 @@
                 }
             })
                 .then((response) => {
-                console.log(response.data);
-                this.studentInfo = response.data;
+                    console.log(response.data);
+                    this.studentInfo = response.data;
                 })
                 .catch((error) => {
-                console.error("학생 정보 가져오기 실패:", error);
+                    console.error("학생 정보 가져오기 실패:", error);
                 });
         },
         photoRankByLikeData: function () {
@@ -202,7 +196,7 @@
             })
                 .then(function (response) {
                     console.log("User Rank - response : ", response.data);
-                    vm.score_rank = response.data; 
+                    vm.score_rank = response.data;
                 })
                 .catch(function (error) {
                     console.log("User Rank - error : ", error);
@@ -223,7 +217,7 @@
             })
                 .then(function (response) {
                     console.log("User Rank - response : ", response.data);
-                    vm.time_rank = response.data; 
+                    vm.time_rank = response.data;
                 })
                 .catch(function (error) {
                     console.log("User Rank - error : ", error);
Add a comment
List