refactor: update Button to always use a size, determine tag from url

This commit is contained in:
2023-06-11 21:28:47 +02:00
parent 1360b095be
commit 9c329b5ff7
10 changed files with 37 additions and 25 deletions

View File

@@ -258,12 +258,12 @@
</div>
<div class="ctas">
<Button url="/locations" text="Change location" class="shadow-small">
<Button size="medium" url="/locations" text="Change location" class="shadow-small">
<IconEarth />
</Button>
{#if location.has_poster}
<Button url="/shop/poster-{location.slug}" text="Buy the poster" color="pinklight" class="shadow-small">
<Button size="medium" url="/shop/poster-{location.slug}" text="Buy the poster" color="pinklight" class="shadow-small">
<!-- <IconEarth /> -->
</Button>
{/if}