Use project logo in header

This commit is contained in:
2569718930@qq.com
2026-04-23 05:43:48 +08:00
parent 7575891a00
commit f4c189bdcf
2 changed files with 25 additions and 33 deletions
@@ -338,43 +338,26 @@
}
.root :global(.brand-mark) {
width: 28px;
height: 28px;
border-radius: 9px;
border: 1px solid rgba(34, 211, 238, 0.28);
background:
radial-gradient(
circle at 30% 30%,
rgba(34, 211, 238, 0.24),
transparent 52%
),
linear-gradient(180deg, rgba(11, 22, 40, 0.96), rgba(6, 13, 24, 0.96));
width: 30px;
height: 30px;
flex-shrink: 0;
border-radius: 10px;
border: 1px solid rgba(34, 211, 238, 0.22);
background: rgba(8, 15, 28, 0.78);
display: inline-flex;
align-items: center;
justify-content: center;
box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
overflow: hidden;
box-shadow:
inset 0 0 0 1px rgba(148, 163, 184, 0.08),
0 0 20px rgba(34, 211, 238, 0.12);
}
.root :global(.brand-mark i) {
width: 13px;
height: 13px;
border-radius: 999px;
border: 2px solid #22d3ee;
position: relative;
}
.root :global(.brand-mark i::before),
.root :global(.brand-mark i::after) {
content: "";
position: absolute;
inset: -4px;
border-radius: 999px;
border: 1px solid rgba(34, 211, 238, 0.34);
}
.root :global(.brand-mark i::after) {
inset: -8px;
border-color: rgba(59, 130, 246, 0.18);
.root :global(.brand-mark img) {
width: 24px;
height: 24px;
display: block;
object-fit: contain;
}
.root :global(.brand h1) {
@@ -2472,6 +2455,14 @@
box-shadow: 0 12px 34px rgba(31, 64, 104, 0.08);
}
:global(html.light) .root :global(.brand-mark) {
background: rgba(255, 255, 255, 0.82);
border-color: rgba(14, 165, 233, 0.24);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.72),
0 10px 24px rgba(31, 64, 104, 0.12);
}
:global(html.light) .root :global(.city-list),
:global(html.light) .root :global(.home-intelligence-panel),
:global(html.light) .root :global(.home-opportunity-strip) {
+2 -1
View File
@@ -1,6 +1,7 @@
"use client";
import Link from "next/link";
import Image from "next/image";
import { usePathname } from "next/navigation";
import clsx from "clsx";
import {
@@ -146,7 +147,7 @@ export function HeaderBar({
<header className="header">
<div className="brand">
<span className="brand-mark" aria-hidden="true">
<i />
<Image src="/favicon-32x32.png" alt="" width={24} height={24} priority />
</span>
<h1>PolyWeather</h1>
<span className="subtitle">{t("header.subtitle")}</span>