2020-06-15 17:41:31 +02:00
|
|
|
<script>
|
|
|
|
export let title
|
|
|
|
export let icon
|
|
|
|
|
|
|
|
export let primary
|
|
|
|
export let secondary
|
|
|
|
export let tertiary
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div on:click class:primary class:secondary class:tertiary>
|
|
|
|
<i class={icon} />
|
|
|
|
<span>{title}</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
2020-06-18 18:17:18 +02:00
|
|
|
height: 80px;
|
2020-06-15 17:41:31 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
color: var(--ink);
|
2020-06-17 17:51:10 +02:00
|
|
|
font-weight: 500;
|
|
|
|
padding: 15px;
|
2020-06-15 17:41:31 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
2020-06-17 17:51:10 +02:00
|
|
|
transition: 0.3s transform;
|
2020-06-18 18:17:18 +02:00
|
|
|
background: var(--light-grey);
|
2020-06-17 17:51:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 30px;
|
2020-06-15 17:41:31 +02:00
|
|
|
}
|
2020-06-18 18:55:46 +02:00
|
|
|
|
2020-06-15 17:41:31 +02:00
|
|
|
span {
|
2020-06-18 18:17:18 +02:00
|
|
|
font-size: 14px;
|
|
|
|
text-align: center;
|
2020-06-15 17:41:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
div:hover {
|
|
|
|
cursor: pointer;
|
2020-06-17 17:51:10 +02:00
|
|
|
transform: scale(1.1);
|
2020-06-15 17:41:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.primary {
|
|
|
|
background: var(--ink);
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary {
|
|
|
|
background: var(--secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tertiary {
|
|
|
|
background: var(--white);
|
|
|
|
}
|
|
|
|
</style>
|