Skip to content

Commit

Permalink
Doc/figma (#13804)
Browse files Browse the repository at this point in the history
* docs: update resource page

* docs: update

* docs: update

* docs: update
  • Loading branch information
kooriookami committed Aug 3, 2023
1 parent aa74616 commit 3ba7bab
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/.vitepress/crowdin/en-US/pages/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
"sketch": "Sketch Template",
"sketchIntro": "Newly designed Sketch component library in 2022 with full components for Element Plus to improve design efficiency while keeping a unified visual style.",
"figma": "Figma Template",
"figmaIntro": "Newly designed Figma component library in 2022 with new features such as Auto-layout and Variants."
"figmaIntro": "Newly designed Figma component library in 2022 with new features such as Auto-layout and Variants.",
"figmaVariables": "Figma Variables",
"figmaVariablesIntro": "Components all use variables to quickly switch between dark and light modes."
}
27 changes: 23 additions & 4 deletions docs/.vitepress/vitepress/components/globals/resource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const onClick = (item: string) => {
<h1>{{ resourceLang.title }}</h1>
<p>{{ resourceLang.lineOne }}</p>
<p v-html="resourceLang.lineTwo" />
<div class="flex flex-wrap justify-center mt-32px">
<div class="inline-flex w-full md:w-1/3" p="2" pl-0>
<div class="flex flex-wrap justify-center mt-32px" m="-2">
<div class="inline-flex w-full md:w-1/2 lg:w-1/3 3xl:w-1/4" p="2">
<el-card class="card" shadow="hover">
<axure-components-svg w="30" alt="axure" />
<h3>{{ resourceLang.axure }}</h3>
Expand All @@ -53,7 +53,7 @@ const onClick = (item: string) => {
</a>
</el-card>
</div>
<div class="inline-flex w-full md:w-1/3" p="2">
<div class="inline-flex w-full md:w-1/2 lg:w-1/3 3xl:w-1/4" p="2">
<el-card class="card" shadow="hover">
<sketch-template-svg w="30" alt="Sketch" />
<h3>{{ resourceLang.sketch }}</h3>
Expand All @@ -69,7 +69,7 @@ const onClick = (item: string) => {
</a>
</el-card>
</div>
<div class="inline-flex w-full md:w-1/3" p="2">
<div class="inline-flex w-full md:w-1/2 lg:w-1/3 3xl:w-1/4" p="2">
<el-card class="card" shadow="hover">
<figma-template-svg w="30" alt="Figma" />
<h3>{{ resourceLang.figma }}</h3>
Expand All @@ -85,6 +85,24 @@ const onClick = (item: string) => {
</a>
</el-card>
</div>
<div class="inline-flex w-full md:w-1/2 lg:w-1/3 3xl:w-1/4" p="2">
<el-card class="card" shadow="hover">
<figma-variables-svg w="30" alt="Figma" />
<h3>{{ resourceLang.figmaVariables }}</h3>
<p>
{{ resourceLang.figmaVariablesIntro }}
</p>
<a
href="https://www.figma.com/community/file/1256091634199852065"
target="_blank"
@click="onClick('figma')"
>
<el-button type="primary">{{ resourceLang.download }}</el-button>
</a>
</el-card>
</div>
<div class="inline-flex w-full md:w-1/3" p="2" />
<div class="inline-flex w-full md:w-1/3" p="2" />
</div>
</div>
</template>
Expand All @@ -109,6 +127,7 @@ const onClick = (item: string) => {
}
.card {
width: 100%;
text-align: center;
padding: 32px 0;
Expand Down

0 comments on commit 3ba7bab

Please sign in to comment.