21 lines
661 B
Vue
21 lines
661 B
Vue
<script setup lang="ts">
|
|
import { classes, safeUrl } from './support';
|
|
|
|
defineProps<{ data: Record<string, any>; style?: Record<string, string> }>();
|
|
</script>
|
|
|
|
<template>
|
|
<section :class="['mb-block mb-before-after', classes(style)]">
|
|
<div class="mb-inner mb-split">
|
|
<figure>
|
|
<img :src="safeUrl(data.before)" alt="Before" loading="lazy" />
|
|
<figcaption>Before</figcaption>
|
|
</figure>
|
|
<figure>
|
|
<img :src="safeUrl(data.after)" alt="After" loading="lazy" />
|
|
<figcaption>After</figcaption>
|
|
</figure>
|
|
</div>
|
|
</section>
|
|
</template>
|