@@ -14,7 +17,7 @@
Have an invite?
-
diff --git a/src/app/components/SpaceCreate.svelte b/src/app/components/SpaceCreate.svelte
index 4e4a67b..c46fb8a 100644
--- a/src/app/components/SpaceCreate.svelte
+++ b/src/app/components/SpaceCreate.svelte
@@ -3,11 +3,12 @@
import Field from '@lib/components/Field.svelte'
import Icon from '@lib/components/Icon.svelte'
import InfoNip29 from '@app/components/InfoNip29.svelte'
+ import SpaceCreateFinish from '@app/components/SpaceCreateFinish.svelte'
import {pushModal} from '@app/modal'
const back = () => history.back()
- const next = () => pushModal()
+ const next = () => pushModal(SpaceCreateFinish)
const showNip29Info = () => pushModal(InfoNip29)
diff --git a/src/app/components/SpaceCreateFinish.svelte b/src/app/components/SpaceCreateFinish.svelte
new file mode 100644
index 0000000..45b983b
--- /dev/null
+++ b/src/app/components/SpaceCreateFinish.svelte
@@ -0,0 +1 @@
+hi
diff --git a/src/app/components/SpaceJoin.svelte b/src/app/components/SpaceJoin.svelte
new file mode 100644
index 0000000..d019ffd
--- /dev/null
+++ b/src/app/components/SpaceJoin.svelte
@@ -0,0 +1,45 @@
+
+
+
+
Join a Space
+
+ Enter an invite link below to join an existing space.
+
+
+ Invite Link*
+
+
+
+ Browse other spaces on the discover page.
+
+
+
+
+ Go back
+
+
+ Join Space
+
+
+
+
diff --git a/src/app/modal.ts b/src/app/modal.ts
index 7f6628d..af47d17 100644
--- a/src/app/modal.ts
+++ b/src/app/modal.ts
@@ -1,6 +1,6 @@
import type {ComponentType} from "svelte"
import {randomId} from "@welshman/lib"
-import {pushState} from "$app/navigation"
+import {goto} from "$app/navigation"
export const modals = new Map()
@@ -9,12 +9,9 @@ export const pushModal = (component: ComponentType, props: Record
=
// TODO: fix memory leak here by listening to history somehow
modals.set(id, {component, props})
- pushState("", {modal: id})
+ goto("#" + id)
return id
}
-export const popModal = (id: string) => {
- modals.delete(id)
- history.back()
-}
+export const clearModal = () => goto('#')
diff --git a/src/assets/icons/Link Round.svg b/src/assets/icons/Link Round.svg
new file mode 100644
index 0000000..22f7abb
--- /dev/null
+++ b/src/assets/icons/Link Round.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/lib/components/Icon.svelte b/src/lib/components/Icon.svelte
index 53a964b..267fd07 100644
--- a/src/lib/components/Icon.svelte
+++ b/src/lib/components/Icon.svelte
@@ -22,6 +22,7 @@
import HandPills from "@assets/icons/Hand Pills.svg?dataurl"
import HomeSmile from "@assets/icons/Home Smile.svg?dataurl"
import InfoCircle from "@assets/icons/Info Circle.svg?dataurl"
+ import LinkRound from "@assets/icons/Link Round.svg?dataurl"
import Plain from "@assets/icons/Plain.svg?dataurl"
import RemoteControllerMinimalistic from "@assets/icons/Remote Controller Minimalistic.svg?dataurl"
import Settings from "@assets/icons/Settings.svg?dataurl"
@@ -49,6 +50,7 @@
"hand-pills": HandPills,
"home-smile": HomeSmile,
"info-circle": InfoCircle,
+ "link-round": LinkRound,
plain: Plain,
'remote-controller-minimalistic': RemoteControllerMinimalistic,
settings: Settings,
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index a79f544..25d5f88 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,12 +1,13 @@
@@ -43,10 +54,10 @@
-