2020-06-16 03:41:31 +12: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-19 04:17:18 +12:00
|
|
|
height: 80px;
|
2020-06-16 03:41:31 +12:00
|
|
|
border-radius: 3px;
|
|
|
|
color: var(--ink);
|
2020-06-18 03:51:10 +12:00
|
|
|
font-weight: 500;
|
|
|
|
padding: 15px;
|
2020-06-16 03:41:31 +12:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
2020-06-18 03:51:10 +12:00
|
|
|
transition: 0.3s transform;
|
2020-06-19 04:17:18 +12:00
|
|
|
background: var(--light-grey);
|
2020-06-18 03:51:10 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 30px;
|
2020-06-16 03:41:31 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
2020-06-19 04:17:18 +12:00
|
|
|
font-size: 14px;
|
|
|
|
text-align: center;
|
2020-06-16 03:41:31 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
div:hover {
|
|
|
|
cursor: pointer;
|
2020-06-18 03:51:10 +12:00
|
|
|
transform: scale(1.1);
|
2020-06-16 03:41:31 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
.primary {
|
|
|
|
background: var(--ink);
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary {
|
|
|
|
background: var(--secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tertiary {
|
|
|
|
background: var(--white);
|
|
|
|
}
|
2020-06-19 04:17:18 +12:00
|
|
|
|
2020-06-16 03:41:31 +12:00
|
|
|
</style>
|