Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit bf22852

Browse files
committed
feat: optimize home-page style
1 parent a4f729b commit bf22852

File tree

6 files changed

+19
-23
lines changed

6 files changed

+19
-23
lines changed

packages/varlet-vue2-cli/site/pc/pages/index/index.less

+3-1
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,15 @@
138138
.block-button-content {
139139
display: flex;
140140
align-items: center;
141+
justify-content: center;
141142
}
142143

143144
.common-button {
144145
height: 52px;
145146
font-size: 18px;
146147
transition: all .25s;
147148
animation: fade-in .75s forwards;
149+
text-align: center;
148150
}
149151

150152
.extra-button {
@@ -166,7 +168,7 @@
166168
}
167169

168170
.base-title {
169-
font-size: 84px;
171+
font-size: 60px;
170172
line-height: 72px;
171173
font-weight: 500;
172174
margin-top: 8px;

packages/varlet-vue2-cli/site/pc/pages/index/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default ({
8282
},
8383
methods: {
8484
goGithub() {
85-
window.open(github)
85+
window.open(this.github)
8686
},
8787
8888
getStar () {
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
started: 'GET STARTED',
3-
description: 'Varlet is a Material design mobile component library developed based on Vue3, developed and maintained by partners in the community. ' +
3+
description: 'Varlet-Vue2 is a Material design mobile component library developed based on Vue2, developed and maintained by partners in the community. ' +
44
'Support Typescript, import on demand, dark mode, theme customization, internationalization, and provide VSCode plugin to ensure a good development experience',
55
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
22
started: '起步',
3-
description: 'Varlet 是一个基于 Vue3 开发的 Material 风格移动端组件库,' +
4-
'全面拥抱 Vue3 生态,由社区团队维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件保障良好的开发体验',
3+
description: 'Varlet-Vue2 是一个基于 Vue2 开发的 Material 风格移动端组件库,' +
4+
'全面拥抱 Vue2 生态,由社区团队维护。支持 Typescript、按需引入、暗黑模式、主题定制、国际化,并提供 VSCode 插件保障良好的开发体验',
55
}
+7-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
<div class="varlet-introduce">
2-
<div class="varlet-introduce__row">
3-
<img class="varlet-introduce__image" src="https://varlet-vue2.vercel.app/varlet_icon.png" />
4-
<div class="varlet-introduce__name">VARLET-VUE2</div>
5-
</div>
6-
<div class="varlet-introduce__des">Material design mobile component library for Vue2</div>
7-
</div>
8-
91
### Intro
102

113
Varlet is a Material design mobile component library developed based on `Vue2`, developed and maintained by partners in the community.
124

135
### Features
6+
147
- 1.Provide more than 50 high quality general purpose components
158
- 2.Components are very lightweight
169
- 3.Developed by Chinese, complete Chinese and English documentation and logistics support
@@ -24,17 +17,21 @@ Varlet is a Material design mobile component library developed based on `Vue2`,
2417
- 11.Support dark mode
2518

2619
### PR & Issue
20+
2721
If you have any problems during use, you can [issue](https://github.com/varletjs/varlet-vue2/issues) them to us on [github](https://github.com/varletjs/varlet-vue2),
2822
we will deal with it as soon as possible. You can also give us [PR](https://github.com/varletjs/varlet-vue2/pulls).
2923

3024
### Open source licenses
25+
3126
Component library based on `MIT` licenses.
3227

3328
### Material De#troduction
29+
3430
Material Design, Is a new design language from Google that aims to provide a more consistent and broader
3531
"look and feel" for phones, tablets, desktops and "other platforms".
3632

3733
### Why Material
34+
3835
In the early mobile devices, large color blocks and strong contrast colors had high requirements for display devices,
3936
while non-linear animation and water ripples had certain requirements for GPU.
4037
As a result, Material style does not have a good experience in the mobile browser environment, and more flat and simple style is chosen to be put into the product.
@@ -43,5 +40,5 @@ browsers have more free time, and the ability to process animations, and Materia
4340

4441
### Special thanks
4542

46-
Special thanks to `Yu Tiezhu-eddieyc@163.com` for the visual support of our component library documentation site,
47-
so as to help us continue to evolve.
43+
Special thanks to `Yu Tiezhu-eddieyc@163.com` for the visual support of our component library documentation site,
44+
so as to help us continue to evolve.

packages/varlet-vue2-ui/docs/home.zh-CN.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
<div class="varlet-introduce">
2-
<div class="varlet-introduce__row">
3-
<img class="varlet-introduce__image" src="https://varlet-vue2.vercel.app/varlet_icon.png" />
4-
<div class="varlet-introduce__name">VARLET-VUE2</div>
5-
</div>
6-
<div class="varlet-introduce__des">面向 Vue2 的 Material 风格移动端组件库</div>
7-
</div>
8-
91
### 介绍
102

113
Varlet 是一个基于 `Vue2` 开发的 Material 风格移动端组件库,全面拥抱 `Vue2` 生态,由社区的小伙伴开发和维护。
124

135
### 特性
6+
147
- 1.提供 50个 高质量通用组件
158
- 2.组件十分轻量
169
- 3.由国人开发,完善的中英文文档和后勤保障
@@ -24,16 +17,20 @@ Varlet 是一个基于 `Vue2` 开发的 Material 风格移动端组件库,全
2417
- 11.支持暗黑模式
2518

2619
### PR & Issue
20+
2721
使用过程中出现的问题可以到 [github](https://github.com/varletjs/varlet-vue2) 来给我们提 [issue](https://github.com/varletjs/varlet-vue2/issues)
2822
我们会在第一时间处理问题。也可以给我们提 [PR](https://github.com/varletjs/varlet-vue2/pulls),十分欢迎小伙伴们来找茬。
2923

3024
### 开源协议
25+
3126
组件库基于 `MIT` 协议。
3227

3328
### Material 风格介绍
29+
3430
Material Design,中文名:材料设计语言,是由 Google 推出的全新的设计语言,这种设计语言旨在为手机、平板电脑、台式机和“其他平台”提供更一致、更广泛的“外观和感觉”。
3531

3632
### 为什么选择 Material
33+
3734
在早期的移动端设备中,大色块以及强烈对比色,对显示设备要求很高,同时非线性动画和水波纹对 GPU 有一定要求。
3835
导致 Material 风格并没有在移动端浏览器环境下有很好的体验,更多选择更扁平朴素的风格投入产品。
3936
但随着现代设备和新的 js 框架运行时处理的效率的逐步提升,浏览器有了更多的空闲时间和能力去处理动画效果,Material Design 将会给应用带来更好的体验。

0 commit comments

Comments
 (0)