Clean up styles, fix and improve the blog post card layout

This commit is contained in:
2024-06-18 21:48:50 +03:00
parent a7f2d527dc
commit 830c34855c
7 changed files with 475 additions and 568 deletions
-43
View File
@@ -1,43 +0,0 @@
<script setup lang="ts">
import type { PropType } from 'vue'
type ModeOptions = 'in-out' | 'out-in' | 'default' | undefined
const props = defineProps({
fallback: {
type: String,
default: '',
},
appear: {
type: Boolean,
default: false,
},
mode: {
type: String as PropType<ModeOptions>,
default: 'out-in',
},
enter: {
type: String,
default: 'animate__fadeIn',
},
leave: {
type: String,
default: 'animate__fadeOut',
},
})
</script>
<template>
<ClientOnly>
<template #fallback>{{ props.fallback }}</template>
<Transition
:appear="props.appear"
:mode="props.mode"
:enter-active-class="`animate__animated ${props.enter}`"
:leave-active-class="`animate__animated ${props.leave}`"
>
<slot />
</Transition>
</ClientOnly>
</template>