mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
docs: refactor resource (#6260)
* docs: refactor resource * docs: change shadow
This commit is contained in:
parent
979d169958
commit
7289f99848
91
docs/.vitepress/vitepress/components/globals/resource.vue
Normal file
91
docs/.vitepress/vitepress/components/globals/resource.vue
Normal file
@ -0,0 +1,91 @@
|
||||
<template>
|
||||
<div class="page-resource">
|
||||
<h1>Resources</h1>
|
||||
<p>More resources are still in development...</p>
|
||||
<el-space :size="20" alignment="start">
|
||||
<el-card class="card" shadow="hover">
|
||||
<img src="/images/Axure-Components.svg" alt="axure" />
|
||||
<h3>Axure Components</h3>
|
||||
<p>
|
||||
By importing Element UI in Axure, you can easily apply all the
|
||||
components we provide during interaction design.
|
||||
</p>
|
||||
<a
|
||||
href="https://github.com/ElementUI/Resources/raw/master/Element_Components_v2.1.0.rplib"
|
||||
>
|
||||
<el-button type="primary">Download</el-button>
|
||||
</a>
|
||||
</el-card>
|
||||
<el-card class="card" shadow="hover">
|
||||
<img src="/images/Sketch-Template.svg" alt="Sketch" />
|
||||
<h3>Sketch Template</h3>
|
||||
<p>
|
||||
Apply components from Element template, so you can improve design
|
||||
efficiency while keeping a unified visual style.
|
||||
</p>
|
||||
<a
|
||||
href="https://github.com/ElementUI/Resources/raw/master/Element%20UI%20Kit_v2.0.sketch"
|
||||
>
|
||||
<el-button type="primary">Download</el-button>
|
||||
</a>
|
||||
</el-card>
|
||||
<el-card class="card" shadow="hover">
|
||||
<img src="/images/figma.png" alt="Figma" />
|
||||
<h3>Figma Template</h3>
|
||||
<p>
|
||||
Newly designed Figma component library for 2022 with new features such
|
||||
as Auto-layout and Variants.
|
||||
</p>
|
||||
<a
|
||||
href="https://www.figma.com/community/file/1021254029764378306"
|
||||
target="_blank"
|
||||
>
|
||||
<el-button type="primary">Download</el-button>
|
||||
</a>
|
||||
</el-card>
|
||||
</el-space>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-resource {
|
||||
box-sizing: border-box;
|
||||
padding: 0 40px;
|
||||
|
||||
h1 {
|
||||
color: var(--text-color);
|
||||
|
||||
+ p {
|
||||
color: var(--text-color-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
text-align: center;
|
||||
padding: 32px 0;
|
||||
|
||||
img {
|
||||
margin: auto;
|
||||
margin-bottom: 16px;
|
||||
height: 87px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 10px;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 14px;
|
||||
color: #99a9bf;
|
||||
padding: 0 30px;
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
line-height: 1.8;
|
||||
min-height: 75px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -16,6 +16,7 @@ import SecondaryColors from './components/globals/secondary-colors.vue'
|
||||
import IconList from './components/globals/icons.vue'
|
||||
|
||||
import ParallaxHome from './components/globals/parallax-home.vue'
|
||||
import Resource from './components/globals/resource.vue'
|
||||
|
||||
import type { Component } from 'vue'
|
||||
|
||||
@ -30,4 +31,5 @@ export const globals: [string, Component][] = [
|
||||
['IconList', IconList],
|
||||
['Changelog', Changelog],
|
||||
['ParallaxHome', ParallaxHome],
|
||||
['Resource', Resource],
|
||||
]
|
||||
|
@ -3,205 +3,4 @@ page: true
|
||||
lang: en-US
|
||||
---
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-resource {
|
||||
box-sizing: border-box;
|
||||
padding: 35px 40px 0;
|
||||
|
||||
.resource-placeholder {
|
||||
margin: 50px auto 100px;
|
||||
text-align: center;
|
||||
|
||||
img {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 20px 0 16px;
|
||||
font-size: 16px;
|
||||
color: #1f2f3d;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
color: #99a9bf;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cards {
|
||||
margin: 35px auto 110px;
|
||||
|
||||
.container {
|
||||
&::before,
|
||||
&::after {
|
||||
display: table;
|
||||
content: '';
|
||||
}
|
||||
&::after {
|
||||
clear: both;
|
||||
}
|
||||
padding: 0;
|
||||
margin: 0 -11px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
li {
|
||||
width: 33.33333%;
|
||||
padding: 0 11px;
|
||||
box-sizing: border-box;
|
||||
float: left;
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
font-size: 28px;
|
||||
margin: 0;
|
||||
}
|
||||
p {
|
||||
font-size: 14px;
|
||||
color: #5e6d82;
|
||||
}
|
||||
.card {
|
||||
padding-bottom: 28px;
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--el-border-color-base);
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
transition: bottom 0.3s;
|
||||
bottom: 0;
|
||||
|
||||
img {
|
||||
margin: 75px auto 35px;
|
||||
height: 87px;
|
||||
}
|
||||
h3 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 18px;
|
||||
color: #1f2f3d;
|
||||
font-weight: normal;
|
||||
height: 22px;
|
||||
}
|
||||
p {
|
||||
font-size: 14px;
|
||||
color: #99a9bf;
|
||||
padding: 0 30px;
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
line-height: 1.8; // 1.6 for english
|
||||
min-height: 75px;
|
||||
}
|
||||
a {
|
||||
height: 40px;
|
||||
width: 160px;
|
||||
display: inline-block;
|
||||
line-height: 42px;
|
||||
font-size: 14px;
|
||||
background-color: #409eff;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
border-radius: 2px;
|
||||
transition: all 0.3s;
|
||||
text-decoration: none;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 850px) {
|
||||
.page-resource {
|
||||
padding: 15px 0px 0;
|
||||
}
|
||||
.cards {
|
||||
li {
|
||||
max-width: 500px;
|
||||
float: none;
|
||||
margin: 10px auto 30px;
|
||||
width: 80%;
|
||||
.card {
|
||||
height: auto;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
}
|
||||
h3 {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="page-container page-resource">
|
||||
<h1>Resources</h1>
|
||||
<p>More resources will be developed</p>
|
||||
<div class="cards">
|
||||
<ul class="container">
|
||||
<li>
|
||||
<div class="card">
|
||||
<img src="/images/Axure-Components.svg" alt="axure" />
|
||||
<h3>Axure Components</h3>
|
||||
<p>By importing Element UI in Axure, you can easily apply all the components we provide during interaction design.</p>
|
||||
<a
|
||||
onclick="ga('send', 'event', 'ResourceDownload', 'Download', 'Axure');"
|
||||
href="https://github.com/ElementUI/Resources/raw/master/Element_Components_v2.1.0.rplib"
|
||||
>Download</a
|
||||
>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="card">
|
||||
<img src="/images/Sketch-Template.svg" alt="Sketch" />
|
||||
<h3>Sketch Template</h3>
|
||||
<p>Apply components from Element template, so you can improve design efficiency while keeping a unified visual style.</p>
|
||||
<a
|
||||
onclick="ga('send', 'event', 'ResourceDownload', 'Download', 'Sketch');"
|
||||
href="https://github.com/ElementUI/Resources/raw/master/Element%20UI%20Kit_v2.0.sketch"
|
||||
>Download</a
|
||||
>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="card">
|
||||
<img src="/images/figma.png" alt="Figma" />
|
||||
<h3>Figma Template</h3>
|
||||
<p>Newly designed Figma component library for 2021 with new features such as Auto-layout and Variants.</p>
|
||||
<a
|
||||
onclick="ga('send', 'event', 'ResourceDownload', 'Download', 'Sketch');"
|
||||
href="https://www.figma.com/community/file/1021254029764378306"
|
||||
>Download</a
|
||||
>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style scoped lang="scss">
|
||||
h1 {
|
||||
color: var(--text-color);
|
||||
|
||||
+ p {
|
||||
color: var(--text-color-light);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: var(--bg-color);
|
||||
border-color: var(--border-color);
|
||||
|
||||
h3 {
|
||||
color: var(--text-color);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<Resource />
|
||||
|
Loading…
x
Reference in New Issue
Block a user