Make AlertMessage a component
This commit is contained in:
parent
a5d9282b77
commit
199955d907
4 changed files with 26 additions and 9 deletions
16
src/components/AlertMessage.vue
Normal file
16
src/components/AlertMessage.vue
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<template>
|
||||
<section class="bg-gun-powder p-3 text-center text-white text-sm font-semibold">
|
||||
<slot></slot>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style type="postcss" scoped>
|
||||
a {
|
||||
@apply underline;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
@apply no-underline
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in a new issue