-
+
diff --git a/web/src/ui/RoomViewHeader.css b/web/src/ui/RoomViewHeader.css
new file mode 100644
index 0000000..dcb94f3
--- /dev/null
+++ b/web/src/ui/RoomViewHeader.css
@@ -0,0 +1,31 @@
+div.room-header {
+ display: flex;
+ align-items: center;
+ gap: .5rem;
+ padding-left: .5rem;
+ border-bottom: 1px solid var(--border-color);
+
+ > span.room-name {
+ font-weight: bold;
+ }
+
+ > div.divider {
+ flex: 1;
+ }
+
+ > button.back {
+ height: 2.5rem;
+ width: 2.5rem;
+ }
+
+ > div.right-buttons {
+ display: flex;
+ align-items: center;
+ margin-right: .5rem;
+
+ > button {
+ width: 2.5rem;
+ height: 2.5rem;
+ }
+ }
+}
diff --git a/web/src/ui/RoomViewHeader.tsx b/web/src/ui/RoomViewHeader.tsx
new file mode 100644
index 0000000..5022929
--- /dev/null
+++ b/web/src/ui/RoomViewHeader.tsx
@@ -0,0 +1,58 @@
+// gomuks - A Matrix client written in Go.
+// Copyright (C) 2024 Tulir Asokan
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+import { use } from "react"
+import { getAvatarURL } from "@/api/media.ts"
+import { RoomStateStore } from "@/api/statestore"
+import { useEventAsState } from "@/util/eventdispatcher.ts"
+import MainScreenContext from "./MainScreenContext.ts"
+import { LightboxContext } from "./modal/Lightbox.tsx"
+import BackIcon from "@/icons/back.svg?react"
+// import PeopleIcon from "@/icons/group.svg?react"
+// import PinIcon from "@/icons/pin.svg?react"
+// import SettingsIcon from "@/icons/settings.svg?react"
+import "./RoomViewHeader.css"
+
+interface RoomViewHeaderProps {
+ room: RoomStateStore
+}
+
+const RoomViewHeader = ({ room }: RoomViewHeaderProps) => {
+ const roomMeta = useEventAsState(room.meta)
+ const avatarSourceID = roomMeta.lazy_load_summary?.heroes?.length === 1
+ ? roomMeta.lazy_load_summary.heroes[0] : room.roomID
+ const mainScreen = use(MainScreenContext)
+ return
+}
+
+export default RoomViewHeader
diff --git a/web/src/ui/rightpanel/RightPanel.css b/web/src/ui/rightpanel/RightPanel.css
new file mode 100644
index 0000000..24fbb72
--- /dev/null
+++ b/web/src/ui/rightpanel/RightPanel.css
@@ -0,0 +1,3 @@
+div.right-panel {
+
+}
diff --git a/web/src/ui/rightpanel/RightPanel.tsx b/web/src/ui/rightpanel/RightPanel.tsx
new file mode 100644
index 0000000..09920e5
--- /dev/null
+++ b/web/src/ui/rightpanel/RightPanel.tsx
@@ -0,0 +1,27 @@
+// gomuks - A Matrix client written in Go.
+// Copyright (C) 2024 Tulir Asokan
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
+export interface RightPanelProps {
+ meow?: never
+}
+
+const RightPanel = ({ meow }: RightPanelProps) => {
+ return
diff --git a/web/src/ui/useResizeHandle.tsx b/web/src/ui/useResizeHandle.tsx
new file mode 100644
index 0000000..9c4d060
--- /dev/null
+++ b/web/src/ui/useResizeHandle.tsx
@@ -0,0 +1,43 @@
+// gomuks - A Matrix client written in Go.
+// Copyright (C) 2024 Tulir Asokan
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+import { useEffect, useState } from "react"
+import ResizeHandle, { ResizeHandleProps } from "./ResizeHandle.tsx"
+
+export const useResizeHandle = (
+ defaultSize: number,
+ minWidth: number,
+ maxWidth: number,
+ localStorageKey: string,
+ extraProps: Partial,
+) => {
+ const [width, setWidth] = useState(() => {
+ const savedWidth = localStorage.getItem(localStorageKey)
+ if (savedWidth) {
+ return Number(savedWidth)
+ }
+ return defaultSize
+ })
+ useEffect(() => {
+ localStorage.setItem(localStorageKey, width.toString())
+ }, [localStorageKey, width])
+ return [width, ] as const
+}