Skip to content

Commit 903d2e7

Browse files
committed
docs: add bilingual pages portal
1 parent 2592e90 commit 903d2e7

File tree

3 files changed

+547
-138
lines changed

3 files changed

+547
-138
lines changed

docs/assets/site.css

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ body {
2828
margin: 0;
2929
min-height: 100vh;
3030
color: var(--text);
31-
font-family: "IBM Plex Mono", monospace;
31+
font-family: "IBM Plex Mono", "Noto Sans SC", monospace;
3232
background: linear-gradient(180deg, #040712 0%, #02040b 100%);
3333
}
3434

@@ -115,6 +115,14 @@ code {
115115
border-radius: 18px;
116116
}
117117

118+
.topbar-controls {
119+
display: inline-flex;
120+
flex-wrap: wrap;
121+
align-items: center;
122+
justify-content: flex-end;
123+
gap: 12px;
124+
}
125+
118126
.brand {
119127
display: inline-flex;
120128
align-items: center;
@@ -141,6 +149,16 @@ h3 {
141149
font-family: "Syne", sans-serif;
142150
}
143151

152+
html[lang="zh-CN"] .brand-copy strong,
153+
html[lang="zh-CN"] h1,
154+
html[lang="zh-CN"] h2,
155+
html[lang="zh-CN"] h3,
156+
html[lang="zh-CN"] .metric-card strong,
157+
html[lang="zh-CN"] .pipeline-node strong {
158+
font-family: "Noto Sans SC", sans-serif;
159+
letter-spacing: -0.01em;
160+
}
161+
144162
.brand-copy strong {
145163
font-size: 1.1rem;
146164
}
@@ -157,6 +175,18 @@ h3 {
157175
font-size: 0.73rem;
158176
}
159177

178+
html[lang="zh-CN"] .brand-copy span,
179+
html[lang="zh-CN"] .eyebrow,
180+
html[lang="zh-CN"] .metric-label,
181+
html[lang="zh-CN"] .terminal-title,
182+
html[lang="zh-CN"] .terminal-line.is-soft,
183+
html[lang="zh-CN"] .capability-index,
184+
html[lang="zh-CN"] .telemetry-item span,
185+
html[lang="zh-CN"] .command-label {
186+
letter-spacing: 0.08em;
187+
text-transform: none;
188+
}
189+
160190
.topbar-status {
161191
display: inline-flex;
162192
align-items: center;
@@ -187,6 +217,41 @@ h3 {
187217
justify-content: flex-end;
188218
}
189219

220+
.lang-switch {
221+
display: inline-flex;
222+
align-items: center;
223+
gap: 6px;
224+
padding: 6px;
225+
border: 1px solid rgba(87, 197, 255, 0.16);
226+
border-radius: 999px;
227+
background: rgba(7, 14, 30, 0.74);
228+
}
229+
230+
.lang-button {
231+
min-width: 68px;
232+
min-height: 40px;
233+
padding: 0 14px;
234+
border: 0;
235+
border-radius: 999px;
236+
color: var(--muted);
237+
cursor: pointer;
238+
background: transparent;
239+
transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
240+
}
241+
242+
.lang-button:hover,
243+
.lang-button:focus-visible {
244+
color: var(--text);
245+
transform: translateY(-1px);
246+
}
247+
248+
.lang-button.is-active {
249+
color: #04111b;
250+
font-weight: 700;
251+
background: linear-gradient(135deg, var(--cyan-soft), var(--green));
252+
box-shadow: 0 10px 22px rgba(87, 197, 255, 0.24);
253+
}
254+
190255
.topnav a,
191256
.button,
192257
#copy-command {
@@ -281,6 +346,16 @@ h3 {
281346
text-transform: uppercase;
282347
}
283348

349+
html[lang="zh-CN"] h1 {
350+
max-width: 8.6ch;
351+
line-height: 1.04;
352+
}
353+
354+
html[lang="zh-CN"] h2 {
355+
max-width: 12ch;
356+
line-height: 1.12;
357+
}
358+
284359
.hero-text,
285360
.metric-card p,
286361
.capability-item p,
@@ -343,6 +418,7 @@ h3 {
343418
.command-bar code {
344419
overflow: auto;
345420
white-space: nowrap;
421+
scrollbar-width: thin;
346422
}
347423

348424
#copy-command {
@@ -383,6 +459,14 @@ h3 {
383459
text-transform: uppercase;
384460
}
385461

462+
html[lang="zh-CN"] .metric-card strong,
463+
html[lang="zh-CN"] .pipeline-node strong,
464+
html[lang="zh-CN"] h1,
465+
html[lang="zh-CN"] h2,
466+
html[lang="zh-CN"] h3 {
467+
text-transform: none;
468+
}
469+
386470
.terminal-stack {
387471
display: grid;
388472
gap: 18px;
@@ -504,6 +588,11 @@ h3 {
504588
background: linear-gradient(135deg, var(--green), var(--cyan-soft));
505589
}
506590

591+
html[lang="zh-CN"] .telemetry-pill {
592+
letter-spacing: 0.08em;
593+
text-transform: none;
594+
}
595+
507596
.telemetry-list {
508597
display: grid;
509598
gap: 12px;
@@ -798,6 +887,11 @@ h3 {
798887
grid-template-columns: 1fr;
799888
}
800889

890+
.topbar-controls,
891+
.topnav {
892+
justify-content: flex-start;
893+
}
894+
801895
.hero-copy,
802896
.capabilities,
803897
.workflow,

0 commit comments

Comments
 (0)