vue-website/components/BigButton.vue
2025-05-02 21:31:24 +10:00

39 lines
No EOL
606 B
Vue

<template>
<div class="button-box">
<NuxtLink class="big-button" :to="props.href">
<h2>{{props.text}}</h2>
</NuxtLink >
</div>
</template>
<script lang="ts" setup>
const props = defineProps({
href: String,
text: String
});
</script>
<style scoped>
.big-button{
background-color: var(--accent);
color: black;
width: 80%;
text-decoration: none;
display: block;
margin-left: auto;
margin-right: auto;
/* justify-self: center; */
}
.button-box{
width: 100%;
}
h2{
margin: 0;
text-align: center;
}
</style>