Skip to content

Commit 03ffd77

Browse files
committed
feat(home): hero 标题改三行排列,页脚作者名加个人站链接
- manifesto title 改为三元素数组,h1 内按三行 block 渲染(首行 primary eyebrow),pageTitle 保持不变 - footer 作者名链接至 https://sunshineg.github.io/(target=_blank, noopener noreferrer),hover 变 primary
1 parent 444139f commit 03ffd77

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

src/data/manifesto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const manifestoContent = {
5353
},
5454
},
5555
en: {
56-
title: "The OpenSource.Win Manifesto: For Our Shared Future",
56+
title: ["The OpenSource.Win", "Manifesto:", "For Our Shared Future"],
5757
subtitle: "—— Believing in Openness to Build a Co-Evolving Human-AI Civilization",
5858
intro: {
5959
bold: "We stand at a critical crossroads in the history of technology.",
@@ -117,7 +117,7 @@ export const manifestoContent = {
117117
]
118118
},
119119
zh: {
120-
title: "OpenSource.Win 宣言:致未来",
120+
title: ["OpenSource.Win", "宣言:", "致我们共同的未来"],
121121
subtitle: "—— 相信开放的力量,构建人机共进的文明",
122122
intro: {
123123
bold: "我们正站在人类科技史的又一个十字路口。",

src/pages/Home.tsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,18 @@ export default function Home() {
9393
<span className="text-primary block mb-2 text-xl sm:text-2xl md:text-3xl opacity-80 font-normal">
9494
./manifesto --init
9595
</span>
96-
{content.title}
96+
{content.title.map((line, i) => (
97+
<span
98+
key={i}
99+
className={
100+
i === 0
101+
? "block text-primary text-xl sm:text-2xl md:text-3xl lg:text-4xl opacity-90 font-normal tracking-tight mb-1"
102+
: "block"
103+
}
104+
>
105+
{line}
106+
</span>
107+
))}
97108
</h1>
98109

99110
<p className="text-xl md:text-2xl text-muted-foreground max-w-2xl border-l-2 border-primary/50 pl-6 italic">
@@ -253,7 +264,16 @@ export default function Home() {
253264
</div>
254265

255266
<div className="text-right space-y-1 self-end md:self-center">
256-
<p className="font-bold text-foreground">{manifestoContent.meta.author[language]}</p>
267+
<p className="font-bold text-foreground">
268+
<a
269+
href="https://sunshineg.github.io/"
270+
target="_blank"
271+
rel="noopener noreferrer"
272+
className="hover:text-primary transition-colors"
273+
>
274+
{manifestoContent.meta.author[language]}
275+
</a>
276+
</p>
257277
{manifestoContent.meta.roles.map((role, i) =>
258278
role.url ? (
259279
<p key={i} className="text-sm text-muted-foreground">

0 commit comments

Comments
 (0)