<script>
	import { OpenAPI } from '@odit/lfk-client-js';
	import { env } from '$env/dynamic/public';
	import '../app.postcss';
	import '@fontsource/athiti';
	import { onMount } from 'svelte';

	OpenAPI.BASE = env.PUBLIC_BASE_URL || 'https://run.lauf-fuer-kaya.de';
	onMount(() => {
		window.addEventListener('keydown', (e) => {
			// F1
			if (e.keyCode === 112) e.preventDefault();
			// F5
			if (e.keyCode === 116) e.preventDefault();
		});
	});
</script>

<div class="dark:bg-slate-900 flex flex-col h-screen">
	<main class="flex-grow">
		<slot />
	</main>
</div>
