-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
1 parent
4d95e66
commit f6a7dd8
Showing
5 changed files
with
66 additions
and
3 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,48 @@ | ||
<script setup lang="ts"> | ||
import { useRouter } from 'vitepress' | ||
const router = useRouter() | ||
const list = [ | ||
{ | ||
name: 'Vite Plugin', | ||
logo: '/features/vite-logo.svg', | ||
link: '/guide/vite-plugin', | ||
}, | ||
{ | ||
name: 'Standalone App', | ||
logo: '/features/electron-logo.svg', | ||
link: '/guide/standalone', | ||
}, | ||
{ | ||
name: 'Chrome Extension (Coming Soon)', | ||
logo: '/features/chrome-logo.svg', | ||
link: '/guide/browser-extension', | ||
disabled: true, | ||
}, | ||
] | ||
</script> | ||
|
||
<template> | ||
<ul class="flex flex-col mx-0! px-0!"> | ||
<li | ||
v-for="(item, index) in list" | ||
:key="index" | ||
class="group cursor-pointer list-none rounded pr-5 hover:b-$vp-c-brand-1" | ||
:class="{ | ||
'opacity-50': item.disabled, | ||
'pointer-events-none': item.disabled, | ||
}" | ||
border="~ solid base" flex="~ flex-row items-center" | ||
> | ||
<a | ||
:href="item.link" | ||
class="group text-! h-full w-full flex cursor-pointer list-none items-center rounded pr-5 hover:b-$vp-c-brand-1 text-$vp-c-text-1! decoration-none!" | ||
> | ||
<img :src="item.logo" :alt="item.name" class="mx-2 h-10"> | ||
<p class="group-hover:text-$vp-c-brand-1"> | ||
{{ item.name }} | ||
</p> | ||
</a> | ||
</li> | ||
</ul> | ||
</template> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.