2022-02-08 04:04:45 +00:00
|
|
|
<template>
|
2022-02-12 06:23:07 +00:00
|
|
|
<button :class="{danger: danger, primary: primary}">{{label}}</button>
|
2022-02-08 04:04:45 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
label: String,
|
|
|
|
danger: Boolean,
|
2022-02-12 06:23:07 +00:00
|
|
|
primary: Boolean,
|
2022-02-08 04:04:45 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
button {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.2s;
|
|
|
|
padding: 10px 18px;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: 500;
|
2022-02-12 06:23:07 +00:00
|
|
|
border: none;
|
|
|
|
background: #21242B;
|
|
|
|
box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
|
2022-02-08 04:04:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
button:hover {
|
|
|
|
transition: all 0.2s;
|
2022-02-12 06:23:07 +00:00
|
|
|
box-shadow: rgba(0, 0, 0, 0.42) 0px 1px 3px, rgba(0, 0, 0, 0.64) 0px 1px 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.danger {
|
|
|
|
background: #41141B;
|
2022-02-08 04:04:45 +00:00
|
|
|
}
|
|
|
|
|
2022-02-12 06:23:07 +00:00
|
|
|
|
2022-02-08 04:04:45 +00:00
|
|
|
button.danger:hover {
|
2022-02-12 06:23:07 +00:00
|
|
|
background: #61141B;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.primary {
|
|
|
|
background: #21244B;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
button.primary:hover {
|
|
|
|
background: #21246B;
|
2022-02-08 04:04:45 +00:00
|
|
|
}
|
|
|
|
</style>
|