diff --git a/frontend/src/lib/components/PageTransition.svelte b/frontend/src/lib/components/PageTransition.svelte new file mode 100644 index 0000000..4f7de6e --- /dev/null +++ b/frontend/src/lib/components/PageTransition.svelte @@ -0,0 +1,14 @@ + + +{#key url} +
+ +
+{/key} diff --git a/frontend/src/routes/+layout.js b/frontend/src/routes/+layout.js new file mode 100644 index 0000000..25b03d3 --- /dev/null +++ b/frontend/src/routes/+layout.js @@ -0,0 +1,6 @@ +/** @type {import('./$types').PageLoad} */ +export const load = async ({ url }) => { + return { + url: url.pathname + }; +}; diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 9c092a1..ec662d8 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -1,3 +1,9 @@ + + - + + +