Some improvements (#1073)
* Update avatar's link in the landing page * Bug fixes * Move assets folder from overrides to docs * Reduce figures' corner radius * Update copyright * Update header image * Krahets -> krahets * Update the landing page
BIN
docs/assets/avatar/avatar_Gonglja.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
docs/assets/avatar/avatar_Reanon.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
docs/assets/avatar/avatar_codingonion.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
docs/assets/avatar/avatar_gvenusleo.jpg
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
docs/assets/avatar/avatar_hpstory.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
docs/assets/avatar/avatar_justin-tse.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
docs/assets/avatar/avatar_krahets.jpg
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
docs/assets/avatar/avatar_night-cruise.jpg
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
docs/assets/avatar/avatar_nuomi1.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
docs/assets/avatar/avatar_yudongjin.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
docs/assets/hero/cover_render.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 82 KiB |
BIN
docs/assets/hero/web_mac_iphone.png
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
docs/assets/images/favicon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
docs/assets/images/logo.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
36
docs/assets/images/logo.svg
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.48 59.28">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: #2aa996;
|
||||
}
|
||||
|
||||
.cls-1, .cls-2 {
|
||||
stroke-width: 0px;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: #21c8b8;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g id="_layer_1" data-name="layer 1">
|
||||
<path class="cls-2" d="m5.02,34.2c-1.67,8.36-3.34,16.72-5.02,25.08h5.02c1.67-8.36,3.34-16.72,5.02-25.08h-5.02Z"/>
|
||||
<path class="cls-2" d="m25.22,49.25c.33-1.67.67-3.34,1-5.02H9.07c-.33,1.67-.67,3.34-1,5.02h17.16Z"/>
|
||||
<path class="cls-2" d="m30.16,54.27c.33-1.67.67-3.34,1-5.02h7.05c.33-1.67.67-3.34,1-5.02h-7.05c.33-1.67.67-3.34,1-5.02h7.05c.33-1.67.67-3.34,1-5.02-4.02,0-8.04,0-12.06,0-1.67,8.36-3.34,16.72-5.02,25.08,4.03,0,8.06,0,12.09,0,.33-1.67.67-3.34,1-5.02h-7.07Z"/>
|
||||
<path class="cls-2" d="m93.39,34.2h-16.56s0,0,0,0c-.01.04-.92.05-3.5,0-1.67,8.36-3.34,16.72-5.02,25.08h20.07c1.67-8.36,3.34-16.72,5.02-25.08Zm-19.06,20.07c1-5.02,2.01-10.03,3.01-15.05h10.03c-1,5.02-2.01,10.03-3.01,15.05h-10.03Z"/>
|
||||
<path class="cls-2" d="m44.23,54.27h0c1.34-6.69,2.68-13.38,4.01-20.07h-5.02c-1.67,8.36-3.34,16.72-5.02,25.08h4.01c3.02,0,6.04,0,9.06,0,.33-1.67.67-3.34,1-5.02h-8.05Z"/>
|
||||
<path class="cls-2" d="m59.29,54.27h0c1.34-6.69,2.68-13.38,4.01-20.07h-5.02c-1.67,8.36-3.34,16.72-5.02,25.08,4.36,0,8.71,0,13.07,0,.33-1.67.67-3.34,1-5.02h-8.05Z"/>
|
||||
<path class="cls-1" d="m16.89.07h-5.02c-1,5.02-2.01,10.03-3.01,15.05h5.01c1-5.02,2.01-10.03,3.01-15.05Z"/>
|
||||
<path class="cls-1" d="m34.32,33.21c1.14-5.69,2.27-11.38,3.41-17.07H8.65c-1.13,5.69-2.27,11.38-3.4,17.07h29.07Zm-21.64-12.06h19.03c-.07.34-.13.67-.2,1.01H12.48c.07-.34.13-.67.2-1.01Zm-1.21,6.03h19.03c-.07.34-.13.67-.2,1.01H11.27c.07-.34.13-.67.2-1.01Z"/>
|
||||
<path class="cls-1" d="m28.93,15.12c1-5.02,2.01-10.03,3.01-15.05h-5.02c-1,5.02-2.01,10.03-3.01,15.05h5.01Z"/>
|
||||
<path class="cls-1" d="m24.92,5.09c.33-1.67.67-3.34,1-5.02h-8.03c-.33,1.67-.67,3.34-1,5.02h8.03Z"/>
|
||||
<path class="cls-1" d="m121.48,15.04s.5-2.49.5-2.51c.17-.84.33-1.67.5-2.51h-11.33c.66-3.34,1.33-6.68,1.99-10.02h-5.02c-.67,3.34-1.34,6.68-2,10.02h-7.02c-.33,1.67-.67,3.34-1,5.02h7.03s0,0,0,.01h.01c-.07.33-.13.67-.2,1h-7.07c-.33,1.67-.67,3.34-1,5.02h4.25c-2.57,12.74-5.14,25.48-7.7,38.22,6.4,0,12.8,0,19.21,0l5.07-25.08h-5.03c-1.35,6.69-2.71,13.38-4.06,20.07h-9.13c2.22-11.07,4.44-22.13,6.66-33.2h14.1c.33-1.67.67-3.34,1-5.02h-11.28c.07-.34.13-.67.2-1.01h11.33Z"/>
|
||||
<path class="cls-1" d="m16.87,6.12c.6,3,1.2,6,1.8,9h4.23c-.6-3-1.2-6-1.8-9h-4.24Z"/>
|
||||
<path class="cls-1" d="m97,16.06h-5.02c-1.13,5.69-2.27,11.38-3.4,17.06h5.01c1.13-5.69,2.27-11.38,3.4-17.06Z"/>
|
||||
<path class="cls-1" d="m100.2,0h-5.02c-1,5.02-2.01,10.03-3.01,15.05h5.03c1-5.02,2-10.03,3-15.05Z"/>
|
||||
<path class="cls-1" d="m39.97,5.09c.33-1.67.67-3.34,1-5.02h-8.03c-.33,1.67-.67,3.34-1,5.02h8.03Z"/>
|
||||
<path class="cls-1" d="m31.92,6.12c.6,3,1.2,6,1.8,9h4.23c-.6-3-1.2-6-1.8-9h-4.24Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 137 KiB |
102
docs/index.md
@@ -1,5 +1,5 @@
|
||||
---
|
||||
comments: true
|
||||
comments: false
|
||||
glightbox: false
|
||||
hide:
|
||||
- footer
|
||||
@@ -121,7 +121,7 @@ hide:
|
||||
</div>
|
||||
<!-- arrow -->
|
||||
<div style="text-align: center; margin-top: min(2.5vh, 3.5vw);">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="var(--md-default-fg-color)" height="2vh" width="auto"
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="var(--md-default-fg-color)" height="2vh"
|
||||
viewBox="0 0 384 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
|
||||
<path
|
||||
d="M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" />
|
||||
@@ -155,27 +155,47 @@ hide:
|
||||
<!-- Section: reading -->
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<div class="section-content">
|
||||
<div style="height: min(37vh, 33vw); width: min(75vh, 75vw); position: relative; margin: 0.5em auto;">
|
||||
<div class="reading-media">
|
||||
<!-- devices -->
|
||||
<!-- book height = 250 mm -->
|
||||
<!-- mac height = 248.1 mm -->
|
||||
<!-- ipad height = 280.6mm -->
|
||||
<!-- iphone height = 160.7mm -->
|
||||
<img class="device-on-hover" src="assets/hero/web_mac.png" style="height: 88.42%; left: 5%; bottom: 5%;">
|
||||
<img class="device-on-hover" src="assets/hero/pdf_ipad.png" style="height: 100%; left: 60%; bottom: 0%;">
|
||||
<img class="device-on-hover" src="assets/hero/web_iphone.png" style="height: 57.27%; left: 2%; bottom: 0%;">
|
||||
</div>
|
||||
<p style="margin: 2em auto;">提供网页版和 PDF 版,兼容 PC、平板和手机,随时随地阅读</p>
|
||||
<div class="text-button-container">
|
||||
<a href="https://github.com/krahets/hello-algo/releases">
|
||||
<div class="text-button">
|
||||
<span>下载 PDF</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
|
||||
<path
|
||||
d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z" />
|
||||
</svg>
|
||||
<!-- iphone height = 160.7mm -->
|
||||
<div class="media-block">
|
||||
<div style="height: 8.17%;"></div>
|
||||
<img class="device-on-hover" style="height: 66.83%;" src="assets/hero/cover_render.png">
|
||||
<div class="text-button" style="color: var(--md-accent-fg-color);">
|
||||
<span>纸质书<br>(即将发布)</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-block">
|
||||
<a href="/chapter_preface/">
|
||||
<div style="height: 4.34%;"></div>
|
||||
<img class="device-on-hover" style="height: 66.31%;" src="assets/hero/web_mac_iphone.png">
|
||||
<div style="height: 4.34%;"></div>
|
||||
<div class="text-button">
|
||||
<span>在线阅读</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
|
||||
<path
|
||||
d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z" />
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-block">
|
||||
<a href="https://github.com/krahets/hello-algo/releases">
|
||||
<img class="device-on-hover" style="height: 75%;" src="assets/hero/pdf_ipad.png">
|
||||
<div class="text-button">
|
||||
<span>下载 PDF</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
|
||||
<path
|
||||
d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z" />
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -266,7 +286,7 @@ hide:
|
||||
<div class="profile-div">
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/krahets">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/26993056?v=4" alt="krahets" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_yudongjin.jpg" alt="yudongjin" />
|
||||
<br><b>靳宇栋(@krahets)</b>
|
||||
</a>
|
||||
</div>
|
||||
@@ -279,63 +299,63 @@ hide:
|
||||
<div class="profile-div">
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/codingonion">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/99076655?v=4" alt="codingonion" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_codingonion.jpg" alt="codingonion" />
|
||||
<br><b>codingonion</b>
|
||||
<br><sub>Zig, Rust</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/Gonglja">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/39959756?v=4" alt="Gonglja" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_Gonglja.jpg" alt="Gonglja" />
|
||||
<br><b>Gonglja</b>
|
||||
<br><sub>C, C++</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/gvenusleo">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/79075347?v=4" alt="gvenusleo" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_gvenusleo.jpg" alt="gvenusleo" />
|
||||
<br><b>gvenusleo</b>
|
||||
<br><sub>Dart</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/hpstory">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/33348162?v=4" alt="hpstory" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_hpstory.jpg" alt="hpstory" />
|
||||
<br><b>hpstory</b>
|
||||
<br><sub>C#</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/justin-tse">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/24556310?v=4" alt="justin-tse" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_justin-tse.jpg" alt="justin-tse" />
|
||||
<br><b>justin-tse</b>
|
||||
<br><sub>JS, TS</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/krahets">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/26993056?v=4" alt="krahets" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_krahets.jpg" alt="krahets" />
|
||||
<br><b>krahets</b>
|
||||
<br><sub>Python, Java</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/night-cruise">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/77157236?v=4" alt="night-cruise" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_night-cruise.jpg" alt="night-cruise" />
|
||||
<br><b>night-cruise</b>
|
||||
<br><sub>Rust</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/nuomi1">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/3739017?v=4" alt="nuomi1" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_nuomi1.jpg" alt="nuomi1" />
|
||||
<br><b>nuomi1</b>
|
||||
<br><sub>Swift</sub>
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-cell">
|
||||
<a href="https://github.com/Reanon">
|
||||
<img class="profile-img" src="https://avatars.githubusercontent.com/u/22005836?v=4" alt="Reanon" />
|
||||
<img class="profile-img" src="assets/avatar/avatar_Reanon.jpg" alt="Reanon" />
|
||||
<br><b>Reanon</b>
|
||||
<br><sub>Go, C</sub>
|
||||
</a>
|
||||
@@ -352,4 +372,28 @@ hide:
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section data-md-color-scheme="default" data-md-color-primary="white" class="home-div">
|
||||
<div class="section-content giscus-container">
|
||||
<p>欢迎在评论区留下你的见解、问题或建议</p>
|
||||
<!-- Insert generated snippet here -->
|
||||
<script
|
||||
src="https://giscus.app/client.js"
|
||||
data-repo="krahets/hello-algo"
|
||||
data-repo-id="R_kgDOIXtSqw"
|
||||
data-category="Announcements"
|
||||
data-category-id="DIC_kwDOIXtSq84CSZk_"
|
||||
data-mapping="pathname"
|
||||
data-strict="1"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="top"
|
||||
data-theme="light"
|
||||
data-lang="zh-CN"
|
||||
crossorigin="anonymous"
|
||||
async
|
||||
>
|
||||
</script>
|
||||
</div>
|
||||
</section>
|
||||