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

61 lines
1.3 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: var(--spacing-xl);
max-width: 300px;
2020-05-27 03:37:11 +12:00
max-height: 150px;
border-radius: var(--border-radius-m);
border: var(--border-dark);
2020-05-27 03:37:11 +12:00
}
.app-button:hover {
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 {
font-size: var(--font-size-l);
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 {
align-items: center;
display: flex;
background-color: var(--ink);
color: var(--white);
border: 1.5px var(--ink) solid;
width: 100%;
justify-content: center;
padding: 8px 16px;
border-radius: var(--border-radius-s);
2020-08-12 04:02:54 +12:00
font-size: var(--font-size-xs);
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>