22 lines
317 B
Svelte
22 lines
317 B
Svelte
<Beer />
|
|
<main class="center">
|
|
<slot />
|
|
</main>
|
|
|
|
<script>
|
|
import { genApi } from '$lib/store/api.js';
|
|
import { setContext } from 'svelte';
|
|
import Beer from '$lib/components/Beer.svelte';
|
|
|
|
const api = genApi();
|
|
|
|
setContext('api', api);
|
|
</script>
|
|
|
|
<style>
|
|
main {
|
|
max-width: 720px;
|
|
height: 100vh;
|
|
}
|
|
</style>
|