v0.9.0
This commit is contained in:
commit
860182098c
277 files changed
+18338
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import Buttons from './Buttons.vue';
|
||||
import { classes, safeUrl } from './support';
|
||||
|
||||
const props = defineProps<{ data: Record<string, any>; style?: Record<string, string> }>();
|
||||
const background = computed(() => (props.data.photo ? { '--mb-hero-image': `url('${safeUrl(props.data.photo)}')` } : {}));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section :class="['mb-block mb-hero', classes(style)]" :style="background">
|
||||
<div class="mb-inner">
|
||||
<p v-if="data.eyebrow" class="mb-eyebrow">{{ data.eyebrow }}</p>
|
||||
<h1>{{ data.title }}</h1>
|
||||
<p v-if="data.roles && data.roles.length" class="mb-roles">{{ data.roles.join(' · ') }}</p>
|
||||
<p v-if="data.intro" class="mb-lead">{{ data.intro }}</p>
|
||||
<Buttons :buttons="data.buttons" />
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
Reference in new issue
Block a user