summaryrefslogtreecommitdiff
path: root/client-web/source/index.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-06-24 22:06:34 +0200
committermetamuffin <metamuffin@disroot.org>2023-06-24 22:06:34 +0200
commite3d056a8807d52f95b7df9537ce931925b00d98f (patch)
treec3610de295177346d50f995c8b2ab72f35324127 /client-web/source/index.ts
parent94d1c689bb2923285e8ec988aa7dc270302f1e55 (diff)
downloadkeks-meet-e3d056a8807d52f95b7df9537ce931925b00d98f.tar
keks-meet-e3d056a8807d52f95b7df9537ce931925b00d98f.tar.bz2
keks-meet-e3d056a8807d52f95b7df9537ce931925b00d98f.tar.zst
rework ui design, broke a lot of stuff
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r--client-web/source/index.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts
index 84a86e9..6d99215 100644
--- a/client-web/source/index.ts
+++ b/client-web/source/index.ts
@@ -6,16 +6,15 @@
/// <reference lib="dom" />
import { init_serviceworker } from "./sw/client.ts";
-import { esection, OVERLAYS } from "./helper.ts";
+import { ediv, enav } from "./helper.ts";
import { setup_keybinds } from "./keybinds.ts";
import { log, LOGGER_CONTAINER } from "./logger.ts"
-import { BottomMenu, MenuBr } from "./menu.ts";
import { load_params, PREFS } from "./preferences/mod.ts";
import { SignalingConnection } from "./protocol/mod.ts";
import { Room } from "./room.ts"
+import { control_bar, info_br } from "./menu.ts";
export const VERSION = "0.1.12"
-export const ROOM_CONTAINER = esection({ class: "room", aria_label: "user list" })
export interface ClientConfig {
appearance?: {
@@ -84,10 +83,10 @@ export async function main() {
setup_keybinds(r)
r.on_ready = () => {
- new BottomMenu(r)
- new MenuBr()
+ const sud = enav({ class: "side-ui" })
+ const center = ediv({ class: "main" }, r.element, info_br())
+ document.body.append(center, sud, control_bar(r, sud))
}
- document.body.prepend(ROOM_CONTAINER, OVERLAYS)
if (globalThis.navigator.serviceWorker) init_serviceworker()
}