Skip to content

Commit e5d2408

Browse files
committed
init
1 parent 48145a3 commit e5d2408

File tree

3 files changed

+45
-26
lines changed

3 files changed

+45
-26
lines changed

doc/.vitepress/theme/cutom.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,45 @@
3232
.user-img:hover {
3333
transition: all 1s;
3434
transform: rotate(360deg);
35+
}
36+
37+
/* 自定义样式 */
38+
39+
.VPHero {
40+
margin-top: calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);
41+
padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px !important;
42+
}
43+
44+
.VPHome .container {
45+
flex-direction: column !important;
46+
}
47+
48+
.VPHome .container .heading {
49+
display: block;
50+
text-align: center !important;
51+
}
52+
53+
.VPHome .container .main {
54+
margin: 0 auto;
55+
order: 2 !important;
56+
}
57+
58+
.VPHome .container .image {
59+
order: 1 !important;
60+
}
61+
62+
.VPHome .container .main .name {
63+
display: none;
64+
}
65+
66+
.VPHome .container .main .actions {
67+
justify-content: center !important;
68+
}
69+
70+
.tagline {
71+
text-align: center;
72+
}
73+
74+
.VPHome {
75+
margin-bottom: 0 !important;
3576
}

doc/en/index.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: home
33

44
title: Mettle
5-
titleTemplate: A approachable, fast, flexible and lightweight JavaScript library
5+
titleTemplate: Approachable, fast, flexible and lightweight JavaScript library
66

77
hero:
88
name: Mettle
9-
text: A approachable, fast, flexible and lightweight JavaScript library
9+
text: Approachable, fast, flexible and lightweight JavaScript library
1010
tagline: Building user interfaces
1111
actions:
1212
- theme: brand
@@ -18,15 +18,4 @@ hero:
1818
image:
1919
src: /logo.svg
2020
alt: Mettle
21-
22-
features:
23-
- icon: 🔌
24-
title: Approachable
25-
details: Easier to get started. As long as you are basically familiar with HTML, CSS and JavaScript, you can get started directly. We can declaratively describe the relationship between the final output HTML and JavaScript states. Developers can focus more on the development of business logic and do not need to care too much about the details of DOM operations.
26-
- icon: 🚀
27-
title: Fast
28-
details: Blazing Fast Virtual DOM. Adopts the virtual DOM mode. The virtual DOM uses the diff algorithm to calculate the nodes that really need to be updated, minimizing DOM operations and the typesetting and redrawing losses caused by DOM operations. This significantly improves performance.
29-
- icon: 🔩
30-
title: Flexible
31-
details: Flexible manipulation of code blocks. A function is a component, which can be arbitrarily combined according to the size of the application. And the unique "island feature" of the component allows the level of virtual DOM tree calculation to be controlled at the component level.
3221
---

doc/zh/index.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: home
33

44
title: Mettle
5-
titleTemplate: 一个易用、快速、灵活且轻量级的JavaScript库
5+
titleTemplate: 易用、快速、灵活且轻量级的JavaScript库
66

77
hero:
88
name: Mettle
9-
text: 一个易用、快速、灵活且轻量级的JavaScript库
9+
text: 易用、快速、灵活且轻量级的JavaScript库
1010
tagline: 用于构建用户界面
1111
actions:
1212
- theme: brand
@@ -18,15 +18,4 @@ hero:
1818
image:
1919
src: /logo.svg
2020
alt: Mettle
21-
22-
features:
23-
- icon: 🔌
24-
title: 易用
25-
details: 更容易上手。只要你对 HTML、CSS 和 JavaScript 已经基本熟悉,就可以直接上手。我们可以声明式地描述最终输出的 HTML 和 JavaScript 状态之间的关系,开发者可以更加专注于业务逻辑的开发,不需要过多地关心 DOM 操作的细节。
26-
- icon: 🚀
27-
title: 快速
28-
details: 超快的虚拟 DOM。采用了虚拟 DOM 的模式,虚拟 DOM 使用 diff 算法的方法来计算出真正需要更新的节点,最大限度地减少了 DOM 操作以及 DOM 操作带来的排版与重绘损耗,从而显著提高了性能。
29-
- icon: 🔩
30-
title: 灵活
31-
details: 灵活操作代码块。一个函数就是一个组件,可以根据应用规模任意组合。并且组件特有的 “孤岛特性”,使得将虚拟 DOM 树计算的级别控制在组件级别。
3221
---

0 commit comments

Comments
 (0)