Code optimization and fixes

This commit is contained in:
2020-02-14 12:37:35 +01:00
parent 29f6e7e645
commit 450de171e6
12 changed files with 61 additions and 38 deletions

View File

@@ -2,11 +2,13 @@
export let name
export let slug
export let country
const src = country.flag.full_url
</script>
<div class="location" data-groups='["{country.continent.id}"]'>
<a href="/location/{country.slug}/{slug}">
<img src={country.flag.full_url} alt={'Flag of ' + country.name} />
<img {src} alt={'Flag of ' + country.name} />
<h3 class="location__city">{name}</h3>
<p class="location__country style-caps">{country.name}</p>
</a>