fixed language issues, updated routing, completed first version of managment page

This commit is contained in:
Henri
2026-04-07 23:55:38 +03:00
parent ae1a44b65f
commit 3d27217769
11 changed files with 208 additions and 558 deletions

View File

@@ -1,8 +1,8 @@
<script>
import {Section, Stack, Grid, Center, Image, Svg, Button} from "$components";
import { navigate } from "$lib/router/router.js";
import { text, currentLang } from "$lib";
import { onMount } from "svelte";
import { createPageTextStore, currentLang } from "$lib";
import { onMount, onDestroy } from "svelte";
import yaml from 'js-yaml';
import ArrowRight from "lucide-svelte/icons/arrow-right";
@@ -10,18 +10,17 @@
// Partners data
let partners = [];
let textData = {};
// Subscribe to text store updates
text.subscribe(value => {
textData = value;
});
const text = createPageTextStore("Home");
onMount(async () => {
const response = await fetch('/_data/partners.yml');
const yamlText = await response.text();
partners = yaml.load(yamlText);
});
onDestroy(() => {
text.destroy();
});
</script>
<!-- Hero Section -->