site-libsoc/Server/app/svelte/src/groups-component.svelte

112 lines
3.1 KiB
Svelte
Raw Normal View History

2023-06-24 04:39:41 +07:00
<svelte:options tag="groups-component" />
<script>
// Import statements
import { onMount } from 'svelte'
2023-06-24 20:44:16 +07:00
import { groups, addMarkersGroups } from '/js/groups.js'
2023-06-24 04:39:41 +07:00
// Import components
2023-06-24 20:44:16 +07:00
import "/js/components/map-component.js"
2023-06-24 04:39:41 +07:00
// Main code
2023-06-24 20:44:16 +07:00
export function mapCallbackGroups(createMap) {
let map = createMap([51.505, -0.09],3)
addMarkersGroups(map)
}
2023-06-24 04:39:41 +07:00
onMount(() => {
})
</script>
2023-06-24 20:44:16 +07:00
<div id="container">
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
<div id="text-container">
<h1>Groups</h1>
2023-06-25 02:29:07 +07:00
<img id="groups-img" src="/img/common/groups.svg" alt="groups">
2023-06-24 21:45:42 +07:00
<p>We aim to raise awareness about the negative impact of current politico-economic systems on our well-being. Through education, community engagement, and analysis, we reveal the flaws and inequalities in capitalist societies. By highlighting these issues, we empower people to question the status quo and imagine fairer and more sustainable alternatives.</p>
<p>But our mission goes beyond theory. We believe in mutual aid and collective action to address immediate challenges within capitalism. Through mutual aid, we support each other by sharing resources, knowledge, and skills, fostering solidarity and resilience. Whether it's community gardens, food cooperatives, or support networks, our goal is to make life under capitalism more bearable and create pockets of resistance and alternatives within the system.</p>
2023-06-24 20:44:16 +07:00
<h3>Our groups</h3>
<map-component id="map" callback={mapCallbackGroups}></map-component>
<h4>Europe</h4>
{#each groups as group}
<div class="location-info">
<p><b>Location: </b>{group.location[0]}</p>
<p><b>Members: </b>{group.members}</p>
<p><b>Contact: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{group.contact[1]}</a></p>
</div>
{/each}
</div>
</div>
2023-06-24 04:39:41 +07:00
<style>
@import '/css/common.css';
2023-06-25 02:29:07 +07:00
#groups-img {
position: absolute;
width: 14rem;
left: 50%;
transform: translate(-50%);
z-index: 0;
opacity: 0.2;
}
#text-container>:nth-child(3) {
margin-top: 8rem;
}
2023-06-24 20:44:16 +07:00
h4 {
margin-bottom: 2rem;
}
2023-06-26 03:22:27 +07:00
.location-info {
margin-bottom: 2rem;
}
2023-06-24 20:44:16 +07:00
.location-info p {
2023-06-26 03:22:27 +07:00
margin-bottom: 0;
2023-06-24 20:44:16 +07:00
}
a {
2023-06-26 19:56:49 +07:00
font-size: 1.15rem;
2023-06-24 20:44:16 +07:00
color: #DD1C1A;
}
#map {
--height: 30rem;
--width: 100%;
--margin-bottom: 3rem;
}
#text-container {
2023-06-25 02:29:07 +07:00
position: relative;
2023-06-24 20:44:16 +07:00
max-width: calc(100vw - 4rem);
margin: auto;
}
h1 {
margin-bottom: 1rem;
font-size: 2.5rem;
text-align: center;
}
h3 {
margin-bottom: 1rem;
}
#container {
margin: auto;
max-width: 1200px;
margin-top: 1rem;
margin-bottom: 4rem;
}
#container>div>p {
margin-bottom: 1rem;
}
#container p {
2023-06-26 19:56:49 +07:00
font-size: 1.15rem;
2023-06-24 20:44:16 +07:00
text-align: justify;
}
2023-06-24 04:39:41 +07:00
</style>