2023-04-07 22:59:53 +07:00
|
|
|
<script lang="ts">
|
2023-03-14 13:47:44 +07:00
|
|
|
import '../app.postcss';
|
|
|
|
|
import Header from '$lib/components/Header.svelte';
|
2023-04-04 17:55:31 +07:00
|
|
|
import Footer from '$lib/components/Footer.svelte';
|
2023-04-07 22:59:53 +07:00
|
|
|
import 'dayjs/locale/th'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
dayjs.locale('th')
|
|
|
|
|
import buddhistEra from 'dayjs/plugin/buddhistEra'
|
|
|
|
|
dayjs.extend(buddhistEra)
|
|
|
|
|
import type { LayoutData } from './$types';
|
|
|
|
|
export let data: LayoutData;
|
|
|
|
|
console.log(data)
|
2023-04-07 23:56:23 +07:00
|
|
|
let {logo_url,supervised,divisions,institutes,address,organization} = data
|
|
|
|
|
|
2023-03-14 13:47:44 +07:00
|
|
|
</script>
|
|
|
|
|
|
2023-04-07 23:56:23 +07:00
|
|
|
<Header {logo_url} {organization} {supervised} />
|
2023-04-04 17:55:31 +07:00
|
|
|
<div class="justify-center place-content-center" style="padding-top:50px">
|
|
|
|
|
<slot />
|
|
|
|
|
</div>
|
2023-04-07 23:56:23 +07:00
|
|
|
<Footer {logo_url} {organization} {address} {divisions} {institutes} />
|