diff --git a/src/App.svelte b/src/App.svelte deleted file mode 100644 index 7c946a5..0000000 --- a/src/App.svelte +++ /dev/null @@ -1,9 +0,0 @@ - - -
-

Owlerlay

- -
-
- -
diff --git a/src/app/shell/AppShell.svelte b/src/app/shell/AppShell.svelte new file mode 100644 index 0000000..6389995 --- /dev/null +++ b/src/app/shell/AppShell.svelte @@ -0,0 +1,25 @@ + +
+

Owlerlay

+
+ +
+
+ {#if activePage === "countdowns"} + + {:else if activePage === "about"} + + {:else} + + {/if} +
diff --git a/src/features/countdown/components/CountdownPage.svelte b/src/features/countdown/components/CountdownPage.svelte new file mode 100644 index 0000000..38bcb56 --- /dev/null +++ b/src/features/countdown/components/CountdownPage.svelte @@ -0,0 +1,67 @@ + + +{#if $countdownStore.loading}

Loading...

{/if} +{#if $countdownStore.error}

{$countdownStore.error}

{/if} +{#if createVisible} +
+ + + + + + + + +
+{/if} + +
+ + +
+{#if $countdownStore.selected} +

{$countdownStore.selected.duration}

+

{$countdownStore.selected.state}

+ + {#if $countdownStore.selected.state === "Idle"} + + {:else if $countdownStore.selected.state === "Running"} + + {:else if $countdownStore.selected.state === "Paused"} + + {/if} + +{/if} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index d219507..c4980a7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,8 @@ import {mount} from 'svelte' import './app/app.css' -import App from './App.svelte' +import AppShell from './app/shell/AppShell.svelte' -const app = mount(App, { +const app = mount(AppShell, { target: document.getElementById('app')!, })