Adds a url to the templates

This commit is contained in:
Maurits Lourens 2022-01-28 16:06:46 +01:00
parent d8ab715267
commit 24b2fc65a0
1 changed files with 21 additions and 0 deletions

View File

@ -337,6 +337,14 @@
}}
class="template-card"
>
<a
href={item.url}
target="_blank"
class="external-link"
on:click|stopPropagation
>
<Icon name="LinkOut" size="S" />
</a>
<div class="card-body">
<div style="color: {item.background}" class="iconAlign">
<svg
@ -518,6 +526,7 @@
border: 1px solid var(--spectrum-global-color-gray-300);
cursor: pointer;
display: flex;
position: relative;
}
.template-card:hover {
@ -528,6 +537,18 @@
align-items: center;
padding: 12px;
}
.external-link {
position: absolute;
top: 5px;
right: 5px;
color: var(--spectrum-global-color-gray-300);
z-index: 99;
}
.external-link:hover {
color: var(--spectrum-global-color-gray-500);
}
.iconAlign {
padding: 0 0 0 var(--spacing-m);
display: inline-block;