1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
budibase/packages/builder/src/components/start/AppCard.svelte

69 lines
1.4 KiB
Svelte
Raw Normal View History

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">
<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);
padding: 20px 20px 20px 20px;
2020-05-27 03:37:11 +12:00
max-width: 400px;
max-height: 150px;
border-radius: 5px;
border: 1px solid var(--grey-4);
font-family: Inter;
2020-05-27 03:37:11 +12:00
}
.app-button:hover {
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;
font-weight: 600;
2020-05-27 03:37:11 +12:00
color: var(--ink);
text-transform: capitalize;
}
.app-desc {
color: var(--grey-7);
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 {
align-items: center;
display: flex;
2020-05-27 03:37:11 +12:00
background-color: var(--white);
color: var(--ink);
width: 100%;
justify-content: center;
2020-05-27 03:37:11 +12:00
padding: 12px 20px;
border-radius: 5px;
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>