diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 53fc0df..e369f09 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -164,6 +164,7 @@ loadData() border: 1px solid #6366f1; border-radius: 8px; transition: all 0.2s; + white-space: nowrap; &:hover { background: #6366f1; color: white; @@ -251,4 +252,28 @@ loadData() color: #aaa; font-size: 13px; } + +@media (max-width: 767px) { + .header { + .header-content { + padding: 16px; + flex-wrap: wrap; + gap: 12px; + } + .brand { + .logo { font-size: 22px; } + .desc { display: none; } + } + .search-box { width: 100%; order: 10; } + .admin-link { + padding: 6px 12px; + font-size: 13px; + } + } + .main-content { padding: 16px; } + .links-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } + .link-card { padding: 12px; } + .category-header .name { font-size: 16px; } + .category-section { margin-bottom: 24px; } +} diff --git a/frontend/src/views/admin/AdminLayout.vue b/frontend/src/views/admin/AdminLayout.vue index f976e61..afadbde 100644 --- a/frontend/src/views/admin/AdminLayout.vue +++ b/frontend/src/views/admin/AdminLayout.vue @@ -1,7 +1,13 @@ +.header-left { + display: flex; + align-items: center; + gap: 12px; +} +.menu-btn { + width: 36px; + height: 36px; + background: none; + border: 1px solid #ddd; + border-radius: 8px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; +} +.hamburger { + display: block; + width: 18px; + height: 2px; + background: #555; + position: relative; +} +.hamburger::before, +.hamburger::after { + content: ''; + display: block; + width: 18px; + height: 2px; + background: #555; + position: absolute; + left: 0; +} +.hamburger::before { top: -6px; } +.hamburger::after { top: 6px; } +.user-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } +.nickname { color: #555; font-weight: 500; white-space: nowrap; } +.el-main { background: #f5f7fa; padding: 24px; overflow-y: auto; flex: 1; } + +@media (max-width: 767px) { + .sidebar { + position: fixed; + top: 0; + left: 0; + height: 100vh; + z-index: 100; + width: 200px !important; + transform: translateX(-100%); + transition: transform 0.3s; + } + .sidebar:not([style*="width: 0"]) { + transform: translateX(0); + } + .sidebar[style*="width: 0"] { + transform: translateX(-100%); + } + .sidebar-overlay { + display: block; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: rgba(0,0,0,0.4); + z-index: 99; + } + .admin-header { flex-wrap: wrap; gap: 8px; } + .el-main { padding: 16px; } +} + \ No newline at end of file diff --git a/frontend/src/views/admin/Categories.vue b/frontend/src/views/admin/Categories.vue index d457246..50ebbd6 100644 --- a/frontend/src/views/admin/Categories.vue +++ b/frontend/src/views/admin/Categories.vue @@ -3,25 +3,27 @@ - - - - - - - - +
+ + + + + + + + +
- + @@ -42,7 +44,7 @@