Skip to content

Commit

Permalink
Chore: update new 2.9.0 index page (#15682)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and luckyCao committed May 30, 2019
1 parent a7d3f69 commit a4860f8
Show file tree
Hide file tree
Showing 15 changed files with 223 additions and 122 deletions.
Binary file added examples/assets/images/intro-theme-b.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/assets/images/theme-index-blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions examples/assets/images/theme-index-icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/assets/images/theme-index-red.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/assets/images/theme-intro.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions examples/components/header.vue
Expand Up @@ -302,8 +302,7 @@
</router-link>
</li>
<li
class="nav-item"
v-if="$isEle"
class="nav-item nav-item-theme"
>
<router-link
active-class="active"
Expand Down Expand Up @@ -370,11 +369,6 @@
</el-dropdown-menu>
</el-dropdown>
</li>

<!--theme picker-->
<li class="nav-item nav-theme-switch" v-show="isComponentPage">
<theme-picker v-if="!$isEle"></theme-picker>
</li>
</ul>
</div>
</header>
Expand Down
7 changes: 6 additions & 1 deletion examples/docs/en-US/custom-theme.md
@@ -1,5 +1,10 @@
## Custom theme
Element uses BEM-styled CSS so that you can override styles easily. But if you need to replace styles at a large scale, e.g. change the theme color from blue to orange or green, maybe overriding them one by one is not a good idea. We provide three ways to change the style variables.
Element uses BEM-styled CSS so that you can override styles easily. But if you need to replace styles at a large scale, e.g. change the theme color from blue to orange or green, maybe overriding them one by one is not a good idea. We provide four ways to change the style variables.

### Online Theme Roller
Use [Online Theme Roller](./#/en-US/theme) to customize all Design Tokens of global variables and components,and preview the new theme in real-time.and it can generate a complete style package based on the new theme for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">

### Changing theme color
If you just want to change the theme color of Element, the [theme preview website](https://elementui.github.io/theme-chalk-preview/#/en-US) is recommended. The theme color of Element is bright and friendly blue. By changing it, you can make Element more visually connected to specific projects.
Expand Down
7 changes: 6 additions & 1 deletion examples/docs/es/custom-theme.md
@@ -1,5 +1,10 @@
## Tema personalizado
Element utiliza la metodología BEM en CSS con la finalidad de que puedas sobrescribir los estilos fácilmente. Pero, si necesita remplazar estilos a gran escala, por ejemplo, cambiar el color del tema de azul a naranja o verde, quizás reemplazarlos uno a uno no sea lo más adecuado, para ello hay 3 maneras de modificar los estilos.
Element utiliza la metodología BEM en CSS con la finalidad de que puedas sobrescribir los estilos fácilmente. Pero, si necesita remplazar estilos a gran escala, por ejemplo, cambiar el color del tema de azul a naranja o verde, quizás reemplazarlos uno a uno no sea lo más adecuado, para ello hay 4 maneras de modificar los estilos.

### Online Theme Roller
Use [Online Theme Roller](./#/es/theme) to customize all Design Tokens of global variables and components,and preview the new theme in real-time.and it can generate a complete style package based on the new theme for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">

### Cambiando el color del tema
Si lo que se busca es cambiar el color del tema de Element, se recomienda utilizar el [sitio de visualización de temas](https://elementui.github.io/theme-chalk-preview/#/en-US). Element utiliza un color azul brillante y amigable como tema principal. Al cambiarlo, puede hacer que Element este más conectado visualmente a proyectos específicos.
Expand Down
7 changes: 6 additions & 1 deletion examples/docs/fr-FR/custom-theme.md
@@ -1,5 +1,10 @@
## Thème
Element utilise le style BEM pour le CSS afin que vous puissiez écraser les règles prédéfinies facilement. Mais si vous avez besoin de remplacer des styles à une plus grande échelle , e.g. changer le thème de bleu à orange ou vert, les modifier une par une serait fastidieux. Nous fournissons trois méthodes pour changer les variables de style.
Element utilise le style BEM pour le CSS afin que vous puissiez écraser les règles prédéfinies facilement. Mais si vous avez besoin de remplacer des styles à une plus grande échelle , e.g. changer le thème de bleu à orange ou vert, les modifier une par une serait fastidieux. Nous fournissons four méthodes pour changer les variables de style.

### Online Theme Roller
Use [Online Theme Roller](./#/fr-FR/theme) to customize all Design Tokens of global variables and components,and preview the new theme in real-time.and it can generate a complete style package based on the new theme for you to download directly (to import new style files in your project, please refer to the 'Import custom theme' or 'Import component theme on demand' part of this section).

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">

### Changer la couleur du thème
Si vous avez juste besoin de changer la couleur du thème, le [générateur de thème en ligne](https://elementui.github.io/theme-chalk-preview/#/en-US) est recommandé. La couleur du thème d'Element est un bleu clair et agréable. En le changeant, vous rendez Element visuellement plus adapté à vos projets.
Expand Down
7 changes: 6 additions & 1 deletion examples/docs/zh-CN/custom-theme.md
@@ -1,5 +1,10 @@
## 自定义主题
Element 默认提供一套主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。我们提供了三种方法,可以进行不同程度的样式自定义。
Element 默认提供一套主题,CSS 命名采用 BEM 的风格,方便使用者覆盖样式。我们提供了四种方法,可以进行不同程度的样式自定义。

### 在线主题编辑器
使用[在线主题编辑器](./#/zh-CN/theme),可以修改定制 Element 所有全局和组件的 Design Tokens,并可以方便地实时预览样式改变后的视觉。同时它还可以基于新的定制样式生成完整的样式文件包,供直接下载使用(关于如何使用下载的主题包,请参考本节「引入自定义主题」和「搭配插件按需引入组件主题」部分)。

<img src="https://shadow.elemecdn.com/app/sns-client/element-theme-editor2.e16c6a01-806d-11e9-bc23-21435c54c509.png" style="width: 70%;margin: 30px auto 0;display: block;">

### 仅替换主题色
如果仅希望更换 Element 的主题色,推荐使用[在线主题生成工具](https://elementui.github.io/theme-chalk-preview)。Element 默认的主题色是鲜艳、友好的蓝色。通过替换主题色,能够让 Element 的视觉更加符合具体项目的定位。
Expand Down
20 changes: 20 additions & 0 deletions examples/i18n/page.json
Expand Up @@ -12,6 +12,11 @@
"7": "使用组件 Demo 快速体验交互细节;使用前端框架封装的代码帮助工程师快速开发。",
"8": "资源",
"9": "下载相关资源,用其快速搭建页面原型或高保真视觉稿,提升产品设计效率。",
"10": "主题",
"11": "在线主题编辑器,可视化定制和管理站点主题、组件样式",
"12": "主题定制功能上线",
"13": "点击开始编辑",
"14": "尝试您的新主题",
"lang": "zh-CN",
"titleSize": "34",
"paraSize": "18"
Expand Down Expand Up @@ -113,6 +118,11 @@
"7": "Experience interaction details by strolling through component demos. Use encapsulated code to improve developing efficiency.",
"8": "Resource",
"9": "Download relevant design resources for shaping page prototype or visual draft, increasing design efficiency.",
"10": "Theme",
"11": "Online theme roller, visualize custom and manage site themes and component styles",
"12": "Theme customization is available!",
"13": "Click here",
"14": "Make your own theme",
"lang": "en-US",
"titleSize": "34",
"paraSize": "18"
Expand Down Expand Up @@ -214,6 +224,11 @@
"7": "Experimenta la interacción al pasear con los ejemplos de los componentes. Utiliza el código encapsulado para mejorar la eficiencia en el desarrollo.",
"8": "Recursos",
"9": "Descarga los recursos de diseño relevantes para dar forma a un prototipo o borrador, aumentando la eficiencia del diseño.",
"10": "Theme",
"11": "Online theme roller, visualize custom and manage site themes and component styles",
"12": "Theme customization is available!",
"13": "Click here",
"14": "Make your own theme",
"lang": "es",
"titleSize": "34",
"paraSize": "18"
Expand Down Expand Up @@ -315,6 +330,11 @@
"7": "Découvrez les détails de chaque composant and parcourant les différentes démos. Utilisez l'encapsulation du code pour développer plus efficacement.",
"8": "Ressources",
"9": "Téléchargez différents outils de prototypage ou de visualisation pour un design plus efficace.",
"10": "Theme",
"11": "Online theme roller, visualize custom and manage site themes and component styles",
"12": "Theme customization is available!",
"13": "Click here",
"14": "Make your own theme",
"lang": "fr-FR",
"titleSize": "34",
"paraSize": "18"
Expand Down

0 comments on commit a4860f8

Please sign in to comment.