update header

This commit is contained in:
MaksSlyzar 2026-03-29 11:13:35 +03:00
parent 82836c2ef3
commit 7a9e22429b
2 changed files with 79 additions and 45 deletions

View File

@ -1,76 +1,110 @@
.game-header { .game-header {
height: 60px; height: 60px;
background: var(--bg-secondary); background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 1rem; padding: 0 1rem;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
} }
.header-left { .header-left {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
} }
.logo { .logo {
font-family: 'Orbitron', sans-serif; font-family: "Orbitron", sans-serif;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 900; font-weight: 900;
color: var(--primary-color); color: var(--primary-color);
text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
} }
.player-info { .player-info {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.player-name { .player-name {
font-weight: 700; font-weight: 700;
color: var(--text-primary); color: var(--text-primary);
} }
.player-level { .player-level {
font-size: 0.8rem; font-size: 0.8rem;
color: var(--primary-color); color: var(--primary-color);
} }
.header-center { .header-center {
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.resources { .resources {
display: flex; display: flex;
gap: 1.5rem; gap: 1.5rem;
} }
.resource { .resource {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
background: var(--bg-tertiary); background: var(--bg-tertiary);
border-radius: 20px; border-radius: 20px;
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
transition: all 0.3s ease; transition: all 0.3s ease;
} }
.resource:hover { .resource:hover {
border-color: var(--primary-color); border-color: var(--primary-color);
box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
} }
.resource i { .resource i {
color: var(--primary-color); color: var(--primary-color);
} }
.header-right { .header-right {
display: flex; display: flex;
gap: 0.5rem; 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);
}

View File

@ -25,7 +25,6 @@ const GameHeader = ({ onReturn }) => {
<span className="player-level">Lv. 1</span> <span className="player-level">Lv. 1</span>
</div> </div>
</div> </div>
<div className="header-center"> <div className="header-center">
<div className="resources"> <div className="resources">
<div className="resource"> <div className="resource">
@ -34,17 +33,18 @@ const GameHeader = ({ onReturn }) => {
</div> </div>
</div> </div>
</div> </div>
<div className="header-right"> <div className="header-right">
<button <button
className="btn btn-secondary" className="header-icon-btn"
onClick={() => setIsSettingsOpen(true)} onClick={() => setIsSettingsOpen(true)}
style={{ marginRight: "10px" }}
> >
<i className="fas fa-cog"></i> <i className="fas fa-cog"></i>
</button> </button>
<button className="btn btn-warning" onClick={handleHomeClick}> <button
className="header-icon-btn exit-btn"
onClick={handleHomeClick}
>
<i className="fas fa-home"></i> <i className="fas fa-home"></i>
</button> </button>
</div> </div>