This commit is contained in:
a-ill
2023-07-13 14:32:49 +03:00
parent c875214dc5
commit 56a57059c1
58 changed files with 1756 additions and 317 deletions

View File

@@ -12,7 +12,7 @@
// Main code
let grid
let gridWidth
let loaded
let loaded = writable(0)
let content = writable({})
function changeWidth(locale) {
@@ -24,6 +24,7 @@
}
}
loadLocaleContent(content,"countries",loaded)
let locale = loadLocaleContent(content,"landing-component",loaded,changeWidth)
changeWidth(locale)
@@ -32,8 +33,8 @@
})
</script>
{#key loaded}
{#if Object.keys($content).length!=0}
{#key $loaded}
{#if $loaded==2}
<div id="container">
<picture>
<source srcset="/img/crowd.webp">
@@ -121,6 +122,7 @@
grid-template-columns: var(--grid-width);
grid-template-rows: var(--grid-width);
grid-gap: 4rem;
row-gap: 3rem;
margin-top: 2rem;
}