mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-09 02:29:13 +00:00
fixed language issues, updated routing, completed first version of managment page
This commit is contained in:
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user