From 5ae447c9bdab308845d062525a7c575075d6119c Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 16 Mar 2024 21:17:17 -0700 Subject: [PATCH] refactor: dont inline splash screen image --- client/public/index.html | 23 ------------------ .../public/splash-screen.jpg | Bin client/public/splashscreen.html | 20 +++++++-------- splash-screen/README.md | 1 + splash-screen/src/App.svelte | 8 +----- splash-screen/src/lib/Loading.svelte | 2 +- 6 files changed, 13 insertions(+), 41 deletions(-) delete mode 100644 client/public/index.html rename splash-screen/src/assets/background.jpg => client/public/splash-screen.jpg (100%) diff --git a/client/public/index.html b/client/public/index.html deleted file mode 100644 index 618d3b9..0000000 --- a/client/public/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Jankboard 2 - - - - -
- - diff --git a/splash-screen/src/assets/background.jpg b/client/public/splash-screen.jpg similarity index 100% rename from splash-screen/src/assets/background.jpg rename to client/public/splash-screen.jpg diff --git a/client/public/splashscreen.html b/client/public/splashscreen.html index a9d4d8a..8644943 100644 --- a/client/public/splashscreen.html +++ b/client/public/splashscreen.html @@ -4,17 +4,17 @@ Jankboard 2 - - diff --git a/splash-screen/README.md b/splash-screen/README.md index 3d1558c..ea0eac7 100644 --- a/splash-screen/README.md +++ b/splash-screen/README.md @@ -44,3 +44,4 @@ screen!** inlined. 4. Rename this outputted `index.html` to `splashscreen.html`, and then move it into `/client/public`, replacing the existing `splashscreen.html`. + Note: the background image will not load in development since it's designed to load `/splash-screen.jpg` from the main app. Update the `splash-screen.jpg` image in `client/public` to change it. diff --git a/splash-screen/src/App.svelte b/splash-screen/src/App.svelte index 679f1d4..9722dd1 100644 --- a/splash-screen/src/App.svelte +++ b/splash-screen/src/App.svelte @@ -3,13 +3,7 @@ - - - - - - - + Jankboard 2 diff --git a/splash-screen/src/lib/Loading.svelte b/splash-screen/src/lib/Loading.svelte index 5c2d32f..2f99b49 100644 --- a/splash-screen/src/lib/Loading.svelte +++ b/splash-screen/src/lib/Loading.svelte @@ -32,7 +32,7 @@