fix: making image optional for home page sections
This commit is contained in:
parent
297947266d
commit
65487d98c7
1 changed files with 4 additions and 4 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
<h2 class="title is-4">{{ title }}</h2>
|
<h2 class="title is-4">{{ title }}</h2>
|
||||||
<p class="has-text-white">{{ text }}</p>
|
<p class="has-text-white">{{ text }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-one-quarter">
|
<div class="column is-one-quarter" v-if="image">
|
||||||
<figure class="image">
|
<figure class="image">
|
||||||
<img :src="image" :alt="alt" />
|
<img :src="image" :alt="alt" />
|
||||||
</figure>
|
</figure>
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="column is-one-quarter">
|
<div class="column is-one-quarter" v-if="image">
|
||||||
<figure class="image">
|
<figure class="image">
|
||||||
<img :src="image" :alt="alt" />
|
<img :src="image" :alt="alt" />
|
||||||
</figure>
|
</figure>
|
||||||
|
|
@ -41,8 +41,8 @@
|
||||||
defineProps({
|
defineProps({
|
||||||
title: String,
|
title: String,
|
||||||
text: String,
|
text: String,
|
||||||
image: String,
|
image: { type: String, required: false },
|
||||||
alt: String,
|
alt: { type: String, required: false },
|
||||||
reverse: Boolean,
|
reverse: Boolean,
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue