diff --git a/web/src/app.d.ts b/web/src/app.d.ts new file mode 100644 index 0000000..0a084a4 --- /dev/null +++ b/web/src/app.d.ts @@ -0,0 +1,20 @@ +// See https://svelte.dev/docs/kit/types#app.d.ts + +declare global { + namespace App { + // interface Error {} + // interface Locals {} + // interface PageData {} + + interface PageState { + discordModal?: { + open: boolean; + username: string; + }; + } + + // interface Platform {} + } +} + +export {}; diff --git a/web/src/lib/actions/portal.ts b/web/src/lib/actions/portal.ts new file mode 100644 index 0000000..e65dfff --- /dev/null +++ b/web/src/lib/actions/portal.ts @@ -0,0 +1,40 @@ +/** + * Svelte action that moves an element to a target container (default: document.body). + * This allows elements to escape their parent's stacking context, which is essential + * for modals that need to appear above all other content regardless of z-index. + * + * @example + * ```svelte + *
+ Live with dignity.
+ https://xevion.dev
+