diff --git a/src/App.svelte b/src/App.svelte index 08bb894..f0f855b 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -3,11 +3,12 @@ import svelteLogo from './assets/svelte.svg' import viteLogo from '/vite.svg' import Number from './lib/Number.svelte' - import { Backend, cfg, eStates, Fmt, JsonTy, Misc, nStates, randInt, range, zero8, type Checkpoint, type i8s, type MetaCheckpoint } from "./utils"; + import { cfg, eStates, Fmt, JsonTy, Misc, nStates, randInt, range, zero8, type Checkpoint, type MetaCheckpoint } from "./utils"; import Line from "./lib/Line.svelte"; import { solve } from "./solver"; - import Upload from './lib/Upload.svelte'; import PuzzleInfo from './lib/PuzzleInfo.svelte'; + import CompletedOverlay from './lib/CompletedOverlay.svelte'; + import UploadOverlay from './lib/UploadOverlay.svelte'; const params = new URLSearchParams(location.search) const hasTouch = Misc.hasTouch() @@ -392,20 +393,6 @@ {/if} - {#if completedOverlay} -
-

Congrats! 🎉

- -

Great job on solving your first puzzle 🧩

-

This project is just starting out, I hope you enjoyed it!

-

If you want to design your own puzzle and share with the world, you can go to Edit Mode and start drawing!

-

You can find more about the creation process in the documentation on the GitHub Repo.

-

If you want to chat, you can reach me on telegram @hykilpikonna.

-

Thanks for playing! 🤗

- - -
- {/if} - - {#if upload} upload = null}/> {/if} + + diff --git a/src/lib/CompletedOverlay.svelte b/src/lib/CompletedOverlay.svelte new file mode 100644 index 0000000..70440a3 --- /dev/null +++ b/src/lib/CompletedOverlay.svelte @@ -0,0 +1,20 @@ + + +{#if completedOverlay} +
+

Congrats! 🎉

+ +

Great job on solving your first puzzle 🧩

+

This project is just starting out, I hope you enjoyed it!

+

If you want to design your own puzzle and share with the world, you can go to Edit Mode and start drawing!

+

You can find more about the creation process in the documentation on the GitHub Repo.

+

If you want to chat, you can reach me on telegram @hykilpikonna.

+

Thanks for playing! 🤗

+ + +
+{/if} \ No newline at end of file diff --git a/src/lib/Upload.svelte b/src/lib/UploadOverlay.svelte similarity index 83% rename from src/lib/Upload.svelte rename to src/lib/UploadOverlay.svelte index 5cce9a6..6b1a4ab 100644 --- a/src/lib/Upload.svelte +++ b/src/lib/UploadOverlay.svelte @@ -1,11 +1,7 @@