Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 13x 13x 13x | <template>
<div>
<!-- eslint-disable vue/no-v-html -- sanitised by the articles layer's body mapper -->
<div class="hl-prose max-w-measure" v-html="lead" />
<figure v-if="image" class="my-10 max-w-measure md:my-11">
<NuxtImg
:src="image.url"
:alt="image.alt"
:width="image.width"
:height="imageHeight"
fit="cover"
sizes="sm:100vw md:100vw lg:680px"
class="aspect-video w-full rounded-xs object-cover"
/>
</figure>
<div class="hl-prose mt-[1.25em] max-w-measure" v-html="html" />
<!-- eslint-enable vue/no-v-html -->
</div>
</template>
<script setup lang="ts">
import type { Asset } from "@joinery/content";
interface Props {
lead: string;
html: string;
image?: Asset;
}
const props = defineProps<Props>();
const imageHeight = computed(() => coverHeight(props.image?.width, 16 / 9));
</script>
|