Move Beijing clock onto nav row with larger type.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-06 15:13:09 +08:00
parent 0370e91d2f
commit 3d1f9f3d50
2 changed files with 30 additions and 49 deletions
+18 -16
View File
@@ -57,7 +57,6 @@ function Shell({ children }: { children: ReactNode }) {
<div className="header-title"></div>
<div className="header-subtitle"> </div>
</div>
<BeijingClock />
</div>
<div className="header-bar">
<nav className="nav">
@@ -71,21 +70,24 @@ function Shell({ children }: { children: ReactNode }) {
</NavLink>
</nav>
{!lanClient ? (
<div className="header-right">
<span className="meta">{user}</span>
<button
type="button"
className="btn ghost"
onClick={() => {
clearSession();
window.location.href = "/login";
}}
>
退
</button>
</div>
) : null}
<div className="header-right">
<BeijingClock />
{!lanClient ? (
<>
<span className="meta">{user}</span>
<button
type="button"
className="btn ghost"
onClick={() => {
clearSession();
window.location.href = "/login";
}}
>
退
</button>
</>
) : null}
</div>
</div>
</header>
<main className="main">{children}</main>
+12 -33
View File
@@ -58,12 +58,10 @@ body {
}
.header-top {
position: relative;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 4px 0 2px;
min-height: 3.2rem;
}
.header-title-wrap {
@@ -102,45 +100,26 @@ body {
}
.header-beijing-time {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
z-index: 1;
pointer-events: none;
flex-direction: row;
align-items: baseline;
gap: 8px;
flex-shrink: 0;
}
.header-beijing-label {
font-size: 0.72rem;
letter-spacing: 0.12em;
color: var(--muted);
}
.header-beijing-value {
font-size: 0.95rem;
color: var(--accent);
text-shadow: var(--glow);
letter-spacing: 0.1em;
color: var(--muted);
white-space: nowrap;
}
@media (max-width: 1100px) {
.header-top {
flex-direction: column;
align-items: center;
gap: 10px;
min-height: 0;
}
.header-beijing-time {
position: static;
transform: none;
align-items: center;
pointer-events: auto;
}
.header-beijing-value {
font-size: 1.15rem;
font-weight: 650;
color: var(--accent);
text-shadow: var(--glow);
white-space: nowrap;
}
.header-bar {