diff --git a/src/lib/components/TopBar.svelte b/src/lib/components/TopBar.svelte deleted file mode 100644 index 9d1893f..0000000 --- a/src/lib/components/TopBar.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -
- - {#if title} -

{title}

- {/if} -
- {#if children} - {@render children?.()} - {/if} -
-
diff --git a/src/lib/components/atoms/divs/AdaptiveDiv.svelte b/src/lib/components/atoms/divs/AdaptiveDiv.svelte index 7f2ef32..9003c7c 100644 --- a/src/lib/components/atoms/divs/AdaptiveDiv.svelte +++ b/src/lib/components/atoms/divs/AdaptiveDiv.svelte @@ -10,6 +10,6 @@ let { children, ...props }: Props = $props(); -
+
{@render children?.()}
diff --git a/src/lib/components/atoms/divs/FullscreenDiv.svelte b/src/lib/components/atoms/divs/FullscreenDiv.svelte new file mode 100644 index 0000000..cdea8cc --- /dev/null +++ b/src/lib/components/atoms/divs/FullscreenDiv.svelte @@ -0,0 +1,7 @@ + + +
+ {@render children?.()} +
diff --git a/src/lib/components/atoms/divs/index.ts b/src/lib/components/atoms/divs/index.ts index 0044d60..561bbde 100644 --- a/src/lib/components/atoms/divs/index.ts +++ b/src/lib/components/atoms/divs/index.ts @@ -1,2 +1,3 @@ export { default as AdaptiveDiv } from "./AdaptiveDiv.svelte"; export { default as BottomDiv } from "./BottomDiv.svelte"; +export { default as FullscreenDiv } from "./FullscreenDiv.svelte"; diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index 7205520..d7690e1 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -1,2 +1 @@ export { default as BottomSheet } from "./BottomSheet.svelte"; -export { default as TopBar } from "./TopBar.svelte"; diff --git a/src/lib/components/molecules/TopBar.svelte b/src/lib/components/molecules/TopBar.svelte new file mode 100644 index 0000000..24fb537 --- /dev/null +++ b/src/lib/components/molecules/TopBar.svelte @@ -0,0 +1,37 @@ + + +
+ + {#if title} +

{title}

+ {/if} +
+ {#if children} + {@render children?.()} + {/if} +
+
diff --git a/src/lib/components/molecules/index.ts b/src/lib/components/molecules/index.ts index e73ef7e..8f056a3 100644 --- a/src/lib/components/molecules/index.ts +++ b/src/lib/components/molecules/index.ts @@ -1,2 +1,3 @@ export * from "./ActionModal.svelte"; export { default as ActionModal } from "./ActionModal.svelte"; +export { default as TopBar } from "./TopBar.svelte"; diff --git a/src/routes/(fullscreen)/+layout.svelte b/src/routes/(fullscreen)/+layout.svelte index e7e28a9..274b760 100644 --- a/src/routes/(fullscreen)/+layout.svelte +++ b/src/routes/(fullscreen)/+layout.svelte @@ -4,8 +4,6 @@ let { children } = $props(); - -
- {@render children()} -
+ + {@render children()} diff --git a/src/routes/(fullscreen)/auth/changePassword/+page.svelte b/src/routes/(fullscreen)/auth/changePassword/+page.svelte index e184b04..5299ed5 100644 --- a/src/routes/(fullscreen)/auth/changePassword/+page.svelte +++ b/src/routes/(fullscreen)/auth/changePassword/+page.svelte @@ -1,8 +1,8 @@