This commit is contained in:
a-ill
2023-07-09 15:25:09 +03:00
parent f786fd75e0
commit 6733ee6b94
46 changed files with 7830 additions and 321 deletions

View File

@@ -1,39 +1,28 @@
export let communities = [
{
location: [{
en: "Estonia, Kohtla-Järve",
ru: "Эстония, Кохтла-Ярве"
},
[59.409521829709504, 27.288415912535914]],
status: {
en: "forming",
ru: "формируется"
},
location: ["EstoniaKohtlaJarve",[59.409521829709504, 27.288415912535914]],
status: "forming",
members: 2,
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}]
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
}
]
export function addMarkersCommunities(map,content,locale) {
export function addMarkersCommunities(map,content) {
for (let g of communities) {
let coordinates
let text = ""
for (let field in g) {
let fieldText = content[field] + ": "
if (field=="contact") {
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]]+ "</a>"
}
else if (field=="location") {
text += fieldText + g[field][0][locale[0]] + "<br>"
text += fieldText + content[g[field][0]]+ "<br>"
coordinates = g[field][1]
}
else if (field=="status") {
text += fieldText + g[field][locale[0]] + "<br>"
text += fieldText + content[g[field]] + "<br>"
}
else {
text += fieldText + g[field] + "<br>"

View File

@@ -2,64 +2,28 @@ export let coops = [
{
logo: "chiron_logo",
name: "Chiron Health",
location: [
{
en: "Estonia, Kohtla-Järve",
ru: "Эстония, Кохтла-Ярве"
},
[59.40338782864918, 27.286240058760324]],
market: {
en: "wellness and health",
ru: "благополучие и здоровье"
},
location: ["EstoniaKohtlaJarve",[59.40338782864918, 27.286240058760324]],
market: "wellnessAndHealth",
workers: 2,
status: {
en: "launch in 2 months",
ru: "запуск через 2 месяца"
},
status: "inDevelopment",
website: "chrn.health",
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}],
description: {
en: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
ru: "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия"
}
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"],
description: "descriptionChironHealth"
},
{
logo: "kuusk_logo",
name: "Kuusk",
location: [
{
en: "Estonia, Kohtla-Järve",
ru: "Эстония, Кохтла-Ярве"
},
[59.405466538976185, 27.289104862336302]],
market: {
en: "herbal teas",
ru: "травяные чаи"
},
location: ["EstoniaKohtlaJarve",[59.405466538976185, 27.289104862336302]],
market: "herbalTeas",
workers: 1,
status: {
en: "launch in TBD months",
ru: "запуск через X месяцев"
},
status: "inDevelopment",
website: "-",
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}],
description: {
en: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
ru: "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
}
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"],
description: "kuuskDescription"
}
]
export function addMarkersCoops(map,content,locale) {
export function addMarkersCoops(map,content) {
for (let g of coops) {
let coordinates
let text = ""
@@ -72,17 +36,17 @@ export function addMarkersCoops(map,content,locale) {
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
}
else if (field=="contact") {
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>" + "<br>"
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]] + "</a>" + "<br>"
}
else if (field=="website") {
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
}
else if (field=="location") {
text += fieldText + g[field][0][locale[0]] + "<br>"
text += fieldText + content[g[field][0]] + "<br>"
coordinates = g[field][1]
}
else if (field=="market" || field=="status" || field=="description") {
text += fieldText + g[field][locale[0]] + "<br>"
text += fieldText + content[g[field]] + "<br>"
}
else {
text += fieldText + g[field] + "<br>"

View File

@@ -1,87 +1,42 @@
export let groups = [
{
location: [
{
en: "Denmark, Copenhagen",
ru: "Дания, Копенгаген"
},
[55.6840661150132, 12.557133959514688]],
location: ["DenmarkCopenhagen",[55.6840661150132, 12.557133959514688]],
members: 1,
contact: ["https://discord.gg/xAPZmyr8B6",
{
en: "Discord invite link",
ru: "Discord ссылка"
}]
contact: ["https://discord.gg/xAPZmyr8B6","DiscordInviteLink"]
},
{
location: [
{
en: "Denmark, Kolding",
ru: "Дания, Колдинг"
},
[55.49261908652738, 9.470268969851743]],
location: ["DenmarkKolding", [55.49261908652738, 9.470268969851743]],
members: 1,
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}]
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
},
{
location: [
{
en: "Estonia, Kohtla-Järve",
ru: "Эстония, Кохтла-Ярве"
},
[59.40629447076191, 27.280605339416322]],
location: ["EstoniaKohtlaJarve", [59.40629447076191, 27.280605339416322]],
members: 3,
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}]
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
},
{
location: [
{
en: "Greece, Athens",
ru: "Греция, Афины"
},
[37.94877252621736, 23.677622972996158]],
location: ["GreeceAthens", [37.94877252621736, 23.677622972996158]],
members: 1,
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}]
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
},
{
location: [
{
en: "Latvia, Riga",
ru: "Латвия, Рига"
},
[56.94748425529816, 24.003027136431925]],
location: ["LatviaRiga", [56.94748425529816, 24.003027136431925]],
members: 2,
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
{
en: "WhatsApp invite link",
ru: "WhatsApp ссылка"
}]
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsAppInviteLink"]
},
]
export function addMarkersGroups(map,content,locale) {
export function addMarkersGroups(map,content) {
for (let g of groups) {
let coordinates
let text = ""
for (let field in g) {
let fieldText = content[field] + ": "
if (field=="contact") {
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + content[g.contact[1]] + "</a>"
}
else if (field=="location") {
text += fieldText + g[field][0][locale[0]] + "<br>"
text += fieldText + content[g[field][0]] + "<br>"
coordinates = g[field][1]
}
else {

View File

@@ -0,0 +1,9 @@
export let partners = [
{
name: "Gaia's Fall",
type: "typeGaiasFall",
link: "https://discord.libsoc.org/invite/",
description: "descriptionGaiasFall",
logo: "gaias_fall"
}
]

View File

@@ -6,5 +6,8 @@
"location": "Location",
"status": "Status",
"members": "Members",
"contact": "Contact"
"contact": "Contact",
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
"forming": "forming",
"WhatsAppInviteLink": "WhatsApp invite link"
}

View File

@@ -11,5 +11,13 @@
"workers": "Workers",
"contact": "Contact",
"description": "Description",
"website": "Website"
"website": "Website",
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
"wellnessAndHealth": "wellness and health",
"inDevelopment": "in development",
"WhatsAppInviteLink": "WhatsApp invite link",
"descriptionChironHealth": "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
"herbalTeas": "herbal teas",
"kuuskDescription": "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course."
}

View File

@@ -6,5 +6,12 @@
"subheading2": "Europe",
"location": "Location",
"members": "Members",
"contact": "Contact"
"contact": "Contact",
"DenmarkCopenhagen": "Denmark, Copenhagen",
"DenmarkKolding": "Denmark, Kolding",
"EstoniaKohtlaJarve": "Estonia, Kohtla-Järve",
"GreeceAthens": "Greece, Athens",
"LatviaRiga": "Latvia, Riga",
"DiscordInviteLink": "Discord invite link",
"WhatsAppInviteLink": "WhatsApp invite link"
}

View File

@@ -7,5 +7,8 @@
"location": "Location",
"type": "Type",
"link": "Link",
"description": "Description"
"description": "Description",
"typeGaiasFall": "a place to discuss and organize",
"descriptionGaiasFall": "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."
}

View File

@@ -6,5 +6,8 @@
"location": "Локация",
"status": "Статус",
"members": "Участники",
"contact": "Контакт"
"contact": "Контакт",
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
"forming": "формируется",
"WhatsAppInviteLink": "WhatsApp ссылка"
}

View File

@@ -11,5 +11,12 @@
"workers": "Работники",
"contact": "Контакт",
"description": "Описание",
"website": "Вебсайт"
"website": "Вебсайт",
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
"wellnessAndHealth": "благополучие и здоровье",
"inDevelopment": "в разработке",
"WhatsAppInviteLink": "WhatsApp ссылка",
"descriptionChironHealth": "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия",
"herbalTeas": "травяные чаи",
"kuuskDescription": "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
}

View File

@@ -6,5 +6,12 @@
"subheading2": "Европа",
"location": "Локация",
"members": "Участники",
"contact": "Контакт"
"contact": "Контакт",
"DenmarkCopenhagen": "Дания, Копенгаген",
"DenmarkKolding": "Дания, Колдинг",
"EstoniaKohtlaJarve": "Эстония, Кохтла-Ярве",
"GreeceAthens": "Греция, Афины",
"LatviaRiga": "Латвия, Рига",
"DiscordInviteLink": "Discord ссылка",
"WhatsAppInviteLink": "WhatsApp ссылка"
}

View File

@@ -7,5 +7,7 @@
"location": "Локация",
"type": "Тип",
"link": "Ссылка",
"description": "Описание"
"description": "Описание",
"typeGaiasFall": "место для общения и организации",
"descriptionGaiasFall": "Gaia's Fall — это сервер, который продвигает идеалы соларпанка, защиту окружающей среды, анархизм и антикапитализм. Мы поощряем гражданские дебаты, обсуждение теорий и возможностей, а также создание сообществ, сосредоточенных на формировании лучшего мира. Это наш официальный сервер Discord, на котором мы организуемся и работаем вместе."
}

View File

@@ -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}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>