improved blog post component

This commit is contained in:
Tabby 2025-04-05 19:01:47 +11:00
parent a40d30ea1c
commit dfe3a8c1fa
8 changed files with 272 additions and 80 deletions

28
components/BigButton.vue Normal file
View file

@ -0,0 +1,28 @@
<template>
<a class="big-button" :href="props.href">
<h2>{{props.text}}</h2>
</a>
</template>
<script lang="ts" setup>
const props = defineProps({
href: String,
text: String
});
</script>
<style>
.big-button{
background-color: var(--accent);
color: black;
width: 80%;
text-decoration: none;
}
h2{
margin: 0;
text-align: center;
}
</style>