Setup some components

This commit is contained in:
2021-09-24 11:03:08 +02:00
parent bdbf511a75
commit bb8a67a82a
6 changed files with 37 additions and 8 deletions

View File

@@ -1,3 +1,14 @@
<script lang="ts">
export let location
</script>
export let location: any
const { name, slug, country, last_updated } = location
</script>
<div class="location" role="listitem">
<a href="/location/{country.slug}/{slug}" rel="prefetch" sveltekit-noscroll>
<img src="//api.housesof.localhost:8055/assets/{country.flag.id}" alt="Flag of {country.name}">
<h3 class="location__name">
{name}
</h3>
</a>
</div>