diff --git a/src/components/transition.svelte b/src/components/transition.svelte new file mode 100644 index 0000000..0042710 --- /dev/null +++ b/src/components/transition.svelte @@ -0,0 +1,10 @@ + + +{#key pathname} +
+ +
+{/key} diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts new file mode 100644 index 0000000..38695c6 --- /dev/null +++ b/src/routes/+layout.server.ts @@ -0,0 +1,5 @@ +import type { LayoutServerLoad } from './$types'; + +export const load: LayoutServerLoad = async ({ url: { pathname } }) => { + return { pathname }; +}; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d1ead55..0a75562 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,10 +1,13 @@
@@ -33,7 +37,7 @@ {category}{category} {/each} @@ -69,7 +73,9 @@
- + + +