diff --git a/app/globals.css b/app/globals.css index a9d501d..1692fce 100644 --- a/app/globals.css +++ b/app/globals.css @@ -3,27 +3,27 @@ @custom-variant dark (&:is(.dark *)); -/* 深色主题设计,适合个人导航站 */ +/* 深色主题设计,个人导航站 - 深蓝色调 */ :root { - --background: oklch(0.13 0.01 260); - --foreground: oklch(0.95 0 0); - --card: oklch(0.18 0.01 260); - --card-foreground: oklch(0.95 0 0); - --popover: oklch(0.18 0.01 260); - --popover-foreground: oklch(0.95 0 0); - --primary: oklch(0.7 0.15 200); + --background: oklch(0.12 0.015 240); + --foreground: oklch(0.98 0 0); + --card: oklch(0.16 0.015 240); + --card-foreground: oklch(0.98 0 0); + --popover: oklch(0.16 0.015 240); + --popover-foreground: oklch(0.98 0 0); + --primary: oklch(0.75 0.12 180); --primary-foreground: oklch(0.1 0 0); - --secondary: oklch(0.25 0.01 260); - --secondary-foreground: oklch(0.9 0 0); - --muted: oklch(0.25 0.01 260); - --muted-foreground: oklch(0.65 0 0); - --accent: oklch(0.7 0.15 200); + --secondary: oklch(0.22 0.015 240); + --secondary-foreground: oklch(0.95 0 0); + --muted: oklch(0.22 0.015 240); + --muted-foreground: oklch(0.6 0.01 240); + --accent: oklch(0.75 0.12 180); --accent-foreground: oklch(0.1 0 0); --destructive: oklch(0.577 0.245 27.325); --destructive-foreground: oklch(0.577 0.245 27.325); - --border: oklch(0.28 0.01 260); - --input: oklch(0.28 0.01 260); - --ring: oklch(0.7 0.15 200); + --border: oklch(0.24 0.02 240); + --input: oklch(0.20 0.015 240); + --ring: oklch(0.75 0.12 180); --chart-1: oklch(0.646 0.222 41.116); --chart-2: oklch(0.6 0.118 184.704); --chart-3: oklch(0.398 0.07 227.392); diff --git a/components/site-navigation.tsx b/components/site-navigation.tsx index 37015d8..43fcd89 100644 --- a/components/site-navigation.tsx +++ b/components/site-navigation.tsx @@ -389,64 +389,74 @@ export function SiteNavigation() { .filter((category) => category.sites.length > 0) return ( -
+
- {/* Header */} -
-
- -

站点导航

+ {/* Header - 居中设计 */} +
+
+
+ +
-

zhuzihan.com 全部站点与服务管理

+

+ 站点导航 +

+

+ zhuzihan.com + | + 全部站点与服务管理 +

- {/* Search */} -
+ {/* Search - 居中设计 */} +
setSearchQuery(e.target.value)} - className="w-full bg-card border border-border rounded-lg py-3 pl-12 pr-4 text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 transition-all" + className="w-full bg-input border border-border rounded-xl py-4 pl-12 pr-4 text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary/50 transition-all shadow-lg shadow-black/10" />
{/* Categories */} -
+
{filteredCategories.map((category) => (
-
- {category.icon} +
+ {category.icon}

{category.title}

- ({category.sites.length}) + + {category.sites.length} 个站点 +
-
+
{category.sites.map((site) => (
-

+

{site.name}

-

{site.domain}

+

{site.domain}

- +
-
+
{Array.isArray(site.server) ? ( site.server.map((s) => ( {s} @@ -454,7 +464,7 @@ export function SiteNavigation() { )) ) : ( {site.server} @@ -462,7 +472,7 @@ export function SiteNavigation() { )} {site.cdn !== "-" && ( {site.cdn} @@ -477,14 +487,21 @@ export function SiteNavigation() {
{/* Footer */} -