dml_frontend/components/CallToActionBox.vue
2025-06-03 09:18:45 +02:00

33 lines
726 B
Vue

<template>
<div class="ctaBox">
<h3>{{ headline }}</h3>
<p>{{ text }}</p>
<button class="pinkBtn mt-1" role="button" @click.prevent="toggleContactBubble">
{{ buttonText }}
</button>
</div>
</template>
<script setup>
import { useMainStore } from '@/stores/main'
const mainStore = useMainStore()
const toggleContactBubble = () => {
mainStore.toggleContactBubble()
}
const props = defineProps({
headline: { type: String, required: true },
text: { type: String, required: true },
buttonText: { type: String, required: true }
})
</script>
<style scoped lang="sass">
.ctaBox
margin: 5vh 10%
h3
font-size: 1.6rem
</style>