-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
325 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<div class="works__container"> | ||
<MagicCard | ||
class="works__item" | ||
v-for="(item, index) in data" | ||
:key="index" | ||
@click="() => jumpLink(item.link)" | ||
> | ||
<h4>{{ item.title }}</h4> | ||
<p>{{ item.desc }}</p> | ||
</MagicCard> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { kitStore as zhKitStore } from '../config/zh' | ||
import { kitStore as enKitStore } from '../config/en' | ||
import { computed, toRefs } from 'vue'; | ||
const props = defineProps({ | ||
lang: { | ||
type: String, | ||
default: 'zh' | ||
} | ||
}) | ||
const { lang } = toRefs(props) | ||
const data = computed(() => { | ||
return lang.value === 'zh' ? zhKitStore : enKitStore | ||
}) | ||
const jumpLink = (link?: string) => { | ||
if (link) { | ||
window.open(link, '_blank') | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
@import '@vuepress-reco/tailwindcss-config/lib/client/styles/tailwindcss-base.css'; | ||
.works__container { | ||
@apply grid grid-cols-1 gap-4 max-w-screen-lg mx-auto py-16 px-6; | ||
@apply md:grid-cols-3; | ||
.works__item { | ||
@apply py-4 px-6 cursor-pointer; | ||
h4 { | ||
@apply mt-0 mb-0 pt-0; | ||
} | ||
p { | ||
@apply my-4 text-lighter; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './bulletin' | ||
export * from './navbar' | ||
export * from './series' | ||
export * from './bulletin' | ||
export * from './kitStore' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const kitStore = [ | ||
{ | ||
title: '📖 @revili/revili-kit-demo', | ||
desc: "Official example kit of revili", | ||
link: 'https://github.com/revilijs/revili/tree/main/packages/%40revili/kit-demo' | ||
}, | ||
{ | ||
title: '🎨 revili-kit-vuepress-reco', | ||
desc: "Visual scaffolding of vuepress-theme-reco 2.x", | ||
link: 'https://github.com/vuepress-reco/revili-kit-vuepress-reco' | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './bulletin' | ||
export * from './navbar' | ||
export * from './series' | ||
export * from './bulletin' | ||
export * from './kitStore' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const kitStore = [ | ||
{ | ||
title: '📖 @revili/revili-kit-demo', | ||
desc: "revili 的官方套件案例", | ||
link: 'https://github.com/revilijs/revili/tree/main/packages/%40revili/kit-demo' | ||
}, | ||
{ | ||
title: '🎨 revili-kit-vuepress-reco', | ||
desc: "vuepress-theme-reco 2.x 的可视化搭建平台", | ||
link: 'https://github.com/vuepress-reco/revili-kit-vuepress-reco' | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
.banner-brand-wrapper .hero-content img { | ||
@apply md:w-80 w-64; | ||
} | ||
} | ||
|
||
body { | ||
.works__container { | ||
background-image: radial-gradient(rgba(93, 103, 232, 0.2) 10%, rgba(255, 255, 255, 0) 60%); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Kit Store | ||
--- | ||
|
||
<kit-store lang="en" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.