From ac51ae5b12925c35df692e96ef71f9932aabec1c Mon Sep 17 00:00:00 2001 From: krahets Date: Tue, 5 Dec 2023 16:21:05 +0800 Subject: [PATCH] build --- docs/index.md | 127 ++++++++++++++++++-------------- overrides/stylesheets/extra.css | 10 +++ 2 files changed, 80 insertions(+), 57 deletions(-) diff --git a/docs/index.md b/docs/index.md index 06592fdcb..7dd5f66cf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,14 +3,15 @@ comments: true glightbox: false hide: - footer + - toc ---

-

- - -

+
+ + +

《 Hello 算法 》

@@ -50,56 +51,68 @@ hide:

推荐语

-!!! quote - - “一本通俗易懂的数据结构与算法入门书,引导读者手脑并用地学习,强烈推荐算法初学者阅读。” - - **—— 邓俊辉,清华大学计算机系教授** - -!!! quote - - “如果我当年学数据结构与算法的时候有《Hello 算法》,学起来应该会简单 10 倍!” - - **—— 李沐,亚马逊资深首席科学家** +
+
+

Quote

+

“一本通俗易懂的数据结构与算法入门书,引导读者手脑并用地学习,强烈推荐算法初学者阅读。”

+

—— 邓俊辉,清华大学计算机系教授

+
+
+

Quote

+

“如果我当年学数据结构与算法的时候有《Hello 算法》,学起来应该会简单 10 倍!”

+

—— 李沐,亚马逊资深首席科学家

+
+
--- -

全书动画图解

+
+
+
+

动画图解

+ +
+

内容清晰易懂
学习曲线平滑

+
+ +
-

内容清晰易懂、学习曲线平滑
电脑、平板、手机全终端阅读

+
+

"A picture is worth a thousand words."

+

“一图胜千言”

+
- +
+ +
+
+

一键运行

+ +
+

支持十余种编程语言
代码皆可直接运行

+
+
-!!! quote "" +
+

"Talk is cheap. Show me the code."

+

“少吹牛,看代码”

+
-

"A picture is worth a thousand words."

-

“一图胜千言”

+
+
+
+

互助学习

+ +
+

鼓励读者讨论与提问
可在两日内得到回复

+
+ +
---- - -

代码一键运行

- -

提供各个算法与数据结构的简洁实现与测试样例,皆可直接运行
支持 Python、C++、Java、C#、Go、Swift、JS、TS、Dart、Rust、C、Zig 等语言

- - - -!!! quote "" - -

"Talk is cheap. Show me the code."

-

“少吹牛,看代码”

- ---- - -

可讨论与提问

- -

鼓励小伙伴们互帮互助、共同成长
提问与评论一般能在两日内得到回复

- - - -!!! quote "" - -

“追风赶月莫停留,平芜尽处是春山”

-

一起加油!

+
+

"追风赶月莫停留"

+

“平芜尽处是春山”

+
--- @@ -115,7 +128,7 @@ hide:

作者简介

-靳宇栋 ([Krahets](https://leetcode.cn/u/jyd/)),大厂高级算法工程师,上海交通大学硕士。力扣(LeetCode)全网阅读量最高博主,发表的[《图解算法数据结构》](https://leetcode.cn/leetbook/detail/illustration-of-algorithm/)已被订阅 27 万本。 +靳宇栋 ([Krahets](https://leetcode.cn/u/jyd/)),大厂高级算法工程师,上海交通大学硕士。力扣(LeetCode)全网阅读量最高博主,发表的[《图解算法数据结构》](https://leetcode.cn/leetbook/detail/illustration-of-algorithm/)已被订阅 30 万本。 --- @@ -125,7 +138,7 @@ hide:

- +

@@ -134,15 +147,15 @@ hide:
- - - - - - - - - + + + + + + + + +
Gonglja
Gonglja

C, C++
gvenusleo
gvenusleo

Dart
hpstory
hpstory

C#
justin-tse
justin-tse

JS, TS
krahets
krahets

Java, Python
night-cruise
night-cruise

Rust
nuomi1
nuomi1

Swift
Reanon
Reanon

Go, C
sjinzh
sjinzh

Rust, Zig
Gonglja
Gonglja

C, C++
gvenusleo
gvenusleo

Dart
hpstory
hpstory

C#
justin-tse
justin-tse

JS, TS
krahets
krahets

Java, Python
night-cruise
night-cruise

Rust
nuomi1
nuomi1

Swift
Reanon
Reanon

Go, C
sjinzh
sjinzh

Rust, Zig
diff --git a/overrides/stylesheets/extra.css b/overrides/stylesheets/extra.css index e7a289b66..cc04c5ea2 100644 --- a/overrides/stylesheets/extra.css +++ b/overrides/stylesheets/extra.css @@ -119,3 +119,13 @@ body { [data-md-color-scheme="slate"] .md-typeset video { filter: brightness(0.85) invert(0.05); } + +/* landing page */ +.responsive-div { + display: flex; + align-items: center; + justify-content: center; + margin-left: auto; + margin-right: auto; + width: 100%; /* Default to full width */ +}