Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ sheets.sort((a, b) => {
<div class="home-content">
<section class="index-hero">
<h1 class="index-title">
A lightweight 2026 quick reference<br class="title-br" /> for developers coding in a new language.
<span class="phrase">A lightweight 2026</span> <span class="phrase">quick reference</span><br class="title-br" />
<span class="phrase">for developers</span> <span class="phrase">coding</span> <span class="phrase">in a new language.</span>
</h1>

<p class="index-description">
Easy to read, clearly sectioned, and friendly to newcomers.<br class="desc-br" />
Covers core syntax, common data structures, and gotchas, verified by real toolchains.<br class="desc-br" />
Ideal for LeetCode practice, quick onboarding, or refreshing rusty syntax.
<span class="phrase">Easy to read, clearly sectioned,</span> <span class="phrase">and friendly to newcomers.</span><br class="desc-br" />
<span class="phrase">Covers core syntax,</span> <span class="phrase">common data structures,</span> <span class="phrase">and gotchas,</span> <span class="phrase">verified by real toolchains.</span><br class="desc-br" />
<span class="phrase">Ideal for LeetCode practice,</span> <span class="phrase">quick onboarding,</span> <span class="phrase">or refreshing rusty syntax.</span>
</p>
</section>

Expand Down
9 changes: 5 additions & 4 deletions src/pages/zh/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ sheets.sort((a, b) => {
<div class="home-content">
<section class="index-hero">
<h1 class="index-title">
2026 主流编程语言轻量速查表<br class="title-br" /> 快速上手一门新语言
<span class="phrase">2026 主流编程语言</span><span class="phrase">轻量速查表</span><br class="title-br" />
<span class="phrase">快速上手一门新语言</span>
</h1>

<p class="index-description">
轻量易读、章节清晰、新手友好。<br class="desc-br" />
专为 LeetCode 刷题、快速上手与语法拾遗设计。<br class="desc-br" />
覆盖核心语法、常用数据结构与易错陷阱。所有代码可直接运行验证。
<span class="phrase">轻量易读、章节清晰、新手友好。</span><br class="desc-br" />
<span class="phrase">专为 LeetCode 刷题、</span><span class="phrase">快速上手与语法拾遗设计。</span><br class="desc-br" />
<span class="phrase">覆盖核心语法、</span><span class="phrase">常用数据结构与易错陷阱。</span><span class="phrase">所有代码可直接运行验证。</span>
</p>
</section>

Expand Down
5 changes: 5 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,11 @@ html[data-theme="dark"] .shiki span {
}
}

/* Hero text wraps only between phrases, so narrow screens never split a word or phrase. */
.phrase {
display: inline-block;
}

.index-grid-section {
width: 100%;
padding: 0;
Expand Down
Loading