Skip to content

Commit f0b7466

Browse files
translate home page
1 parent 49545c2 commit f0b7466

File tree

3 files changed

+48
-45
lines changed

3 files changed

+48
-45
lines changed

.vitepress/theme/components/Home.vue

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,19 @@ onMounted(async () => {
1111
</script>
1212

1313
<template>
14-
<section id="hero">
14+
<section id="hero" dir="rtl">
1515
<h1 class="tagline">
16-
The
17-
<span class="accent">Progressive</span>
18-
<br />JavaScript Framework
16+
إطار جافاسكريبت
17+
<br />
18+
<span class="accent">التقدمي</span>
1919
</h1>
2020
<p class="description">
21-
An approachable, performant and versatile framework for building web
22-
user interfaces.
21+
.إطار عمل سهل وقوي ومتعدد الإستعمالات لبناء واجهات الويب
2322
</p>
2423
<p class="actions">
2524
<vue-mastery-modal />
2625
<a class="get-started" href="/guide/introduction.html">
27-
Get Started
26+
البدء
2827
<svg
2928
class="icon"
3029
xmlns="http://www.w3.org/2000/svg"
@@ -37,17 +36,20 @@ onMounted(async () => {
3736
/>
3837
</svg>
3938
</a>
40-
<a class="setup" href="/guide/quick-start.html">Install</a>
39+
<a class="setup" href="/guide/quick-start.html">التنصيب</a>
4140
</p>
4241
</section>
4342

44-
<section id="special-sponsor">
45-
<span class="lead">Special Sponsor</span>
43+
<section id="special-sponsor" dir="rtl">
44+
<span class="lead">الراعي المميز</span>
4645
<template v-if="data && data.special">
4746
<template v-for="{ url, img, name, description } of data.special">
4847
<a :href="url" target="_blank" rel="sponsored noopener">
4948
<picture v-if="img.endsWith('png')">
50-
<source type="image/avif" :srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`" />
49+
<source
50+
type="image/avif"
51+
:srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`"
52+
/>
5153
<img :src="`${base}/images/${img}`" :alt="name" />
5254
</picture>
5355
<img v-else :src="`${base}/images/${img}`" :alt="name" />
@@ -57,34 +59,33 @@ onMounted(async () => {
5759
</template>
5860
</section>
5961

60-
<section id="highlights" class="vt-box-container">
62+
<section id="highlights" dir="rtl" class="vt-box-container">
6163
<div class="vt-box">
62-
<h2>Approachable</h2>
64+
<h2>سهل</h2>
6365
<p>
64-
Builds on top of standard HTML, CSS and JavaScript with intuitive
65-
API and world-class documentation.
66+
بُني باستخدام HTML و CSS و جافاسكريبت مع واجهة برمجية سهلة وتوثيق
67+
رسمي بمعايير عالمية.
6668
</p>
6769
</div>
6870
<div class="vt-box">
69-
<h2>Performant</h2>
71+
<h2>قوي</h2>
7072
<p>
71-
Truly reactive, compiler-optimized rendering system that rarely
72-
requires manual optimization.
73+
تفاعلي وذو نظام عرض محسن تلقائيا قلّما يحتاج إلى التدخل اليدوي.
7374
</p>
7475
</div>
7576
<div class="vt-box">
76-
<h2>Versatile</h2>
77+
<h2>متعدد الإستعمالات</h2>
7778
<p>
78-
A rich, incrementally adoptable ecosystem that scales between a
79-
library and a full-featured framework.
79+
نظام غني وقابل للتبنّي التدريجي، يمكن استعماله كمكتبة برمجية أو
80+
كإطار عمل متكامل.
8081
</p>
8182
</div>
8283
</section>
8384

84-
<section id="sponsors">
85-
<h2>Platinum Sponsors</h2>
85+
<section id="sponsors" dir="rtl">
86+
<h2>الرعاة البلاتينيون</h2>
8687
<SponsorsGroup tier="platinum" placement="landing" />
87-
<h2>Gold Sponsors</h2>
88+
<h2>الرعاة الذهبيون</h2>
8889
<SponsorsGroup tier="gold" placement="landing" />
8990
</section>
9091

@@ -138,7 +139,7 @@ html:not(.dark) .accent,
138139
}
139140
140141
.actions .get-started {
141-
margin-right: 18px;
142+
margin-left: 18px;
142143
}
143144
144145
.actions .icon {
@@ -148,14 +149,15 @@ html:not(.dark) .accent,
148149
margin-left: 2px;
149150
fill: currentColor;
150151
transition: transform 0.2s;
152+
transform: rotateY(180deg);
151153
}
152154
153155
.actions .get-started:hover {
154156
transition-duration: 0.2s;
155157
}
156158
157159
.actions .get-started:hover .icon {
158-
transform: translateX(2px);
160+
transform: translateX(-2px) rotateY(180deg);
159161
}
160162
161163
.actions .get-started,
@@ -191,7 +193,7 @@ html:not(.dark) .accent,
191193
}
192194
193195
#special-sponsor span:first-child {
194-
text-align: right;
196+
text-align: left;
195197
}
196198
197199
#special-sponsor a {

.vitepress/theme/components/NewsLetter.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { VTLink } from '@vue/theme'
33
</script>
44

55
<template>
6-
<section id="newsletter" class="NewsLetter">
6+
<section id="newsletter" dir="rtl" class="NewsLetter">
77
<div class="container">
8-
<h2 class="title">Subscribe to our weekly newsletter.</h2>
8+
<h2 class="title">سجّل في نشرتنا الإخبارية الأسبوعية</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="البريد الإلكتروني"
2626
required
2727
/>
2828

@@ -39,14 +39,16 @@ import { VTLink } from '@vue/theme'
3939
</div>
4040

4141
<p class="help">
42-
You can read the previous issues and listen to our podcast at
43-
<VTLink
44-
class="link"
45-
href="https://news.vuejs.org/"
46-
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
49-
<VTLink class="link" href="https://chat.vuejs.org/" no-icon>Discord</VTLink>.
42+
يمكنك قراءة الأعداد السابقة والإستماع إلى البودكاست من
43+
<VTLink class="link" href="https://news.vuejs.org/" no-icon
44+
>news.vuejs.org</VTLink
45+
>. تستطيع متابعتنا على
46+
<VTLink class="link" href="https://twitter.com/vuejs" no-icon
47+
>Twitter</VTLink
48+
>, أو الانضمام إلينا على
49+
<VTLink class="link" href="https://chat.vuejs.org/" no-icon
50+
>Discord</VTLink
51+
>.
5052
</p>
5153
</div>
5254
</section>

.vitepress/theme/components/VueMasteryModal.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ watch(
2020
class="why-vue"
2121
@click="showWhyVue = true"
2222
href="javascript:;"
23+
dir="rtl"
2324
>
2425
<svg
2526
class="icon-play"
@@ -33,13 +34,10 @@ watch(
3334
d="M50,3.8C24.5,3.8,3.8,24.5,3.8,50S24.5,96.2,50,96.2S96.2,75.5,96.2,50S75.5,3.8,50,3.8z M71.2,53.3l-30.8,18 c-0.6,0.4-1.3,0.5-1.9,0.5c-0.6,0-1.3-0.1-1.9-0.5c-1.2-0.6-1.9-1.9-1.9-3.3V32c0-1.4,0.8-2.7,1.9-3.3c1.2-0.6,2.7-0.6,3.8,0 l30.8,18c1.2,0.6,1.9,1.9,1.9,3.3S72.3,52.7,71.2,53.3z"
3435
></path>
3536
</svg>
36-
Why Vue
37+
لماذا Vue
3738
</a>
3839
<Teleport v-if="showWhyVue" to="body">
39-
<div
40-
@click="showWhyVue = false"
41-
class="vuemastery-modal-mask"
42-
>
40+
<div @click="showWhyVue = false" class="vuemastery-modal-mask">
4341
<div class="vuemastery-modal-wrapper">
4442
<div class="vuemastery-modal-container">
4543
<div class="vuemastery-modal-content">
@@ -73,7 +71,8 @@ watch(
7371
title="Vue.js Courses on Vue Mastery"
7472
>
7573
Vue Mastery.</a
76-
> Watch Vue Mastery’s free
74+
>
75+
Watch Vue Mastery’s free
7776
<a
7877
href="https://www.vuemastery.com/courses/intro-to-vue-3/intro-to-vue3"
7978
target="_blank"
@@ -100,7 +99,7 @@ watch(
10099
font-weight: 600;
101100
background-color: var(--vt-c-green);
102101
color: #fff;
103-
margin-right: 18px;
102+
margin-left: 18px;
104103
padding: 8px 1em 8px 3em;
105104
}
106105

0 commit comments

Comments
 (0)