feat: add tag navigation

This commit is contained in:
2022-08-10 16:31:25 -04:00
parent 3a40c63d5e
commit ff1fc96a5c
17 changed files with 373 additions and 127 deletions

View File

@@ -1,11 +1,17 @@
<script setup lang="ts">
const { dest } = defineProps<{ dest: string }>();
const { dest, highlight = false } = defineProps<{
dest: string;
highlight?: boolean;
}>();
</script>
<template>
<a :href="dest">
<div
class="inline-block text-xs rounded-full py-1 px-2 mt-1 mr-1 bg-gray-300 dark:bg-gray-500 transition"
:class="[
'inline-block text-xs rounded-full py-1 px-2 mt-1 mr-1 bg-gray-300 dark:bg-gray-500 transition',
{ 'bg-yellow-200 dark:bg-yellow-700 shadow-lg': highlight },
]"
>
<slot />
</div>