-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathHero.vue
46 lines (44 loc) · 888 Bytes
/
Hero.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<div class="flex justify-center h-hero">
<img :src="image" class="object-cover w-screen" />
<div class="absolute">
<div class="flex flex-col justify-center space-y-4 h-hero">
<h2
v-if="heading"
class="px-4 text-2xl font-extrabold text-white bg-kaldi sm:text-3xl md:text-4xl"
>
{{ heading }}
</h2>
<h3
v-if="subheading"
class="px-4 text-lg text-white bg-kaldi sm:text-xl md:text-2xl"
>
{{ subheading }}
</h3>
</div>
</div>
</div>
</template>
<script>
export default {
props: {
heading: {
type: String,
default: null,
},
subheading: {
type: String,
default: null,
},
image: {
type: String,
required: true,
},
},
}
</script>
<style scoped>
.h-hero {
height: 25rem;
}
</style>