App.svelte 816 Bytes
<script>
    import Menu from './Menu.svelte';
    import Backtotop from './SideItems/Backtotop.svelte';
	import Map from './Map.svelte';
	import Article from './Articles.svelte';
	import { AllFestas } from './Stores/AllFestas';
	import jQuery from 'jquery';

	function LoadFestas() {
		let url = "/festivalList";
		jQuery.getJSON(url, (json) => {
			AllFestas.set(json.response.body.items.item);
		});
	}
</script>

<style>
	div {
		text-align: left;
		box-sizing: border-box;
		display: block;
	}

	:global(body) {
		padding: 0;
		margin: 0;
		align-items: center;
		align-content: center;
		text-align: center;
		justify-content: center;
	}

	:global(html) {
		scroll-behavior: smooth;
	}

</style>

<svelte:window on:load|once={LoadFestas}></svelte:window>
<div>
	<Menu/>
	<Map/>
	<Backtotop/>
	<Article/>
</div>