Skip to content

Commit cd70960

Browse files
authored
Merge pull request #5 from vuejs-vn/docs/homepage
2 parents acb6453 + 8ce2db9 commit cd70960

File tree

4 files changed

+27
-46
lines changed

4 files changed

+27
-46
lines changed

.vitepress/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ export default defineConfigWithTheme<ThemeConfig>({
611611
text: 'MIT License',
612612
link: 'https://opensource.org/licenses/MIT'
613613
},
614-
copyright: `Copyright © 2014-${new Date().getFullYear()} Evan You`
614+
copyright: `Bản quyền © 2014-${new Date().getFullYear()} Evan You`
615615
}
616616
},
617617

.vitepress/theme/components/Home.vue

+18-33
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ import SponsorsGroup from './SponsorsGroup.vue';
66
<template>
77
<section id="hero">
88
<h1 class="tagline">
9-
The
10-
<span class="accent">Progressive</span>
11-
<br />JavaScript Framework
9+
Framework JavaScript
10+
<br />
11+
<span class="accent">linh động</span>
1212
</h1>
13-
<p class="description">
14-
An approachable, performant and versatile framework for building web
15-
user interfaces.
16-
</p>
13+
<p
14+
class="description"
15+
>Một framework gần gũi, mạnh mẽ và linh hoạt để xây dựng giao diện người dùng trên nền tảng web.</p>
1716
<p class="actions">
1817
<a class="get-started" href="/guide/introduction.html">
19-
Get Started
18+
Bắt đầu
2019
<svg
2120
class="icon"
2221
xmlns="http://www.w3.org/2000/svg"
@@ -29,55 +28,41 @@ import SponsorsGroup from './SponsorsGroup.vue';
2928
/>
3029
</svg>
3130
</a>
32-
<a class="setup" href="/guide/quick-start.html">Install</a>
31+
<a class="setup" href="/guide/quick-start.html">Cài đặt</a>
3332
</p>
3433
</section>
3534

3635
<!-- TODO make dynamic based on data -->
3736
<section id="special-sponsor">
38-
<span>Special Sponsor</span>
37+
<span>Tài trợ đặc biệt</span>
3938
<a href="https://www.dcloud.io/hbuilderx.html?hmsr=vue-en&hmpl=&hmcu=&hmkw=&hmci=">
4039
<picture>
4140
<source type="image/avif" srcset="/images/sponsors/hbuilder.avif" />
42-
<img
43-
alt="hbuilder logo"
44-
width="97"
45-
height="36"
46-
src="/images/sponsors/hbuilder.png"
47-
/>
41+
<img alt="hbuilder logo" width="97" height="36" src="/images/sponsors/hbuilder.png" />
4842
</picture>
4943
</a>
5044
<span>Advanced IDE for Vue</span>
5145
</section>
5246

5347
<section id="highlights" class="vt-box-container">
5448
<div class="vt-box">
55-
<h2>Approachable</h2>
56-
<p>
57-
Builds on top of standard HTML, CSS and JavaScript with intuitive
58-
API and world-class documentation.
59-
</p>
49+
<h2>Gần gũi</h2>
50+
<p>Xây dựng dựa trên HTML, CSS và JavaScript, với API trực quan và tài liệu đẳng cấp thế giới.</p>
6051
</div>
6152
<div class="vt-box">
62-
<h2>Performant</h2>
63-
<p>
64-
Truly reactive, compiler-optimized rendering system that rarely
65-
requires manual optimization.
66-
</p>
53+
<h2>Mạnh mẽ</h2>
54+
<p>Hệ thống render hoàn toàn reactive và được tối ưu hóa từ bước biên dịch, hiếm khi cần đến tối ưu thủ công.</p>
6755
</div>
6856
<div class="vt-box">
69-
<h2>Versatile</h2>
70-
<p>
71-
A rich, incrementally adoptable ecosystem that scales between a
72-
library and a full-featured framework.
73-
</p>
57+
<h2>Linh hoạt</h2>
58+
<p>Một hệ sinh thái phong phú từ cơ bản đến nâng cao, từ một thư viện đơn giản đến một framework đầy đủ tính năng.</p>
7459
</div>
7560
</section>
7661

7762
<section id="sponsors">
78-
<h2>Platinum Sponsors</h2>
63+
<h2>Nhà tài trợ Bạch Kim</h2>
7964
<SponsorsGroup tier="platinum" placement="landing" />
80-
<h2>Gold Sponsors</h2>
65+
<h2>Nhà tài trợ Vàng</h2>
8166
<SponsorsGroup tier="gold" placement="landing" />
8267
</section>
8368

.vitepress/theme/components/NewsLetter.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { VTLink } from '@vue/theme'
55
<template>
66
<section id="newsletter" class="NewsLetter">
77
<div class="container">
8-
<h2 class="title">Subscribe to our weekly newsletter.</h2>
8+
<h2 class="title">Đăng ký nhận bản tin hàng tuần của chúng tôi.</h2>
99

1010
<div class="form">
1111
<form
@@ -22,7 +22,7 @@ import { VTLink } from '@vue/theme'
2222
id="member_email"
2323
name="member[email]"
2424
type="email"
25-
placeholder="Email address"
25+
placeholder="Địa chỉ email"
2626
required
2727
/>
2828

@@ -32,20 +32,20 @@ import { VTLink } from '@vue/theme'
3232
id="member_submit"
3333
name="member[subscribe]"
3434
type="submit"
35-
value="SUBSCRIBE"
35+
value="ĐĂNG KÝ"
3636
/>
3737
</div>
3838
</form>
3939
</div>
4040

4141
<p class="help">
42-
You can read the previous issues and listen to our podcast at
42+
Bạn có thể đọc các số trước và nghe podcast của chúng tôi tại
4343
<VTLink
4444
class="link"
4545
href="https://news.vuejs.org/"
4646
no-icon
47-
>news.vuejs.org</VTLink>. You may also go social at
48-
<VTLink class="link" href="https://twitter.com/vuejs" no-icon>Twitter</VTLink>, or join our home at
47+
>news.vuejs.org</VTLink>. Bạn cũng có thể theo dõi
48+
<VTLink class="link" href="https://twitter.com/vuejs" no-icon>Twitter</VTLink>, hoặc tham gia
4949
<VTLink class="link" href="https://chat.vuejs.org/" no-icon>Discord</VTLink>.
5050
</p>
5151
</div>

.vitepress/theme/components/SponsorsGroup.vue

+2-6
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ onMounted(async () => {
6969
rel="sponsored noopener"
7070
>
7171
<picture v-if="img.endsWith('png')">
72-
<source
73-
type="image/avif"
74-
:srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`"
75-
/>
72+
<source type="image/avif" :srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`" />
7673
<img :src="`${base}/images/${img}`" :alt="name" />
7774
</picture>
7875
<img v-else :src="`${base}/images/${img}`" :alt="name" />
@@ -82,8 +79,7 @@ onMounted(async () => {
8279
v-if="placement !== 'page' && tier !== 'special'"
8380
href="/sponsor/"
8481
class="sponsor-item action"
85-
>Your logo</a
86-
>
82+
>Logo của bạn</a>
8783
</div>
8884
</template>
8985

0 commit comments

Comments
 (0)