mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
c6bed151a5
* feat(website): init viteperss (#3162) * init vitepress * Finish homepage * relayout page * partial finish * update * update use lang * remove font weight; change font size * docs: optimize docs folder structure * reorganize project * fix ssr issue * fix build issues Co-authored-by: Kevin <sxzz@sxzz.moe> Co-authored-by: zouhang <zouhang@didiglobal.com> * feat(website) integrate with crowdin (#3218) - Introduce Crowdin CLI - Add script for fetching Crowdin token from env - Add script for local development * fix formatting * update codeblocks (#3249) * feat(docs): update website preview script - Update azure preview build script - Eliminate dead links * bootstrap docs * fix homepage layout issue * fix formating * Finish ToC and codepen integration * reorganized files and fix issue that causes demo unavailable after build * feat(docs): migration documentations (#3283) * feat(docs): migration documentations - Move documentations to docs/ * remove unused files * docs: [popconfirm] migrate document (#3285) * feat(docs): migrate documentation from space.md to upload.md (#3292) - Upload documentations acorrodingly * docs: [date-picker] migrate document (#3289) * docs: [date-picker] migrate document * fix: typo * docs: [slider] migrate document (#3287) * docs: migrate documents (#3290) * docs: migrate-datetime-picker * docs: migrate descriptions * docs: migrate dialog * docs: migrate divider * docs: migrate drawer * docs: migrate drapdown * docs: fix drapdown * docs: migrate empty * docs: migrate form * docs: add scoped for style * docs: simplify toRefs * chore: update doc (#3297) * chore: update doc * chore: update doc * chore: update doc * feat(docs): migrate documentations from infinite-scroll to page-header (#3303) - Update docs accordingly - Update CodePen icon to match style - Update component name to match others * docs: migrate documentions (#3293) migrate list: * image * popover * scrollbar * radio * rate * skeleton * select * select-v2 * reault * progress * pagination * chore: update doc (#3305) Co-authored-by: 0song <0song@gmail.com> * Fix broken pipeline * chore: update demo plugin * website perfection * fix hydration bug * docs: update guide (#3342) * WIP docs * docs: update docs * add dark mode * make dev fetch components from local instead of node_modules Co-authored-by: msidolphin <msidolphin@outlook.com> Co-authored-by: Aex <spryti@qq.com> Co-authored-by: 0song <82012629+0song@users.noreply.github.com> Co-authored-by: 0song <0song@gmail.com> Co-authored-by: zouhang <zouhang@didiglobal.com> Co-authored-by: 三咲智子 <sxzz@sxzz.moe> * fix(docs): fix codepen code example issue (#3380) * fix(docs): fix codepen code example issue - Add lang="ts" for all example files - Fix codepen import error * revert changes in resource.vue * feat(docs): complete crowdin integration (#3408) * Update mds for preparing the integration script * deprecate old website * update sponsors and even handler for resize * update build script for preview * fix preview-build error * fix preview-build error * fix preview-build error * fix preview-build error * fix preview-build error * update deploy script and some bugs * Fix existing issue * chore(project): add dev preview workflow * chore(project): rename dev to staging * update the size of toc * update staging-preview script * update preview scripts * enable website build for preview * fix build error * final commitment for update the details * remove azure pipeline * move docs ignores into docs and update date Co-authored-by: Kevin <sxzz@sxzz.moe> Co-authored-by: zouhang <zouhang@didiglobal.com> Co-authored-by: msidolphin <msidolphin@outlook.com> Co-authored-by: Aex <spryti@qq.com> Co-authored-by: 0song <82012629+0song@users.noreply.github.com> Co-authored-by: 0song <0song@gmail.com>
503 lines
10 KiB
Markdown
503 lines
10 KiB
Markdown
---
|
|
title: A Desktop UI Toolkit for Web
|
|
page: true
|
|
---
|
|
|
|
<script setup>
|
|
import { ref, computed, onMounted, onBeforeUnmount } from 'vue'
|
|
import { withBase } from 'vitepress'
|
|
|
|
const sponsors = [
|
|
{
|
|
name: 'bit',
|
|
img: withBase('/images/bit.svg'),
|
|
url: 'https://bit.dev/?from=element-ui',
|
|
slogan: 'Share Code',
|
|
},
|
|
{
|
|
name: 'renren.io',
|
|
img: withBase('/images/renren.png'),
|
|
url: 'https://www.renren.io/?from=element-ui',
|
|
slogan: 'Rapid development platform',
|
|
className: 'renren',
|
|
},
|
|
]
|
|
</script>
|
|
|
|
<div class="home-page">
|
|
<div class="banner">
|
|
<div class="banner-desc">
|
|
<h1>A Desktop UI Library</h1>
|
|
<p>Element Plus, a Vue 3.0 based component library for developers, designers and product managers</p>
|
|
</div>
|
|
</div>
|
|
<div class="jumbotron">
|
|
<img src="/images/theme-index-blue.png" alt="banner" />
|
|
</div>
|
|
<div class="sponsors">
|
|
<a v-for="sponsor in sponsors" :class="['sponsor', sponsor.className]" :href="sponsor.url" target="_blank">
|
|
<img width="45" :src="sponsor.img" :alt="sponsor.name" />
|
|
<div>
|
|
<p>
|
|
Sponsored by
|
|
<span class="name">{{ sponsor.name }}</span>
|
|
</p>
|
|
<p>{{ sponsor.slogan }}</p>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<div class="cards">
|
|
<ul class="container">
|
|
<li>
|
|
<div class="card">
|
|
<img src="/images/guide.png" alt="" />
|
|
<h3>Guide</h3>
|
|
<p>Understand the design guidelines, helping designers build product that's logically sound, reasonably structured and easy to use.</p>
|
|
<a href="/en-US/guide/design.html">
|
|
View Detail
|
|
</a>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div class="card">
|
|
<img src="/images/component.png" alt="" />
|
|
<h3>Component</h3>
|
|
<p>Experience interaction details by strolling through component demos. Use encapsulated code to improve developing efficiency.</p>
|
|
<a href="/en-US/component/layout.html">
|
|
View Detail
|
|
</a>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div class="card">
|
|
<img src="/images/resource.png" alt="" />
|
|
<h3>Resource</h3>
|
|
<p>Download relevant design resources for shaping page prototype or visual draft, increasing design efficiency.</p>
|
|
<a href="/en-US/guide/resource.html">
|
|
View Detail
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<div class="footer-main">
|
|
<h4>Links</h4>
|
|
<a href="https://github.com/element-plus/element-plus" class="footer-main-link" target="_blank">
|
|
GitHub
|
|
</a>
|
|
<a href="https://github.com/element-plus/element-plus/releases" class="footer-main-link" target="_blank">
|
|
Changelog
|
|
</a>
|
|
<a href="https://github.com/element-plus/element-plus-starter" class="footer-main-link" target="_blank">
|
|
Starter kit
|
|
</a>
|
|
<a href="/en-US/component/custom-theme" class="footer-main-link" target="_blank">
|
|
Online Theme Roller
|
|
</a>
|
|
</div>
|
|
|
|
<div class="footer-main">
|
|
<h4>Community</h4>
|
|
<a href="https://gitter.im/element-en/Lobby" class="footer-main-link" target="_blank">Gitter</a>
|
|
<a href="https://github.com/element-plus/element-plus/issues" class="footer-main-link" target="_blank">
|
|
Feedback
|
|
</a>
|
|
<a href="https://github.com/element-plus/element-plus/blob/dev/.github/CONTRIBUTING.en-US.md" class="footer-main-link" target="_blank">
|
|
Contribution
|
|
</a>
|
|
<a href="https://segmentfault.com/t/element-plus" class="footer-main-link" target="_blank">
|
|
SegmentFault
|
|
</a>
|
|
</div>
|
|
</footer>
|
|
|
|
<style lang="scss" scoped>
|
|
.home-page {
|
|
.banner {
|
|
text-align: center;
|
|
}
|
|
.banner-desc {
|
|
padding-top: 30px;
|
|
|
|
h1 {
|
|
font-size: 34px;
|
|
margin: 0;
|
|
line-height: 48px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
p {
|
|
font-size: 18px;
|
|
line-height: 28px;
|
|
color: var(--text-color-light);
|
|
margin: 20px 0 5px;
|
|
}
|
|
}
|
|
|
|
.sponsors {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.sponsor {
|
|
margin: 0 20px 50px;
|
|
display: inline-flex;
|
|
width: 300px;
|
|
height: 100px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
.name {
|
|
font-weight: bold;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
img {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
line-height: 1.8;
|
|
color: var(--text-color-light);
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
.jumbotron {
|
|
width: 890px;
|
|
margin: 30px auto;
|
|
position: relative;
|
|
img {
|
|
width: 100%;
|
|
}
|
|
.jumbotron-red {
|
|
transition: height 0.1s;
|
|
background: #fff;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
.cards {
|
|
margin: 0 auto 110px;
|
|
width: 1140px;
|
|
|
|
.container {
|
|
padding: 0;
|
|
margin: 0 -11px;
|
|
width: auto;
|
|
&::before,
|
|
&::after {
|
|
display: table;
|
|
content: '';
|
|
}
|
|
&::after {
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
li {
|
|
width: 33.3%;
|
|
padding: 0 19px;
|
|
box-sizing: border-box;
|
|
float: left;
|
|
list-style: none;
|
|
}
|
|
|
|
img {
|
|
width: 160px;
|
|
height: 120px;
|
|
}
|
|
}
|
|
.card {
|
|
height: 430px;
|
|
width: 100%;
|
|
background: var(--bg-color);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 5px;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
position: relative;
|
|
transition: all 0.3s ease-in-out;
|
|
bottom: 0;
|
|
|
|
img {
|
|
margin: 66px auto 60px;
|
|
}
|
|
h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
color: #1f2f3d;
|
|
font-weight: normal;
|
|
}
|
|
p {
|
|
font-size: 14px;
|
|
color: #99a9bf;
|
|
padding: 0 25px;
|
|
line-height: 20px;
|
|
}
|
|
a {
|
|
height: 53px;
|
|
line-height: 52px;
|
|
font-size: 14px;
|
|
color: var(--brand-color);
|
|
text-align: center;
|
|
border: 0;
|
|
border-top: 1px solid var(--border-color);
|
|
padding: 0;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: var(--bg-color);
|
|
border-radius: 0 0 5px 5px;
|
|
transition: all 0.3s;
|
|
text-decoration: none;
|
|
display: block;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
background: var(--brand-color);
|
|
}
|
|
}
|
|
&:hover {
|
|
bottom: 6px;
|
|
box-shadow: 0 6px 18px 0 rgba(232, 237, 250, 0.5);
|
|
}
|
|
}
|
|
@media (max-width: 1140px) {
|
|
.cards {
|
|
width: 100%;
|
|
.container {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
}
|
|
.banner .container {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.banner img {
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.banner .container {
|
|
img {
|
|
display: none;
|
|
}
|
|
}
|
|
.jumbotron {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.cards {
|
|
li {
|
|
width: 80%;
|
|
margin: 0 auto 20px;
|
|
float: none;
|
|
}
|
|
.card {
|
|
height: auto;
|
|
padding-bottom: 54px;
|
|
}
|
|
}
|
|
.banner-stars {
|
|
display: none;
|
|
}
|
|
.banner-desc {
|
|
#line2 {
|
|
display: none;
|
|
}
|
|
h2 {
|
|
font-size: 32px;
|
|
}
|
|
p {
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
.theme-intro-b {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 200;
|
|
.intro-banner {
|
|
position: absolute;
|
|
}
|
|
img {
|
|
width: 300px;
|
|
}
|
|
.title {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
color: #fff;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
p {
|
|
padding: 0;
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
}
|
|
.theme-intro-a {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 200;
|
|
.mask {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background: #000;
|
|
opacity: 0.5;
|
|
}
|
|
.intro-banner {
|
|
top: 50%;
|
|
left: 50%;
|
|
position: fixed;
|
|
-webkit-transform: translate(-50%, -50%);
|
|
transform: translate(-50%, -50%);
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
z-index: 100;
|
|
img {
|
|
width: 100%;
|
|
}
|
|
.intro-text {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
right: 0;
|
|
p {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.footer {
|
|
background-color: var(--bg-color);
|
|
width: 100%;
|
|
padding: 40px 150px;
|
|
box-sizing: border-box;
|
|
height: 340px;
|
|
|
|
.container {
|
|
box-sizing: border-box;
|
|
width: auto;
|
|
}
|
|
|
|
.footer-main {
|
|
font-size: 0;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
margin-right: 110px;
|
|
|
|
h4 {
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
margin: 0 0 15px 0;
|
|
}
|
|
|
|
.footer-main-link {
|
|
display: block;
|
|
margin: 0;
|
|
line-height: 2;
|
|
font-size: 14px;
|
|
color: var(--text-color-light);
|
|
|
|
&:hover {
|
|
color: var(--text-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.footer-social {
|
|
float: right;
|
|
text-align: right;
|
|
|
|
.footer-social-title {
|
|
color: var(--text-color-light);
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
margin: 0 0 20px 0;
|
|
padding: 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ep-icon-github {
|
|
transition: 0.3s;
|
|
display: inline-block;
|
|
line-height: 32px;
|
|
text-align: center;
|
|
color: #c8d6e8;
|
|
background-color: transparent;
|
|
font-size: 32px;
|
|
vertical-align: middle;
|
|
margin-right: 20px;
|
|
&:hover {
|
|
transform: scale(1.2);
|
|
color: #8d99ab;
|
|
}
|
|
}
|
|
|
|
.doc-icon-gitter {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1140px) {
|
|
.footer {
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.footer-social {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.footer {
|
|
.footer-main {
|
|
margin-bottom: 30px;
|
|
}
|
|
}
|
|
}
|
|
|
|
</style>
|