jichoi / lms_front star
[jichoi] 08-06
240806 최정임
@dc9bbd5d5840419d10536023ceb83065246fca84
client/resources/css/style.css
--- client/resources/css/style.css
+++ client/resources/css/style.css
@@ -309,6 +309,38 @@
 .mypage em.red {
   color: #DB2B39;
 }
+
+.myphoto{
+  
+  background-image: url('../img/img207_15s.png');
+  width: 1011px;
+  height: 558px;
+  padding: 30px;
+  margin: 0 auto;
+}
+.tab-btn{position: relative; color: #568BFA;}
+.tab-btn p.custom-style{color: #FFF;}
+
+.tab-btn p {
+  position: absolute;
+  top: 46%;
+  right: 7%;
+  transform: translate(-50%, -50%);
+  font-family: 'ONEMobilePOPOTF';
+  font-size: 36px;
+  
+}
+.myphoto .btnGroup{
+  width: max-content; 
+    position: absolute;
+    right: 45px;
+    z-index: -1;
+}
+.tab-box{
+  margin: 80px 60px 20px 60px;
+}
+
+
 /* 대시보드 */
 .main {
   max-height: 600px;
 
client/resources/img/btn47_15s_click.png (Binary) (added)
+++ client/resources/img/btn47_15s_click.png
Binary file is not shown
 
client/resources/img/btn47_15s_normal.png (Binary) (added)
+++ client/resources/img/btn47_15s_normal.png
Binary file is not shown
 
client/resources/img/btn48_15s_click.png (Binary) (added)
+++ client/resources/img/btn48_15s_click.png
Binary file is not shown
 
client/resources/img/btn48_15s_normal.png (Binary) (added)
+++ client/resources/img/btn48_15s_normal.png
Binary file is not shown
 
client/resources/img/btn49_15s_click.png (Binary) (added)
+++ client/resources/img/btn49_15s_click.png
Binary file is not shown
 
client/resources/img/btn49_15s_normal.png (Binary) (added)
+++ client/resources/img/btn49_15s_normal.png
Binary file is not shown
 
client/resources/img/btn50_19s_click.png (Binary) (added)
+++ client/resources/img/btn50_19s_click.png
Binary file is not shown
 
client/resources/img/btn50_19s_normal.png (Binary) (added)
+++ client/resources/img/btn50_19s_normal.png
Binary file is not shown
 
client/resources/img/img201_15p.png (Binary) (added)
+++ client/resources/img/img201_15p.png
Binary file is not shown
 
client/resources/img/img202_15s.png (Binary) (added)
+++ client/resources/img/img202_15s.png
Binary file is not shown
 
client/resources/img/img204_15s.png (Binary) (added)
+++ client/resources/img/img204_15s.png
Binary file is not shown
 
client/resources/img/img205_15s.png (Binary) (added)
+++ client/resources/img/img205_15s.png
Binary file is not shown
 
client/resources/img/img206_15s.png (Binary) (added)
+++ client/resources/img/img206_15s.png
Binary file is not shown
 
client/resources/img/img207_15s.png (Binary) (added)
+++ client/resources/img/img207_15s.png
Binary file is not shown
 
client/resources/img/img208_15s.png (Binary) (added)
+++ client/resources/img/img208_15s.png
Binary file is not shown
 
client/resources/img/img209_15s.png (Binary) (added)
+++ client/resources/img/img209_15s.png
Binary file is not shown
 
client/resources/img/img210_15s.png (Binary) (added)
+++ client/resources/img/img210_15s.png
Binary file is not shown
 
client/resources/img/img211_15s.png (Binary) (added)
+++ client/resources/img/img211_15s.png
Binary file is not shown
 
client/resources/img/img212_15s.png (Binary) (added)
+++ client/resources/img/img212_15s.png
Binary file is not shown
 
client/resources/img/img213_15s.png (Binary) (added)
+++ client/resources/img/img213_15s.png
Binary file is not shown
 
client/resources/img/img214_19s.png (Binary) (added)
+++ client/resources/img/img214_19s.png
Binary file is not shown
 
client/resources/img/img215_20s.png (Binary) (added)
+++ client/resources/img/img215_20s.png
Binary file is not shown
 
client/resources/img/img215_22s.png (Binary) (added)
+++ client/resources/img/img215_22s.png
Binary file is not shown
 
client/resources/img/img216_22s.png (Binary) (added)
+++ client/resources/img/img216_22s.png
Binary file is not shown
 
client/resources/img/img217_22s.png (Binary) (added)
+++ client/resources/img/img217_22s.png
Binary file is not shown
 
client/resources/img/img218_22s.png (Binary) (added)
+++ client/resources/img/img218_22s.png
Binary file is not shown
 
client/resources/img/img219_22s.png (Binary) (added)
+++ client/resources/img/img219_22s.png
Binary file is not shown
 
client/resources/img/img220_111t.png (Binary) (added)
+++ client/resources/img/img220_111t.png
Binary file is not shown
 
client/resources/img/img221_22s.png (Binary) (added)
+++ client/resources/img/img221_22s.png
Binary file is not shown
 
client/resources/img/img221_25s.png (Binary) (added)
+++ client/resources/img/img221_25s.png
Binary file is not shown
client/views/pages/AppRouter.js
--- client/views/pages/AppRouter.js
+++ client/views/pages/AppRouter.js
@@ -5,6 +5,7 @@
 import Join from "../Join.vue"
 import MyPage from './main/MyPage.vue';
 import MyPlan from './main/MyPlan.vue';
+import PhotoBook from './main/PhotoBook.vue';
 import Dashboard from './main/Dashboard.vue';
 import Main from "./main/Main.vue";
 import Chapter1 from "./main/Chapter/Chapter1.vue";
@@ -90,6 +91,7 @@
             { path: '/Dashboard.page', name: 'Dashboard', component: Dashboard },
             { path: '/MyPage.page', name: 'MyPage', component: MyPage },
             { path: '/MyPlan.page', name: 'MyPlan', component: MyPlan },
+            { path: '/PhotoBook.page', name: 'PhotoBook', component: PhotoBook },
         ]
     },
     { path: '/Chapter1.page', name: 'Chapter1', component: Chapter1 },
client/views/pages/main/MyPage.vue
--- client/views/pages/main/MyPage.vue
+++ client/views/pages/main/MyPage.vue
@@ -54,14 +54,15 @@
                 </div>
                 <div class="photobook">
                     <div class="flex justify-between">
-                            <div class="box" style="gap: 5px;" @click="goToPage('ClassDetail')">
+                            <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'" type="button" title="글쓰기" class="new-btn">
-                  바로가기
-               </button>
+                                <button @click="selectedTab = 'tab4'; goToPage('PhotoBook')" type="button" title="글쓰기" class="new-btn">
+   바로가기
+</button>
+
                             </div>
                         </div>
                    
 
client/views/pages/main/PhotoBook.vue (added)
+++ client/views/pages/main/PhotoBook.vue
@@ -0,0 +1,89 @@
+<template>
+    <div class="title-box flex justify-between mb20">
+        <p class="title">내 사진첩</p>
+    </div>
+    <div class="myphoto mb30">
+        <div class="title-box flex justify-end mb40">
+            <select name="" id="">
+                <option value="">A반</option>
+            </select>
+        </div>
+        <div class="btnGroup">
+            <button @click="selectedTab = 'tab1'" type="button" title="글쓰기" class="tab-btn">
+                <img v-if="selectedTab !== 'tab1'" src="../../../resources/img/btn49_15s_normal.png" alt="">
+                <img v-else src="../../../resources/img/btn49_15s_click.png" alt="">
+                <p :class="{ 'custom-style': selectedTab === 'tab1' }">1</p>
+            </button>
+        </div>
+        <div v-if="selectedTab === 'tab1'" class="tab-box">
+            <div class="class photo">
+                <div class="box gd-col2" style="gap: 10px;" @click="goToPage('ClassDetail')">
+                    <div><img src="../../../resources/img/img210_15s.png" alt=""></div>
+                </div>
+                <div class="text flex justify-between mt20">
+                    <p class="title1">A반</p>
+                    <span class="member">20명</span>
+                </div>
+               
+            </div>
+
+        </div>
+    </div>
+</template>
+
+<script>
+import SvgIcon from '@jamescoyle/vue-icon';
+import { mdiMagnify, } from '@mdi/js';
+import { mdilArrowRight } from '@mdi/light-js';
+import ProgressBar from '../../component/ProgressBar.vue';
+
+
+export default {
+    data() {
+        return {
+            selectedTab: 'tab1',
+            mdiMagnify: mdiMagnify,
+            mdilArrowRight: mdilArrowRight,
+            timer: "00:00",
+            progress: 20
+        }
+    },
+    methods: {
+        goToPage(page) {
+            this.$router.push({ name: page });
+        },
+        increaseProgress() {
+            if (this.progress < 100) {
+                this.progress += 10;
+            }
+        },
+        showConfirm(type) {
+            let message = '';
+            if (type === 'cancel') {
+                message = '삭제하시겠습니까?';
+            } else if (type === 'reset') {
+                message = '초기화하시겠습니까?';
+            } else if (type === 'save') {
+                message = '등록하시겠습니까?';
+            }
+
+            if (confirm(message)) {
+                this.goBack();
+            }
+        },
+    },
+    watch: {
+
+    },
+    computed: {
+
+    },
+    components: {
+        SvgIcon,
+        ProgressBar
+    },
+    mounted() {
+        console.log('Main2 mounted');
+    }
+}
+</script>(파일 끝에 줄바꿈 문자 없음)
Add a comment
List