Translate entire site to English

This commit is contained in:
Codex
2026-07-21 13:06:43 +02:00
parent 4cdf50c27b
commit 76198b98b5
10 changed files with 45 additions and 86 deletions
+3 -5
View File
@@ -1,6 +1,4 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useState } from "react";
const links=[["/","首页"],["/advantages","合作优势"],["/process","合作流程"],["/cases","合作场景"],["/faq","常见问题"],["/contact","联系"]];
export function SiteNav(){const path=usePathname();const [open,setOpen]=useState(false);return <header><div className="shell nav"><Link className="brand" href="/" onClick={()=>setOpen(false)}>COZ<span>CREATOR</span></Link><button className="menu" type="button" aria-label={open?"关闭导航":"打开导航"} aria-expanded={open} onClick={()=>setOpen(!open)}><i/><i/></button><nav className={open?"open":""}>{links.map(([href,label])=><Link className={path===href?"active":""} href={href} key={href} onClick={()=>setOpen(false)}>{label}</Link>)}<Link className="nav-cta" href="/contact"></Link></nav></div></header>}
import Link from "next/link";import {usePathname} from "next/navigation";import {useState} from "react";
const links=[["/","Home"],["/advantages","Why Us"],["/process","How It Works"],["/cases","Scenarios"],["/faq","FAQ"],["/contact","Contact"]];
export function SiteNav(){const path=usePathname();const [open,setOpen]=useState(false);return <header><div className="shell nav"><Link className="brand" href="/" onClick={()=>setOpen(false)}>COZ<span>CREATOR</span></Link><button className="menu" type="button" aria-label={open?"Close navigation":"Open navigation"} aria-expanded={open} onClick={()=>setOpen(!open)}><i/><i/></button><nav className={open?"open":""}>{links.map(([href,label])=><Link className={path===href?"active":""} href={href} key={href} onClick={()=>setOpen(false)}>{label}</Link>)}<Link className="nav-cta" href="/contact">Become a Partner</Link></nav></div></header>}