Skip to content

Commit ff56a6d

Browse files
authored
feat: add an animated bilingual graph-stack homepage (#566)
The English and Chinese homepages introduce HugeGraph as a full-stack graph platform for real-time queries and offline analysis. The introduction highlights Graph AI for LLM memory and ontology graphs. Readers can explore four layers by selecting one or scrolling through the page.
1 parent 7ea1562 commit ff56a6d

24 files changed

Lines changed: 4685 additions & 19 deletions

‎assets/css/landing-story.css‎

Lines changed: 1725 additions & 0 deletions
Large diffs are not rendered by default.

‎assets/img/landing-platforms.svg‎

Lines changed: 12 additions & 0 deletions
Loading

‎assets/js/kapa-adapter.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@
339339
if (!config.sourceGroupId) {
340340
if (context && !context.handoff()) return Promise.resolve();
341341
renderState('unavailable', config.labels.unavailable);
342-
if (launcher) launcher.focus();
342+
lastTrigger = launcher;
343+
restoreFocus();
343344
return Promise.resolve();
344345
}
345346
lastTrigger = trigger || documentObject.activeElement;
@@ -412,6 +413,11 @@
412413
function restoreFocus() {
413414
if (lastTrigger && typeof lastTrigger.focus === 'function') {
414415
lastTrigger.focus();
416+
// The homepage launcher can leave the screen while the dialog is open.
417+
if (documentObject.activeElement !== lastTrigger) {
418+
var main = documentObject.querySelector('main[tabindex]');
419+
if (main) main.focus({ preventScroll: true });
420+
}
415421
}
416422
}
417423

‎assets/js/landing-story.js‎

Lines changed: 1072 additions & 0 deletions
Large diffs are not rendered by default.

‎assets/scss/_styles_project.scss‎

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
width: 100%;
4848
border-block-end: 0;
4949
background: transparent;
50-
color: #fff;
50+
color: var(--hg-home-nav-ink, #fff);
5151
-webkit-backdrop-filter: none;
5252
backdrop-filter: none;
5353
transition:
@@ -69,12 +69,12 @@
6969

7070
.td-nav-title {
7171
background: none;
72-
color: #fff;
72+
color: var(--hg-home-nav-ink, #fff);
7373
font-family: var(--td-ui-font-family);
7474
font-size: 1.08rem;
7575
font-weight: 700;
7676
letter-spacing: 0;
77-
-webkit-text-fill-color: #fff;
77+
-webkit-text-fill-color: currentColor;
7878
}
7979

8080
.td-nav-brand,
@@ -87,17 +87,17 @@
8787
.td-shell-keyboard__trigger,
8888
.td-nav-github,
8989
.td-site-drawer-toggle {
90-
color: #fff;
90+
color: var(--hg-home-nav-ink, #fff);
9191
}
9292

9393
.td-nav-search-box {
94-
border-color: rgba(255, 255, 255, 0.38);
95-
background: rgba(15, 24, 92, 0.2);
94+
border-color: color-mix(in srgb, currentColor 38%, transparent);
95+
background: var(--hg-home-nav-search, rgba(15, 24, 92, 0.2));
9696

9797
kbd {
98-
border-color: rgba(255, 255, 255, 0.32);
98+
border-color: color-mix(in srgb, currentColor 32%, transparent);
9999
background: rgba(255, 255, 255, 0.1);
100-
color: #fff;
100+
color: var(--hg-home-nav-ink, #fff);
101101
}
102102
}
103103

@@ -107,6 +107,7 @@
107107
.td-nav-menu-zone > .nav-link:focus-visible,
108108
.td-nav-menu-zone .td-nav-menu > .nav-link:hover,
109109
.td-nav-menu-zone .td-nav-menu > .nav-link:focus-visible,
110+
.td-nav-menu-zone .td-nav-menu > .nav-link[aria-expanded='true'],
110111
.td-nav-search-box:hover,
111112
.td-nav-search-box:focus-visible,
112113
.td-nav-util:hover,
@@ -115,8 +116,8 @@
115116
.td-nav-github:focus-visible,
116117
.td-site-drawer-toggle:hover,
117118
.td-site-drawer-toggle:focus-visible {
118-
background: rgba(15, 24, 92, 0.28);
119-
color: #fff;
119+
background: var(--hg-home-nav-hover, rgba(15, 24, 92, 0.28));
120+
color: var(--hg-home-nav-ink, #fff);
120121
}
121122
}
122123

@@ -315,6 +316,7 @@
315316
.td-nav-menu-zone > .nav-link:focus-visible,
316317
.td-nav-menu-zone .td-nav-menu > .nav-link:hover,
317318
.td-nav-menu-zone .td-nav-menu > .nav-link:focus-visible,
319+
.td-nav-menu-zone .td-nav-menu > .nav-link[aria-expanded='true'],
318320
.td-nav-search-box:hover,
319321
.td-nav-search-box:focus-visible,
320322
.td-nav-util:hover,
@@ -426,6 +428,24 @@
426428
}
427429
}
428430

431+
// Use the native button surface and hover treatment with community-specific colors.
432+
.hg-community-hero .td-landing-button--primary {
433+
--td-primary-bg: #cfdcca;
434+
--td-primary-bg-hover: #bbcfb6;
435+
--td-primary-fg: #253b2d;
436+
--td-control-border: #718772;
437+
438+
&:focus-visible {
439+
outline-color: currentColor;
440+
}
441+
}
442+
443+
[data-bs-theme="dark"] .hg-community-hero .td-landing-button--primary {
444+
--td-primary-bg: #354b3f;
445+
--td-primary-bg-hover: #405b4b;
446+
--td-primary-fg: #e4eee1;
447+
}
448+
429449
.td-home .hg-home-capabilities,
430450
.td-home .hg-home-community {
431451
padding-block: clamp(54px, 6vw, 82px);
@@ -455,9 +475,9 @@
455475
}
456476

457477
.hg-asf-footer {
458-
border-block-start: 2px solid #21b6d7;
459-
background: #41414d;
460-
color: #f5f5f8;
478+
border-block-start: 1px dashed var(--bs-border-color);
479+
background: var(--bs-body-bg);
480+
color: var(--bs-secondary-color);
461481

462482
&__container {
463483
display: grid;
@@ -496,13 +516,14 @@
496516
}
497517

498518
a {
499-
color: #f5f5f8;
500-
text-decoration-color: rgba(255, 255, 255, 0.5);
519+
color: var(--bs-body-color);
520+
text-decoration-color: currentColor;
501521
text-underline-offset: 0.16em;
502522

503523
&:hover,
504524
&:focus-visible {
505-
color: #fff;
525+
color: var(--bs-emphasis-color);
526+
text-decoration: underline;
506527
text-decoration-thickness: 2px;
507528
}
508529
}
@@ -512,6 +533,10 @@
512533
line-height: 1.5;
513534
text-align: center;
514535

536+
a {
537+
text-decoration-line: underline;
538+
}
539+
515540
p {
516541
margin: 0;
517542
}
@@ -522,6 +547,14 @@
522547
}
523548
}
524549

550+
[data-bs-theme="dark"] .hg-asf-footer__brand img {
551+
filter: brightness(1.5);
552+
}
553+
554+
body:has(.hg-ask-ai-launcher:not([hidden])) .hg-asf-footer__legal {
555+
padding-inline-end: 3.5rem;
556+
}
557+
525558
.hg-shell-mobile-utils,
526559
.hg-landing-mobile-utils {
527560
display: none;

‎contribution.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,19 @@ stable.
147147

148148
- `content/en/` and `content/cn/` contain the bilingual source pages.
149149
- `hugo.yaml` owns routing, languages, outputs, search, navigation, and OINK parameters.
150-
- `data/home/<language>.yaml` owns the bilingual homepage.
150+
- The HTML and Markdown homepages share [English](data/landing/en.yaml) and [Chinese](data/landing/cn.yaml) copy.
151+
- The [platform list](data/landing/platforms.yaml) maps each logo to its ID in the [SVG sprite](assets/img/landing-platforms.svg).
151152
- `data/footer/<language>.yaml` owns the bilingual footer.
152153
- `i18n/zh-CN.yaml` carries only HugeGraph-specific Simplified Chinese labels; generic interface translations come from OINK for the preserved `cn` URL language key; the file is named after the `zh-CN` locale because Hugo resolves translations by locale, not by the URL key.
153154
- `assets/` and `static/` contain site-owned brand and compatibility assets.
154155

155156
OINK is a module dependency. Do not copy or edit generated module-cache files. Site-specific overrides belong in the corresponding root `layouts/`, `assets/`, or data path and require focused regression evidence.
156157

158+
### Homepage checks
159+
160+
From `tests/e2e`, run `SITE_ROOT=/path/to/built/site npm test -- landing.spec.js landing-motion.spec.js` to check layout, navigation and motion.
161+
For archived homepage changes, also run `versioning.spec.js` against a site assembled with the historical releases.
162+
157163
## 中文说明
158164

159165
提交前请同时检查中英文页面、公开 URL、搜索结果和语言切换。视觉或导航变更必须提供修改前后的桌面与移动端截图。构建成功只证明模板可以渲染,不能替代真实浏览器、无障碍、打印和 CSP 检查。

‎data/landing/cn.yaml‎

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
hero:
2+
title: 全栈图技术平台
3+
body: 实时查询数据关系,离线分析全图,用 Graph AI 构建 LLM 记忆和本体图谱
4+
primary:
5+
label: 快速开始
6+
url: /cn/docs/quickstart/
7+
secondary:
8+
label: GitHub
9+
url: https://github.com/apache/hugegraph
10+
explore: 探索四层架构
11+
12+
layers:
13+
ai:
14+
name: 图 AI
15+
components: llm/sdk/rag
16+
description: 结合大语言模型实现 GraphRAG 与本体图谱构建
17+
go: 探索图 AI
18+
computing:
19+
name: 图计算
20+
components: vermeer/computer
21+
description: 在内存或 BSP 集群上对全图进行 OLAP 分析
22+
go: 探索图计算
23+
toolchain:
24+
name: 图工具链
25+
components: loader/hubble/tools
26+
description: 用 Loader 批量导入顶点和边,在 Hubble 中查看关系,用 Tools 备份和迁移数据
27+
go: 探索图工具链
28+
database:
29+
name: 图数据库
30+
components: server/pd/store
31+
description: Server 提供图查询,分布式部署使用 PD 管理分区、Store 存储副本
32+
go: 探索图数据库
33+
34+
story:
35+
label: HugeGraph,从一套技术栈到不同规模
36+
stack_label: HugeGraph 四层架构,从图数据库到 AI
37+
beats:
38+
database:
39+
title: 从一个点开始
40+
body: 沿着边,找到这个点的邻居。图数据库支持单机内嵌存储,也支持基于 Raft 的高可用分布式存储
41+
url: /cn/docs/quickstart/hugegraph/
42+
link_label: 查看图数据库部署指南
43+
toolchain:
44+
title: 沿着边出发
45+
body: 用 Loader 导入顶点和边,再用 Hubble 查看查询结果,沿着一条边找到下一个顶点
46+
url: /cn/docs/quickstart/toolchain/
47+
link_label: 查看图工具链指南
48+
computing:
49+
title: 全图计算,挖掘社群
50+
body: 图计算对整个数据集进行 OLAP 分析,Vermeer 在内存中运行,Computer 使用 BSP 集群
51+
url: /cn/docs/quickstart/computing/
52+
link_label: 探索图计算
53+
ai:
54+
title: 拥抱 AI,向图前行
55+
body: Graph AI 的图抽取 SDK、Memory 和本体平台都在快速迭代,欢迎大家参与共建
56+
url: /cn/docs/quickstart/hugegraph-ai/
57+
link_label: 探索图 AI
58+
readouts:
59+
database: "{vertices} 个顶点,1 个邻域"
60+
toolchain: 图探索 · 顶点与边
61+
computing: "{vertices} 个顶点,{communities} 个社群"
62+
ai: 1 个问题,1 个检索子图
63+
64+
statement:
65+
body: 从**图数据存储**和**实时查询**,到**离线分析**和**图 AI**,一套图系统贯穿全程
66+
figures:
67+
- value: 千亿级
68+
label: 顶点与边的规模
69+
- value: 毫秒级
70+
label: 多跳查询延迟
71+
- value: 30+
72+
label: 内置图算法
73+
- value: 首个
74+
label: Apache 顶级图系统
75+
76+
capabilities:
77+
title: 核心特点
78+
items:
79+
- title: 高效
80+
variant: efficient
81+
body: 支持海量数据批量导入、毫秒级图检索,以及数千用户并发的在线操作
82+
icon: fa-solid fa-bolt
83+
url: /cn/docs/quickstart/toolchain/hugegraph-loader/
84+
- title: 智能化
85+
variant: ai
86+
body: 支持 GraphRAG、自动化知识图谱构建,并内置 20 多种图机器学习算法
87+
icon: fa-solid fa-wand-magic-sparkles
88+
url: /cn/docs/quickstart/hugegraph-ai/
89+
- title: 易用
90+
body: 支持 Gremlin、Cypher 与 RESTful API,配备覆盖导入、可视化和运维的完整工具链
91+
icon: fa-solid fa-terminal
92+
url: /cn/docs/quickstart/toolchain/
93+
- title: 通用
94+
body: 基于 Apache TinkerPop 的属性图建模,覆盖 OLTP 与 OLAP,可集成 Hadoop 和 Spark
95+
icon: fa-solid fa-puzzle-piece
96+
url: /cn/docs/quickstart/computing/
97+
- title: 可扩展
98+
body: 支持水平扩容和分布式部署,覆盖从单机到 PB 级集群的使用场景
99+
icon: fa-solid fa-expand
100+
url: /cn/docs/quickstart/hugegraph/hugegraph-hstore/
101+
- title: 开放生态
102+
variant: open
103+
body: 遵循 TinkerPop 标准,提供多语言客户端,由活跃且持续演进的 Apache 社区支持
104+
icon: fa-solid fa-plug
105+
url: /cn/docs/clients/client/hugegraph-client/
106+
107+
platforms:
108+
title: 无缝衔接现有技术栈
109+
pause: 暂停标识滚动
110+
111+
components:
112+
title: ALL IN ONE
113+
body: 图数据库可单机或分布式部署。按需搭配图工具链、图计算和图 AI 组件
114+
first_use: 从这里开始
115+
groups:
116+
- title: 图数据库
117+
items:
118+
- name: Server
119+
body: 图数据库引擎,提供 REST API、Gremlin 与 Cypher
120+
url: /cn/docs/quickstart/hugegraph/hugegraph-server/
121+
first_use: true
122+
- name: PD
123+
body: 管理元数据、分区和集群调度的 Placement Driver
124+
url: /cn/docs/quickstart/hugegraph/hugegraph-pd/
125+
- name: Store
126+
body: 基于 Raft 一致性协议的分布式存储
127+
url: /cn/docs/quickstart/hugegraph/hugegraph-hstore/
128+
- title: 工具链
129+
items:
130+
- name: Hubble
131+
body: 用于图数据可视化的 Web 平台
132+
url: /cn/docs/quickstart/toolchain/hugegraph-hubble/
133+
- name: Loader
134+
body: 用于批量加载图数据的导入工具
135+
url: /cn/docs/quickstart/toolchain/hugegraph-loader/
136+
- name: Tools
137+
body: 用于备份、恢复和迁移的命令行工具
138+
url: /cn/docs/quickstart/toolchain/hugegraph-tools/
139+
- title: 图计算与 AI
140+
items:
141+
- name: Vermeer
142+
body: 在内存中运行图算法,支持 PageRank 和社群发现
143+
url: /cn/docs/quickstart/computing/hugegraph-vermeer/
144+
- name: AI
145+
body: 结合大语言模型实现 GraphRAG 与知识图谱构建
146+
url: /cn/docs/quickstart/hugegraph-ai/
147+
148+
quickstart:
149+
title: 快速开始
150+
body: Docker 默认以单机模式启动 HugeGraph Server,监听本机 8080 端口。单机模式支持内存或磁盘存储
151+
command: docker run -d -p 127.0.0.1:8080:8080 hugegraph/hugegraph
152+
copy: 复制
153+
copied: 已复制
154+
copy_fallback: 复制已选命令
155+
copy_status: 命令已复制到剪贴板
156+
copy_fallback_status: 命令已选中,请使用系统复制命令完成复制
157+
verify: 查看启动日志,再确认服务已就绪
158+
verify_command: curl -fsS http://127.0.0.1:8080/versions
159+
next:
160+
label: 验证服务并执行第一次查询
161+
url: /cn/docs/quickstart/hugegraph/hugegraph-server/
162+
install:
163+
label: 其他安装方式
164+
url: /cn/docs/download/download/
165+
166+
community:
167+
title: 欢迎加入 HugeGraph 开源社区
168+
body: 欢迎新用户和贡献者一起交流、参与开发
169+
items:
170+
- title: GitHub
171+
body: 通过 GitHub Pull Request 提交贡献
172+
url: https://github.com/apache/hugegraph
173+
icon: fa-brands fa-github
174+
external: true
175+
- title: 微信公众号
176+
body: 扫码关注「Apache HugeGraph」,获取社区动态
177+
url: /cn/docs/introduction/#community
178+
icon: fa-brands fa-weixin
179+
- title: 工具链
180+
body: 获取图数据导入、可视化、备份、恢复与迁移工具
181+
url: /cn/docs/quickstart/toolchain/
182+
icon: fa-solid fa-screwdriver-wrench
183+
- title: Discord
184+
body: 加入 HugeGraph 社区,交流使用经验
185+
url: https://discord.gg/bT7GtKEnJK
186+
icon: fa-brands fa-discord
187+
external: true

‎data/landing/community/cn.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
sections:
22
- type: hero
33
data:
4+
class: hg-community-hero
45
eyebrow: Apache HugeGraph
56
title: 加入 Apache HugeGraph 社区
67
lead: Apache HugeGraph 是一个开放的开源项目,社区中的每个人都可以使用、改进并从中受益。欢迎加入我们,通过以下方式了解项目动态并参与社区。

0 commit comments

Comments
 (0)