docs/.vitepress/theme/components/SidebarCard.vue

e3f0e408109f5720cc95f2c1b72b01dace918537
wotaku/docs/.vitepress/theme/components/SidebarCard.vue
Memenami New Icon key art638f7136db 8 months ago

41 lines · 1514 bytes

 1<!--
 2  All Rights Reserved
 3
 4  Copyright (c) 2025 taskylizard
 5
 6  All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
 7-->
 8<script setup lang="ts">
 9import { ref } from 'vue'
10
11import LegendModal from './LegendModal.vue'
12
13const isModalOpen = ref(false)
14</script>
15
16<template>
17  <div class="bg-$vp-c-bg hover:bg-$vp-c-bg/40 border-$vp-c-default-soft transition-all duration-500 mt-2 overflow-hidden hover:-translate-y-1 hover:shadow-lg rounded-lg border-2 border-solid relative z-0 max-md:bg-white/85 max-md:dark:bg-neutral-800/85 max-md:border max-md:border-neutral-200 max-md:dark:border-neutral-700">
18    <div class="h-20 w-full overflow-hidden">
19      <img
20        src="/soemy.webp"
21        alt="Icon Key Banner"
22        class="w-full h-full object-cover"
23      />
24    </div>
25    <div class="p-5">
26      <button class="w-full text-left" @click="isModalOpen = true">
27        <div class="flex items-center gap-2">
28          <div class="i-lucide-badge-info text-$vp-c-text-1" />
29          <div class="text-$vp-c-text-1 lh-relaxed text-sm font-bold">
30            Icon key
31          </div>
32        </div>
33        <div class="text-$vp-c-text-2 text-sm mt-2">
34          Reference guide for all symbols used across the index.
35        </div>
36      </button>
37
38      <LegendModal :is-open="isModalOpen" @close="isModalOpen = false" />
39    </div>
40  </div>
41</template>
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form