File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 * @param {boolean } priority - 是否优先加载
1313 */
1414import Image from "next/image" ;
15+ import Link from "next/link" ;
1516import { cn } from "@/lib/utils" ;
1617
1718export const BRAND_NAME = "Involution Hell" ;
@@ -38,7 +39,7 @@ export function BrandMark({
3839 const width = Math . round ( imageSize * BRAND_LOGO_ASPECT_RATIO ) ;
3940
4041 return (
41- < div className = { cn ( "flex items-center gap-2" , className ) } >
42+ < Link href = "/" className = { cn ( "flex items-center gap-2" , className ) } >
4243 < div className = "relative" >
4344 < Image
4445 src = { BRAND_LOGO_LIGHT_SRC }
@@ -65,6 +66,6 @@ export function BrandMark({
6566 >
6667 { BRAND_NAME }
6768 </ span >
68- </ div >
69+ </ Link >
6970 ) ;
7071}
Original file line number Diff line number Diff line change @@ -31,7 +31,16 @@ export function Header() {
3131 < div className = "flex items-center justify-between h-10" >
3232 < nav className = "hidden md:flex items-center gap-8 font-sans text-xs font-bold uppercase tracking-widest text-[var(--foreground)]" >
3333 < a
34- href = "#features"
34+ href = "/"
35+ className = "hover:text-[#CC0000] transition-colors"
36+ data-umami-event = "navigation_click"
37+ data-umami-event-region = "header"
38+ data-umami-event-label = "home"
39+ >
40+ 首页
41+ </ a >
42+ < a
43+ href = "/#features"
3544 className = "hover:text-[#CC0000] transition-colors"
3645 data-umami-event = "navigation_click"
3746 data-umami-event-region = "header"
@@ -40,7 +49,7 @@ export function Header() {
4049 特点
4150 </ a >
4251 < a
43- href = "#community"
52+ href = "/ #community"
4453 className = "hover:text-[#CC0000] transition-colors"
4554 data-umami-event = "navigation_click"
4655 data-umami-event-region = "header"
@@ -49,7 +58,7 @@ export function Header() {
4958 社区
5059 </ a >
5160 < a
52- href = "#contact"
61+ href = "/ #contact"
5362 className = "hover:text-[#CC0000] transition-colors"
5463 data-umami-event = "navigation_click"
5564 data-umami-event-region = "header"
You can’t perform that action at this time.
0 commit comments