Skip to content

Commit 38bc8fa

Browse files
committed
make heading optional in hero
1 parent d7150b2 commit 38bc8fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/Hero.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<div class="absolute">
55
<div class="flex flex-col justify-center space-y-4 h-hero">
66
<h2
7+
v-if="heading"
78
class="px-4 text-2xl font-extrabold text-white bg-kaldi sm:text-3xl md:text-4xl"
89
>
910
{{ heading }}
@@ -24,11 +25,11 @@ export default {
2425
props: {
2526
heading: {
2627
type: String,
27-
required: true,
28+
default: null,
2829
},
2930
subheading: {
3031
type: String,
31-
required: true,
32+
default: null,
3233
},
3334
image: {
3435
type: String,

0 commit comments

Comments
 (0)