fix: making image optional for home page sections

This commit is contained in:
jezzahehn 2025-05-22 23:06:32 -04:00
parent 297947266d
commit 65487d98c7

View file

@ -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>