Przeglądaj źródła

+ header 메뉴 디자인 수정

송용우 4 miesięcy temu
rodzic
commit
9b3078c106
2 zmienionych plików z 166 dodań i 1 usunięć
  1. 3 1
      assets/scss/mode-w-m.scss
  2. 163 0
      components/common/header.vue

+ 3 - 1
assets/scss/mode-w-m.scss

@@ -90,6 +90,7 @@
         font-size: 0.8rem;
         background-color: #9475EC;
         pointer-events: none;
+        margin:0 auto;
         &.inf{
           background-color: #F74F78;
         }
@@ -126,6 +127,7 @@
 
         >li {
           position: relative;
+          width:100%;
           >button {
             /* width: calc(1vw * (180 / 19.2)); */
             /* height:calc(1vh * (90 / 10.8)); */
@@ -145,7 +147,7 @@
               &::before{
                 content: '';
                 position: absolute;
-                left: -0px;
+                left: 10px;
                 top: calc(50% - 0.75rem);
                 background-size: 100%;
                 background-position: center;

+ 163 - 0
components/common/header.vue

@@ -252,3 +252,166 @@
     fnSetMenu();
   });
 </script>
+
+<style scoped>
+  .new--header {
+    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
+    border-radius: 0 0 12px 12px;
+    overflow: hidden;
+  }
+
+  .pro--wrap {
+    display: flex;
+    align-items: center;
+    padding: 16px 24px;
+    background: rgba(255, 255, 255, 0.95);
+    backdrop-filter: blur(10px);
+    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
+  }
+
+  .pro--img {
+    width: 40px;
+    height: 40px;
+    border-radius: 50%;
+    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-right: 12px;
+    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
+  }
+
+  /* .pro--img::before {
+    content: "👤";
+    color: white;
+    font-size: 18px;
+  } */
+
+  .pro--id {
+    position: relative;
+    color: #374151;
+    font-weight: 500;
+    font-size: 16px;
+    cursor: pointer;
+    padding: 8px 12px;
+    border-radius: 8px;
+    transition: all 0.2s ease;
+  }
+
+  .pro--id:hover {
+    background: rgba(102, 126, 234, 0.1);
+    color: #667eea;
+  }
+
+  .ico {
+    margin-left: 8px;
+    transition: transform 0.2s ease;
+    color: #9ca3af;
+  }
+
+  .ico.on {
+    transform: rotate(90deg);
+    color: #667eea;
+  }
+
+  .id--box {
+    position: absolute;
+    top: 100%;
+    left: 0;
+    margin-top: 8px;
+    background: white;
+    border: 1px solid #e5e7eb;
+    border-radius: 12px;
+    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
+    z-index: 1000;
+    overflow: hidden;
+    min-width: 160px;
+  }
+
+  .btn-profile,
+  .btn-logout {
+    width: 100%;
+    padding: 16px 20px;
+    border: none;
+    background: none;
+    text-align: left;
+    cursor: pointer;
+    transition: all 0.2s ease;
+    font-size: 14px;
+    color: #374151;
+  }
+
+  .btn-profile:hover {
+    background: #f3f4f6;
+    color: #667eea;
+  }
+
+  .btn-logout:hover {
+    background: #fef2f2;
+    color: #dc2626;
+  }
+
+  .pro--info {
+    margin-left: auto;
+    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+    color: white;
+    padding: 6px 16px;
+    border-radius: 20px;
+    font-size: 14px;
+    font-weight: 500;
+    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
+  }
+
+  .gnb {
+    background: rgba(255, 255, 255, 0.98);
+    backdrop-filter: blur(10px);
+  }
+
+  .depth1 {
+    display: flex;
+    width: 100%;
+    list-style: none;
+    margin: 0;
+    padding: 0;
+    align-items: center;
+  }
+
+  .depth1 button {
+    width: 100%;
+    padding: 16px 24px;
+    border: none;
+    background: none;
+    font-size: 15px;
+    font-weight: 500;
+    color: #6b7280;
+    cursor: pointer;
+    transition: all 0.3s ease;
+    position: relative;
+    border-bottom: 3px solid transparent;
+    text-align: left;
+  }
+
+  .depth1 button:hover {
+    color: #667eea;
+    transform: translateY(-1px);
+  }
+
+  .depth1 button.actv {
+    color: #667eea;
+    border-bottom-color: #667eea;
+    font-weight: 600;
+  }
+
+  .depth1 button.actv::before {
+    content: "";
+    position: absolute;
+    bottom: -3px;
+    left: 50%;
+    transform: translateX(-50%);
+    width: 60%;
+    height: 3px;
+    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+    border-radius: 2px;
+  }
+</style>