최정임 최정임 05-29
250529 최정임 css 수정
@ac7b397f6dc4437d8ecc9d01ee66e22e4e8d8a14
client/resources/css/user/sub.css
--- client/resources/css/user/sub.css
+++ client/resources/css/user/sub.css
@@ -463,28 +463,55 @@
     top: 1rem;
     right: 1rem;
     z-index: 5;
-    padding: 5px 10px;
+    padding: 8px 15px 8px 45px;
     border-width: 1px;
-    border-style: solid;
-    border-radius: 3px;
+    border-radius: 100px;
     background-color: #FFFFFF;
   }
-
+  .float-div::before{
+    display: block;
+    content: '';
+    position: absolute;
+    left: 17px;
+    top: 8px;
+    width: 21px;
+    height: 16px;
+  }
   .float-txt {
     color: #fff;
     font-weight: 700;
-    font-size: 15x;
+    font-size: 15px;
     font-family: "Pretendard-SB" !important;
   }
 
-  .result-list-wrap:nth-child(odd) .float-div {
-    background-color: #a5067b;
-    border: 1px solid #a5067b;
+  .type-photo {
+    
+    background-color: #A91181;
+    &::before{
+      background-image: url(../../images/icon/pic_icon.png);
+     
+    }
   }
-
-  .result-list-wrap:nth-child(even) .float-div {
-    background-color: #007ac3;
-    border: 1px solid #007ac3;
+  .type-video {
+    background-color: #D87F17;
+    &::before{
+      background-image: url(../../images/icon/video_icon.png);
+      height: 18px;
+    }
+  }
+  .type-nesdta {
+    background-color:#555555;
+    &::before{
+      background-image: url(../../images/icon/bodo_icon.png);
+      height: 18px;
+    }
+  }
+  .type-media {
+    background-color: #007AC3;
+    &::before{
+      background-image: url(../../images/icon/media_icon.png);
+      
+    }
   }
 }
 
client/views/component/PrdctnSelectComponent.vue
--- client/views/component/PrdctnSelectComponent.vue
+++ client/views/component/PrdctnSelectComponent.vue
@@ -1,5 +1,5 @@
 <template>
-  <div class="date-input-group">
+  <div class="date-input-group ">
     <select id="prdctnYear" v-model="localDateForm.year" class="year-select" @change="emitChanges">
       <option v-for="year in yearOptions" :key="year" :value="year">{{ year }}년</option>
     </select>
@@ -163,4 +163,7 @@
     }
   }
 };
-</script>
(파일 끝에 줄바꿈 문자 없음)
+</script>
+<style scoped>
+ 
+</style>
(파일 끝에 줄바꿈 문자 없음)
client/views/component/listLayout/CardStyleComponent.vue
--- client/views/component/listLayout/CardStyleComponent.vue
+++ client/views/component/listLayout/CardStyleComponent.vue
@@ -3,7 +3,7 @@
     <li v-for="(item, idx) in list" :key="idx" class="mb-30" @click="fnMoveTo(item)">
       <div class="result-box">
         <div class="main-img">
-          <div v-if="!$isEmpty(typeText)" class="float-div">
+          <div v-if="!$isEmpty(typeText)" class="float-div" :class="typeClass">
             <p class="float-txt">{{ typeText }}</p>
           </div>
           <img v-if="name === 'M'" :src="getYouTubeThumbnail(item.link)" alt="영상 썸네일">
@@ -65,6 +65,22 @@
           return 'NewsReleaseDetail';
       }
     },
+    typeClass() {
+    // CSS 클래스 매핑
+    console.log(this.typeText)
+    switch (this.typeText) {
+      case '사진':
+        return 'type-photo';
+      case '영상':
+        return 'type-video';
+      case '스크랩 자료':
+        return 'type-nesdta';
+      case '미디어 영상':
+        return 'type-media';
+      default:
+        return '';
+    }
+  },
   },
 
   methods: {
Add a comment
List