Update
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
let locale = loadLocaleContent(content,"communities-component",loaded)
|
||||
|
||||
function mapCallbackCommunities(createMap,content,locale) {
|
||||
function mapCallbackCommunities(createMap,content) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
addMarkersCommunities(map,content,locale)
|
||||
addMarkersCommunities(map,content)
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
@@ -39,10 +39,10 @@
|
||||
<h4>{$content.subheading2}</h4>
|
||||
{#each communities as community}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{community.location[0][locale]}</p>
|
||||
<p><b>{$content.status}: </b>{community.status[locale]}</p>
|
||||
<p><b>{$content.location}: </b>{$content[community.location[0]]}</p>
|
||||
<p><b>{$content.status}: </b>{$content[community.status]}</p>
|
||||
<p><b>{$content.members}: </b>{community.members}</p>
|
||||
<p><b>{$content.contact}: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{community.contact[1][locale]}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{$content[community.contact[1]]}</a></p>
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
|
@@ -16,9 +16,9 @@
|
||||
|
||||
let locale = loadLocaleContent(content,"cooperatives-component",loaded)
|
||||
|
||||
function mapCallbackCoops(createMap,content,locale) {
|
||||
function mapCallbackCoops(createMap,content) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
addMarkersCoops(map,content,locale)
|
||||
addMarkersCoops(map,content)
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
@@ -42,12 +42,12 @@
|
||||
<div class="img-general-info">
|
||||
<div>
|
||||
<p><b>{$content.name}: </b>{coop.name}</p>
|
||||
<p><b>{$content.location}: </b>{coop.location[0][locale]}</p>
|
||||
<p><b>{$content.market}: </b>{coop.market[locale]}</p>
|
||||
<p><b>{$content.location}: </b>{$content[coop.location[0]]}</p>
|
||||
<p><b>{$content.market}: </b>{$content[coop.market]}</p>
|
||||
<p><b>{$content.workers}: </b>{coop.workers}</p>
|
||||
<p><b>{$content.status}: </b>{coop.status[locale]}</p>
|
||||
<p><b>{$content.status}: </b>{$content[coop.status]}</p>
|
||||
<p><b>{$content.website}: </b><a href={"https://www."+coop.website} target="_blank" rel=noreferrer>{coop.website}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{coop.contact[1][locale]}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{$content[coop.contact[1]]}</a></p>
|
||||
</div>
|
||||
<picture>
|
||||
<source srcset={"/img/coops/"+coop.logo+".webp"}>
|
||||
@@ -55,7 +55,7 @@
|
||||
<img class="coop-logo" alt="logo">
|
||||
</picture>
|
||||
</div>
|
||||
<p><b>{$content.description}: </b>{coop.description[locale]}</p>
|
||||
<p><b>{$content.description}: </b>{$content[coop.description]}</p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
@@ -16,9 +16,9 @@
|
||||
|
||||
let locale = loadLocaleContent(content,"groups-component",loaded)
|
||||
|
||||
function mapCallbackGroups(createMap,content,locale) {
|
||||
function mapCallbackGroups(createMap,content) {
|
||||
let map = createMap([51.505, -0.09],3)
|
||||
addMarkersGroups(map,content,locale)
|
||||
addMarkersGroups(map,content)
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
@@ -40,9 +40,9 @@
|
||||
<h4>{$content.subheading2}</h4>
|
||||
{#each groups as group}
|
||||
<div class="location-info">
|
||||
<p><b>{$content.location}: </b>{group.location[0][locale]}</p>
|
||||
<p><b>{$content.location}: </b>{$content[group.location[0]]}</p>
|
||||
<p><b>{$content.members}: </b>{group.members}</p>
|
||||
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{group.contact[1][locale]}</a></p>
|
||||
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{$content[group.contact[1]]}</a></p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store';
|
||||
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||
//import { communities, addMarkersCommunities } from '/js/communities.js'
|
||||
import { partners } from '/js/partners.js'
|
||||
|
||||
// Import components
|
||||
import "/js/components/map-component.js"
|
||||
@@ -16,22 +16,6 @@
|
||||
|
||||
let locale = loadLocaleContent(content,"partners-component",loaded)
|
||||
|
||||
let partners = [
|
||||
{
|
||||
name: "Gaia's Fall",
|
||||
type: {
|
||||
en: "a place to discuss and organize",
|
||||
ru: "место для общения и организации"
|
||||
},
|
||||
link: "https://discord.libsoc.org/invite/",
|
||||
description: {
|
||||
en: "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together.",
|
||||
ru: "Gaia's Fall — это сервер, который продвигает идеалы соларпанка, защиту окружающей среды, анархизм и антикапитализм. Мы поощряем гражданские дебаты, обсуждение теорий и возможностей, а также создание сообществ, сосредоточенных на формировании лучшего мира. Это наш официальный сервер Discord, на котором мы организуемся и работаем вместе"
|
||||
},
|
||||
logo: "gaias_fall"
|
||||
}
|
||||
]
|
||||
|
||||
onMount(() => {
|
||||
|
||||
})
|
||||
@@ -57,11 +41,11 @@
|
||||
</picture>
|
||||
<div>
|
||||
<p><b>{$content.name}: </b>{partner.name}</p>
|
||||
<p><b>{$content.type}: </b>{partner.type[locale]}</p>
|
||||
<p><b>{$content.type}: </b>{$content[partner.type]}</p>
|
||||
<p><b>{$content.link}: </b><a href={partner.link} target=;_blank; rel=noreferrer>{partner.link}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<p><b>{$content.description}: </b>{partner.description[locale]}</p>
|
||||
<p><b>{$content.description}: </b>{$content[partner.description]}</p>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user