improved blog post component
This commit is contained in:
parent
a40d30ea1c
commit
dfe3a8c1fa
8 changed files with 272 additions and 80 deletions
28
components/BigButton.vue
Normal file
28
components/BigButton.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue