Code optimization and fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user