최정임 최정임 05-02
250502 최정임 메인 select css수정
@cdda3f078c5928041b8a883b315faa23d097f54d
client/resources/css/user/main.css
--- client/resources/css/user/main.css
+++ client/resources/css/user/main.css
@@ -44,14 +44,16 @@
             }
         }
     }
+   
+    /* .new-pic, .new-video, .new-update {flex-direction: column; gap: 10px;} */
+}
+@media screen and (max-width: 1500px) {
     .new-update {
         & .info {
             p {
                 width: min-content !important;
             }}}
-    /* .new-pic, .new-video, .new-update {flex-direction: column; gap: 10px;} */
 }
-
 .all-menu {
     position: absolute;
     top: 0;
@@ -206,23 +208,41 @@
             font-weight: bold;
         }
     }
-
-    select {
-        border: 0;
+    /* 셀렉트박스 */
+    .custom-select {
+        position: relative;
+        width: 145px;
         font-size: 20px;
         font-family: "Pretendard-L";
         color: #555;
-        appearance: none;
-        background-image: url(../../images/icon/select.png);
-        background-repeat: no-repeat;
-        background-position: right 0px center;
+        cursor: pointer;
+      }
+      
+      .selected-option {
+        padding: 10px 15px;
+        background: #fff url(../../images/icon/select.png) no-repeat right center;
         background-size: 17px;
-
-        option {
-
-            font-family: "Pretendard-L";
-        }
-    }
+      }
+      
+      .select-options {
+        position: absolute;
+        width: 100%;
+        border: 1px solid #ccc;
+        background: #fff;
+        max-height: 165px;
+        overflow-y: auto;
+        z-index: 10;
+        top: 42px;
+      }
+      
+      .select-options li {
+        padding: 10px 15px;
+        cursor: pointer;
+      }
+      
+      .select-options li:hover {
+        background-color: #f0f0f0;
+      }
 }
 
 .search-wrap {
@@ -594,7 +614,7 @@
 
 @media screen and (max-width: 1220px) {
     .search-wrap {
-        bottom: 80px !important;
+        bottom: 20% !important;
         .search-area {
             width: auto;
         }
client/resources/css/user/sub.css
--- client/resources/css/user/sub.css
+++ client/resources/css/user/sub.css
@@ -671,8 +671,12 @@
         textarea {
             min-height: 425px;
             width: 100%;
+            padding: 15px;
         }
-
+        textarea:focus {
+            outline: none;
+            box-shadow: none;
+          }
         .category-add {
             width: 72px;
             height: 29px;
@@ -1398,8 +1402,6 @@
         height: 20px;
         background: #fff;
         border-radius: 50%;
-        transition: left 0.3s ease, transform 0.3s ease;
-        /* Smooth transition for the toggle ball */
     }
 
     /* When the input is checked */
client/views/pages/main/Main.vue
--- client/views/pages/main/Main.vue
+++ client/views/pages/main/Main.vue
@@ -28,13 +28,14 @@
     </swiper> -->
     <div class="search-wrap">
       <div class="search-area">
-        <select name="" id="" v-model="searchRecord">
-          <option value="all" selected>전체</option>
-          <option value="pic">사진</option>
-          <option value="video">영상</option>
-          <option value="media">미디어 영상</option>
-          <option value="bodo">보도자료</option>
-        </select>
+        <div class="custom-select" @click="toggleDropdown">
+  <div class="selected-option">{{ getSelectedText }}</div>
+  <ul v-if="isDropdownOpen" class="select-options">
+    <li v-for="option in options" :key="option.value" @click.stop="selectOption(option)">
+      {{ option.text }}
+    </li>
+  </ul>
+</div>
         <div class="line"></div>
         <div style="width: 60%;"><input type="text" placeholder="검색어를 입력하세요" v-model="searchText"
             @keyup.enter="fnMoveTo('TotalSearch')"></div>
@@ -258,6 +259,14 @@
       mediaContents: [], // 신규 미디어 영상
       bodoContents: [], // 신규 보도자료
       searchRecord: 'all', // 통합검색 Selectbox 내용
+      isDropdownOpen: false,
+    options: [
+      { value: 'all', text: '전체' },
+      { value: 'pic', text: '사진' },
+      { value: 'video', text: '영상' },
+      { value: 'media', text: '미디어 영상' },
+      { value: 'bodo', text: '보도자료' },
+    ],
       searchText: null, // 통합검색 Input 내용
       icons: [
         {
@@ -301,7 +310,20 @@
   created() {
     this.fnFindAllSttuses();
   },
+  computed: {
+  getSelectedText() {
+    const selected = this.options.find(opt => opt.value === this.searchRecord);
+    return selected ? selected.text : '';
+  }
+},
   methods: {
+    toggleDropdown() {
+    this.isDropdownOpen = !this.isDropdownOpen;
+  },
+  selectOption(option) {
+    this.searchRecord = option.value;
+    this.isDropdownOpen = false;
+  },
     selectTab(index) {
       this.selectedTab = index; // Update the selected tab index
     },
Add a comment
List