Skip to content

Commit a2cf8a3

Browse files
authored
Update landing pages and fonts (#1872)
* Update landing pages and fonts. * Update the avatar.
1 parent d7b2277 commit a2cf8a3

8 files changed

Lines changed: 27 additions & 9 deletions

File tree

20.8 KB
Loading

en/docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="starfield">
66
<div class="starfield-origin"></div>
77
</div>
8-
<div class="hero-div">
8+
<div class="hero-div hero-div--en">
99
<img src="../assets/hero/ground.png" alt="" style="position: absolute; width: auto; height: 26.445%; left: 28.211%; top: 54.145%;">
1010
<img src="../assets/hero/links.png" alt="" style="position: absolute; width: auto; height: 78.751%; left: 10.545%; top: 7.326%;">
1111
<a href="chapter_introduction/">
@@ -249,10 +249,10 @@ <h3>Author</h3>
249249
</div>
250250
</div>
251251

252-
<!-- code reviewers -->
252+
<!-- translators -->
253253
<div style="margin: 2em auto;">
254-
<h3>Code Translators</h3>
255-
<p>The multilingual code in this book was translated by the following developers. We thank them for their time and effort!</p>
254+
<h3>Translators</h3>
255+
<p>The English version of this book was reviewed by the following translators. We thank them for their time and effort!</p>
256256
<div class="profile-div">
257257
<div class="profile-cell">
258258
<a href="https://github.com/yuelinxin">

en/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ theme:
1616
custom_dir: ../build/overrides
1717
language: en
1818
font:
19-
text: Lato
19+
text: Inter
2020
palette:
2121
- scheme: default
2222
primary: white

overrides/stylesheets/extra.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,14 @@ a:hover .text-button span {
395395
font-weight: normal;
396396
}
397397

398+
.hero-div--en {
399+
font-size: min(1.65vh, 2.3vw);
400+
}
401+
402+
.hero-div--ru {
403+
font-size: min(1.45vh, 2vw);
404+
}
405+
398406
.hero-bg {
399407
height: 100%;
400408
width: 100%;

overrides/zensical/stylesheets/extra.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,14 @@ a:hover .text-button span {
375375
font-weight: normal;
376376
}
377377

378+
.hero-div--en {
379+
font-size: min(1.65vh, 2.3vw);
380+
}
381+
382+
.hero-div--ru {
383+
font-size: min(1.45vh, 2vw);
384+
}
385+
378386
.hero-bg {
379387
height: 100%;
380388
width: 100%;
@@ -767,4 +775,4 @@ html:has(body[data-md-color-scheme="default"]) {
767775
.md-typeset a:not(.md-button):hover,
768776
.md-typeset a:not(.md-button):focus-visible {
769777
text-decoration: underline;
770-
}
778+
}

ru/docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="starfield">
66
<div class="starfield-origin"></div>
77
</div>
8-
<div class="hero-div">
8+
<div class="hero-div hero-div--ru">
99
<img src="../assets/hero/ground.png" alt="" style="position: absolute; width: auto; height: 26.445%; left: 28.211%; top: 54.145%;">
1010
<img src="../assets/hero/links.png" alt="" style="position: absolute; width: auto; height: 78.751%; left: 10.545%; top: 7.326%;">
1111
<a href="chapter_introduction/">
@@ -247,7 +247,7 @@ <h3>Переводчики</h3>
247247
<br><b>И. А. Шевкун</b>
248248
</div>
249249
<div class="profile-cell translator-profile-cell">
250-
<img class="profile-img" src="../assets/avatar/avatar_xxx.jpg" alt="Translator: yuyanhuang" />
250+
<img class="profile-img" src="../assets/avatar/avatar_yuyanhuang.jpg" alt="Translator: yuyanhuang" />
251251
<br><b>Yuyan Huang</b>
252252
</div>
253253
</div>

ru/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ theme:
1616
custom_dir: ../build/overrides
1717
language: ru
1818
font:
19-
text: Noto Sans
19+
text: PT Sans
2020
palette:
2121
- scheme: default
2222
primary: white

zh-hant/mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ version: 1.3.0
1515
theme:
1616
custom_dir: ../build/overrides
1717
language: zh-Hant
18+
font:
19+
text: Noto Sans TC
1820
palette:
1921
- scheme: default
2022
primary: white

0 commit comments

Comments
 (0)