2020-05-27 03:37:11 +12:00
|
|
|
<script>
|
|
|
|
import Button from "components/common/Button.svelte"
|
2020-08-04 02:26:28 +12:00
|
|
|
export let name, _id
|
2020-05-27 03:37:11 +12:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="apps-card">
|
|
|
|
<h3 class="app-title">{name}</h3>
|
|
|
|
<div class="card-footer">
|
2020-07-13 06:19:12 +12:00
|
|
|
<a href={`/_builder/${_id}`} class="app-button">Open {name}</a>
|
2020-05-27 03:37:11 +12:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-29 06:42:33 +12:00
|
|
|
|
2020-05-27 03:37:11 +12:00
|
|
|
<style>
|
|
|
|
.apps-card {
|
|
|
|
background-color: var(--white);
|
2020-08-12 03:57:15 +12:00
|
|
|
padding: var(--spacing-xl);
|
|
|
|
max-width: 300px;
|
2020-05-27 03:37:11 +12:00
|
|
|
max-height: 150px;
|
2020-08-12 03:57:15 +12:00
|
|
|
border-radius: var(--border-radius-m);
|
|
|
|
border: var(--border-dark);
|
2020-05-27 03:37:11 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-button:hover {
|
2020-08-12 03:57:15 +12:00
|
|
|
background-color: var(--white);
|
|
|
|
color: var(--black);
|
2020-05-27 03:37:11 +12:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-05-29 06:42:33 +12:00
|
|
|
|
2020-05-27 21:44:15 +12:00
|
|
|
.app-title {
|
2020-08-12 03:57:15 +12:00
|
|
|
font-size: var(--font-size-l);
|
2020-06-23 19:19:16 +12:00
|
|
|
font-weight: 600;
|
2020-05-27 03:37:11 +12:00
|
|
|
color: var(--ink);
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-footer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: baseline;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-button {
|
2020-06-04 22:56:01 +12:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2020-08-12 03:57:15 +12:00
|
|
|
background-color: var(--ink);
|
|
|
|
color: var(--white);
|
|
|
|
border: 1.5px var(--ink) solid;
|
2020-06-04 22:56:01 +12:00
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
2020-08-12 03:57:15 +12:00
|
|
|
padding: 8px 16px;
|
|
|
|
border-radius: var(--border-radius-s);
|
2020-08-12 04:02:54 +12:00
|
|
|
font-size: var(--font-size-xs);
|
2020-08-12 03:57:15 +12:00
|
|
|
font-weight: 500;
|
2020-05-27 03:37:11 +12:00
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.2s;
|
|
|
|
box-sizing: border-box;
|
2020-08-12 04:02:54 +12:00
|
|
|
font-family: var(--font-sans);
|
2020-05-27 03:37:11 +12:00
|
|
|
}
|
2020-05-29 06:42:33 +12:00
|
|
|
</style>
|