docs/.vitepress/theme/components/search/SearchEmptyState.vue

c5d5a5e6d8127763d92162dd39b34a6092451d93
wotaku/docs/.vitepress/theme/components/search/SearchEmptyState.vue

23 lines · 659 bytes

 1<script setup lang="ts">
 2defineProps<{
 3  filterText: string
 4  searchMotionDiv: string | object
 5  emptyStateMotion: Record<string, unknown>
 6}>()
 7</script>
 8
 9<template>
10  <component
11    :is="searchMotionDiv"
12    class="flex flex-1 flex-col justify-center items-center w-full min-h-full gap-2 font-medium text-sm text-center text-gray-500 dark:text-gray-300 m-auto opacity-90"
13    v-bind="emptyStateMotion"
14  >
15    <img
16      class="h-40 object-contain object-center"
17      src="/asset/smolame.png"
18      alt="Smol ame"
19    />
20    <h1 v-if="filterText">Couldn't find anything, try again?</h1>
21    <h1 v-else>Looking for something?</h1>
22  </component>
23</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