Initial commit WIP
This commit is contained in:
17
app/components/content/BlogImage.vue
Normal file
17
app/components/content/BlogImage.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<script setup lang="ts">
|
||||
const { src, alt } = defineProps<{
|
||||
src: string;
|
||||
alt?: string;
|
||||
}>();
|
||||
</script>
|
||||
<template>
|
||||
<NuxtImg
|
||||
v-if="src"
|
||||
placeholder
|
||||
sizes="sm:100vw md:70vw"
|
||||
class="w-full"
|
||||
:src="src"
|
||||
:alt="alt"
|
||||
loading="lazy"
|
||||
/>
|
||||
</template>
|
Reference in New Issue
Block a user