diff --git a/client/src/views/GameInterface/components/GameHeader.css b/client/src/views/GameInterface/components/GameHeader.css index 3fc8d5e..a16cb76 100644 --- a/client/src/views/GameInterface/components/GameHeader.css +++ b/client/src/views/GameInterface/components/GameHeader.css @@ -1,76 +1,110 @@ .game-header { - height: 60px; - background: var(--bg-secondary); - border-bottom: 1px solid var(--border-color); - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 1rem; - backdrop-filter: blur(10px); + height: 60px; + background: var(--bg-secondary); + border-bottom: 1px solid var(--border-color); + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 1rem; + backdrop-filter: blur(10px); } .header-left { - display: flex; - align-items: center; - gap: 1rem; + display: flex; + align-items: center; + gap: 1rem; } .logo { - font-family: 'Orbitron', sans-serif; - font-size: 1.5rem; - font-weight: 900; - color: var(--primary-color); - text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); + font-family: "Orbitron", sans-serif; + font-size: 1.5rem; + font-weight: 900; + color: var(--primary-color); + text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); } .player-info { - display: flex; - flex-direction: column; + display: flex; + flex-direction: column; } .player-name { - font-weight: 700; - color: var(--text-primary); + font-weight: 700; + color: var(--text-primary); } .player-level { - font-size: 0.8rem; - color: var(--primary-color); + font-size: 0.8rem; + color: var(--primary-color); } .header-center { - flex: 1; - display: flex; - justify-content: center; + flex: 1; + display: flex; + justify-content: center; } .resources { - display: flex; - gap: 1.5rem; + display: flex; + gap: 1.5rem; } .resource { - display: flex; - align-items: center; - gap: 0.5rem; - padding: 0.5rem 1rem; - background: var(--bg-tertiary); - border-radius: 20px; - border: 1px solid var(--border-color); - transition: all 0.3s ease; + display: flex; + align-items: center; + gap: 0.5rem; + padding: 0.5rem 1rem; + background: var(--bg-tertiary); + border-radius: 20px; + border: 1px solid var(--border-color); + transition: all 0.3s ease; } .resource:hover { - border-color: var(--primary-color); - box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); + border-color: var(--primary-color); + box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); } .resource i { - color: var(--primary-color); + color: var(--primary-color); } .header-right { - display: flex; - gap: 0.5rem; + display: flex; + gap: 0.5rem; } +.header-right { + display: flex; + gap: 0.75rem; + align-items: center; +} + +.header-icon-btn { + background: rgba(255, 255, 255, 0.05); + border: 1px solid var(--border-color); + color: var(--text-secondary); + width: 40px; + height: 40px; + border-radius: 4px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s ease; + font-size: 1.1rem; +} + +.header-icon-btn:hover { + background: rgba(0, 212, 255, 0.1); + border-color: var(--primary-color); + color: var(--primary-color); + box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); +} + +.header-icon-btn.exit-btn:hover { + background: rgba(255, 87, 34, 0.1); + border-color: #ff5722; + color: #ff5722; + box-shadow: 0 0 15px rgba(255, 87, 34, 0.2); +} diff --git a/client/src/views/GameInterface/components/GameHeader.jsx b/client/src/views/GameInterface/components/GameHeader.jsx index a4dcb9e..4a2b141 100644 --- a/client/src/views/GameInterface/components/GameHeader.jsx +++ b/client/src/views/GameInterface/components/GameHeader.jsx @@ -25,7 +25,6 @@ const GameHeader = ({ onReturn }) => { Lv. 1 -
@@ -34,17 +33,18 @@ const GameHeader = ({ onReturn }) => {
-
-