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>
|
||||
<p class="has-text-white">{{ text }}</p>
|
||||
</div>
|
||||
<div class="column is-one-quarter">
|
||||
<div class="column is-one-quarter" v-if="image">
|
||||
<figure class="image">
|
||||
<img :src="image" :alt="alt" />
|
||||
</figure>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
</template>
|
||||
|
||||
<template v-else>
|
||||
<div class="column is-one-quarter">
|
||||
<div class="column is-one-quarter" v-if="image">
|
||||
<figure class="image">
|
||||
<img :src="image" :alt="alt" />
|
||||
</figure>
|
||||
|
|
@ -41,8 +41,8 @@
|
|||
defineProps({
|
||||
title: String,
|
||||
text: String,
|
||||
image: String,
|
||||
alt: String,
|
||||
image: { type: String, required: false },
|
||||
alt: { type: String, required: false },
|
||||
reverse: Boolean,
|
||||
})
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue