This commit is contained in:
a-ill
2023-07-10 17:16:02 +03:00
parent d84e9022db
commit b3884131d0
16 changed files with 41 additions and 22 deletions

View File

@@ -36,7 +36,6 @@
<p>{$content.p1}</p>
<h3>{$content.subheading1}</h3>
<map-component id="map" callback={(createMap) => mapCallbackCommunities(createMap,$content,locale)}></map-component>
<h4>{$content.subheading2}</h4>
{#each communities as community}
<div class="location-info">
<p><b>{$content.location}: </b>{$content[community.location[0]]}</p>

View File

@@ -36,7 +36,6 @@
<p>{$content.p2}</p>
<h3>{$content.subheading1}</h3>
<map-component id="map" callback={(createMap) => mapCallbackCoops(createMap,$content,locale)}></map-component>
<h4>{$content.subheading2}</h4>
{#each coops as coop}
<div class="location-info">
<div class="img-general-info">

View File

@@ -37,7 +37,6 @@
<p>{$content.p2}</p>
<h3>{$content.subheading1}</h3>
<map-component id="map" callback={(createMap) => mapCallbackGroups(createMap,$content,locale)}></map-component>
<h4>{$content.subheading2}</h4>
{#each groups as group}
<div class="location-info">
<p><b>{$content.location}: </b>{$content[group.location[0]]}</p>

View File

@@ -16,13 +16,21 @@
let loaded
let content = writable({})
let contentGroups = writable({})
let contentCommunities = writable({})
let contentCoops = writable({})
loadLocaleContent(contentGroups,"groups-component")
loadLocaleContent(contentCommunities,"communities-component")
loadLocaleContent(contentCoops,"cooperatives-component")
let locale = loadLocaleContent(content,"join-us-component",loaded)
function mapCallback(createMap,content,locale) {
function mapCallback(createMap,content) {
let map = createMap([51.505, -0.09],3)
addMarkersGroups(map,content,locale)
addMarkersCoops(map,content,locale)
addMarkersCommunities(map,content,locale)
addMarkersGroups(map,$contentGroups)
addMarkersCommunities(map,$contentCommunities)
addMarkersCoops(map,$contentCoops)
}
onMount(() => {
@@ -61,7 +69,7 @@
<p>{$content.nearYou}</p>
</div>
<p>{$content.noneNear} <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel=noreferrer>{$content.WhatsAppGroup}</a> {$content.or} <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel=noreferrer>{$content.DiscordServer}</a>{$content.helpStart}</p>
<map-component id="map" callback={(createMap) => mapCallback(createMap,$content,locale)}></map-component>
<map-component id="map" callback={(createMap) => mapCallback(createMap,$content)}></map-component>
</div>
</div>
{/if}