From 64d24c9e3d7e744788644b00cdb2ec44a999d9cd Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 21 Aug 2022 21:06:10 +0200 Subject: move bot editor to /editor --- web/pw-server/src/routes/__layout.svelte | 39 ++++- web/pw-server/src/routes/editor.svelte | 277 +++++++++++++++++++++++++++++++ web/pw-server/src/routes/index.svelte | 277 ------------------------------- 3 files changed, 310 insertions(+), 283 deletions(-) create mode 100644 web/pw-server/src/routes/editor.svelte (limited to 'web') diff --git a/web/pw-server/src/routes/__layout.svelte b/web/pw-server/src/routes/__layout.svelte index 53eb265..2267491 100644 --- a/web/pw-server/src/routes/__layout.svelte +++ b/web/pw-server/src/routes/__layout.svelte @@ -6,10 +6,17 @@
@@ -34,13 +41,33 @@ padding: 0 15px; } - .navbar-main { + .navbar-left { + display: flex; + } + + .navbar-right { + display: flex; + } + + .navbar-header { margin: auto 0; + padding-right: 24px; } - .navbar-main a { + .navbar-header a { font-size: 20px; - color: #eee; + color: #fff; + text-decoration: none; + } + .navbar-item { + margin: auto 0; + padding: 0 8px; + } + + .navbar-item a { + font-size: 14px; + color: #fff; text-decoration: none; + font-weight: 600; } diff --git a/web/pw-server/src/routes/editor.svelte b/web/pw-server/src/routes/editor.svelte new file mode 100644 index 0000000..85c2454 --- /dev/null +++ b/web/pw-server/src/routes/editor.svelte @@ -0,0 +1,277 @@ + + +
+ +
+ {#if viewMode === ViewMode.MatchVisualizer} + + {:else if viewMode === ViewMode.Editor} + + {:else if viewMode === ViewMode.Rules} + + {:else if viewMode === ViewMode.Leaderboard} + + {/if} +
+ +
+ + diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index 85c2454..e69de29 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -1,277 +0,0 @@ - - -
- -
- {#if viewMode === ViewMode.MatchVisualizer} - - {:else if viewMode === ViewMode.Editor} - - {:else if viewMode === ViewMode.Rules} - - {:else if viewMode === ViewMode.Leaderboard} - - {/if} -
- -
- - -- cgit v1.2.3