From e677c03e26f83e7288e5f01890c99e4eb833eb3b Mon Sep 17 00:00:00 2001 From: zguiyang Date: Sat, 14 Mar 2026 12:45:32 +0800 Subject: [PATCH] refactor(header): replace static image icon with SVG and update gradient text style - Replaced hardcoded image icon in `GlassHeader` with inline SVG for better scalability and customization. - Updated `.gradient-text` to use `--ui-title-gradient` variable for improved design consistency. --- src/components/GlassHeader.tsx | 11 ++++++----- src/styles/global.css | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/GlassHeader.tsx b/src/components/GlassHeader.tsx index 0caf5fc..63c358d 100644 --- a/src/components/GlassHeader.tsx +++ b/src/components/GlassHeader.tsx @@ -69,11 +69,12 @@ export default function GlassHeader({ lang: propLang }: GlassHeaderProps) { className="flex items-center text-lg font-medium transition-colors duration-150 hover:text-foreground/80" href={getLocalizedPath('/', lang)} > - Code Icon +
+ + + + +
{personalInfo.name} diff --git a/src/styles/global.css b/src/styles/global.css index 8eade1a..112a1ce 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -13,7 +13,7 @@ /* Modern Design Elements */ .gradient-text { - background: linear-gradient(to right, #8B5CF6, #EC4899); + background: var(--ui-title-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;