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-07-13 06:19:12 +12:00
|
|
|
padding: 20px 20px 20px 20px;
|
2020-05-27 03:37:11 +12:00
|
|
|
max-width: 400px;
|
|
|
|
max-height: 150px;
|
|
|
|
border-radius: 5px;
|
2020-06-23 19:19:16 +12:00
|
|
|
border: 1px solid var(--grey-4);
|
2020-07-13 06:19:12 +12:00
|
|
|
font-family: Inter;
|
2020-05-27 03:37:11 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-button:hover {
|
2020-06-23 19:19:16 +12:00
|
|
|
background-color: var(--grey-1);
|
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-05-27 03:37:11 +12:00
|
|
|
font-size: 18px;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-desc {
|
2020-06-23 19:19:16 +12:00
|
|
|
color: var(--grey-7);
|
2020-07-13 06:19:12 +12:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 1;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-05-27 03:37:11 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
.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-05-27 03:37:11 +12:00
|
|
|
background-color: var(--white);
|
|
|
|
color: var(--ink);
|
2020-06-04 22:56:01 +12:00
|
|
|
width: 100%;
|
|
|
|
justify-content: center;
|
2020-05-27 03:37:11 +12:00
|
|
|
padding: 12px 20px;
|
|
|
|
border-radius: 5px;
|
2020-06-23 19:19:16 +12:00
|
|
|
border: 1px var(--grey-2) solid;
|
2020-05-27 03:37:11 +12:00
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.2s;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2020-05-29 06:42:33 +12:00
|
|
|
</style>
|