tethys.backend/resources/js/Components/SectionTitle.vue
Arno Kaimbacher a7142f694f
All checks were successful
CI Pipeline / japa-tests (push) Successful in 51s
- prettier formatting
- npm updates
- new SearchMap.vue component
2023-10-31 15:38:43 +01:00

20 lines
446 B
Vue

<script setup>
defineProps({
custom: Boolean,
first: Boolean,
last: Boolean,
});
</script>
<template>
<section
class="py-24 px-6 lg:px-0 lg:max-w-2xl lg:mx-auto text-center"
:class="{ '-mb-6': first, '-mt-6': last, '-my-6': !first && !last }"
>
<slot v-if="custom" />
<h1 v-else class="text-2xl text-gray-500 dark:text-slate-400">
<slot />
</h1>
</section>
</template>