From f8fe14150584f611c11655a50d77efca08c6dafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 30 Nov 2021 00:23:36 +0100 Subject: [PATCH] Use page transition component to avoid repetition on main --- src/components/PageTransition.svelte | 14 ++++++++++++++ src/routes/[country]/[location]/index.svelte | 6 +----- src/routes/__layout.svelte | 7 +++++-- src/routes/credits.svelte | 7 +------ src/routes/index.svelte | 7 +------ src/routes/locations.svelte | 7 +------ src/routes/photos.svelte | 8 ++------ src/routes/shop/__layout.svelte | 7 +------ src/routes/subscribe.svelte | 9 ++------- 9 files changed, 28 insertions(+), 44 deletions(-) create mode 100644 src/components/PageTransition.svelte diff --git a/src/components/PageTransition.svelte b/src/components/PageTransition.svelte new file mode 100644 index 0000000..8f86f23 --- /dev/null +++ b/src/components/PageTransition.svelte @@ -0,0 +1,14 @@ + + +{#key refresh} +
+ +
+{/key} \ No newline at end of file diff --git a/src/routes/[country]/[location]/index.svelte b/src/routes/[country]/[location]/index.svelte index 2372b89..8de723c 100644 --- a/src/routes/[country]/[location]/index.svelte +++ b/src/routes/[country]/[location]/index.svelte @@ -1,7 +1,6 @@