mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
chore(ui): add persistent layout with page title
This commit is contained in:
parent
1bd2188671
commit
d1e410fddb
1 changed files with 17 additions and 0 deletions
17
resources/js/layouts/Layout.svelte
Normal file
17
resources/js/layouts/Layout.svelte
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<script lang="ts">
|
||||
import { useLayoutProps, page } from "@inertiajs/svelte";
|
||||
|
||||
const layout = useLayoutProps({
|
||||
title: "",
|
||||
});
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{$layout.title ? `${$layout.title} - ` : ""}{page.props.appName}</title>
|
||||
</svelte:head>
|
||||
|
||||
<main>
|
||||
{@render children()}
|
||||
</main>
|
||||
Loading…
Reference in a new issue