Skip to content

Commit 9dd9592

Browse files
committed
docs: better index
1 parent 6e4c030 commit 9dd9592

File tree

5 files changed

+34
-14
lines changed

5 files changed

+34
-14
lines changed

docs/.vitepress/components/HomeSponsors.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a
1111
class="become-sponsor button white"
1212
href="https://github.com/sponsors/posva"
13-
>Become a Sponsor!</a
13+
>{{ translations[$siteByRoute.themeConfig.lang] || translations.en }}</a
1414
>
1515
</div>
1616
</div>
@@ -19,13 +19,17 @@
1919
<script setup>
2020
import HomeSponsorsGroup from './HomeSponsorsGroup.vue'
2121
import sponsors from './sponsors.json'
22+
23+
const translations = {
24+
'en-US': 'Become a Sponsor!',
25+
'zh-CN': '成为赞助者!',
26+
}
2227
</script>
2328

2429
<style scoped>
2530
.sponsors_outer {
2631
text-align: center;
27-
padding: 35px 40px 45px;
28-
margin: 0 -2.5rem;
32+
padding: 35px 20px 45px;
2933
background-color: var(--c-bg-accent);
3034
/* transition when toggling dark mode */
3135
transition: background-color 300ms ease-in-out, color 300ms ease-in-out;

docs/index.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ home: true
33

44
heroImage: /logo.png
55
actionText: Get Started →
6-
actionLink: /introduction.html
6+
actionLink: /installation.html
77

88
features:
99
- title: 🛣 Expressive route syntax
10-
details: Define static and dynamic routes with an intuitive syntax.
10+
details: Define static and dynamic routes with an intuitive and powerful syntax.
1111
- title: 🛑 Fine-grained Navigation control
1212
details: Intercept any navigation and precisely control its outcome.
13-
- title: ⚙️ Devtools support
14-
details: Pinia hooks into Vue devtools to give you a enhanced development experience in both Vue 2 and Vue 3.
15-
- title: 🔌 Extensible
16-
details: React to store changes to extend Pinia with transactions, local storage synchronization, etc.
17-
- title: 🏗 Modular by design
18-
details: Build multiple stores and let your bundler code split them automatically.
19-
- title: 📦 Extremely light
20-
details: Pinia weights around 1kb, you will forget it's even there!
13+
- title: 🧱 Component-based configuration
14+
details: Map each route to the component that should display.
15+
- title: 🔌 History modes
16+
details: Choose between HTML5, Hash or Memory history modes.
17+
- title: 🎚 Scroll control
18+
details: Precisely control the scroll position in every page.
19+
- title: 🌐 Automatic Encoding
20+
details: Directly use unicode characters (你好) in your code.
2121

2222
footer: MIT Licensed | Copyright © 2014-present Evan You, Eduardo San Martin Morote
2323
---

docs/introduction.md

+6
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ Vue Router is the official router for [Vue.js](http://v3.vuejs.org). It deeply i
1414
- Proper encoding for URLs
1515

1616
[Get started](/guide/) or play with the [playground](https://github.com/vuejs/vue-router-next/tree/master/playground) (see [`README.md`](https://github.com/vuejs/vue-router-next) to run them).
17+
18+
<HomeSponsors />
19+
20+
<script setup>
21+
import HomeSponsors from './.vitepress/components/HomeSponsors.vue'
22+
</script>

docs/zh/index.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ actionLink: /zh/introduction.html
66

77
footer: MIT Licensed | Copyright © 2014-present Evan You, Eduardo San Martin Morote
88
---
9+
10+
<HomeSponsors />
11+
12+
<script setup>
13+
import HomeSponsors from '../.vitepress/components/HomeSponsors.vue'
14+
</script>

docs/zh/introduction.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Vue Router 是 [Vue.js](http://v3.vuejs.org) 的官方路由。它与 Vue.js 核
1313
- 可定制的滚动行为
1414
- URL 的正确编码
1515

16+
[入门](/zh/guide/)或使用 [playground](https://github.com/vuejs/vue-router-next/tree/master/playground) (详见[`README.md`](https://github.com/vuejs/vue-router-next)来运行它们)。
17+
1618
<HomeSponsors />
1719

18-
[入门](/zh/guide/)或使用 [playground](https://github.com/vuejs/vue-router-next/tree/master/playground) (详见[`README.md`](https://github.com/vuejs/vue-router-next)来运行它们)。
20+
<script setup>
21+
import HomeSponsors from '../.vitepress/components/HomeSponsors.vue'
22+
</script>

0 commit comments

Comments
 (0)