add basic layout for chat page
This commit is contained in:
+40
-11
@@ -1,19 +1,48 @@
|
||||
#chat-page-wrapper {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#chat-page-wrapper[open] {
|
||||
display: flex;
|
||||
display: flex;
|
||||
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
|
||||
background-color: var(--background);
|
||||
background-color: var(--background);
|
||||
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
#chat-page {
|
||||
|
||||
}
|
||||
#chat-page > div {
|
||||
padding: 0px;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: var(--control-height) 1fr;
|
||||
grid-template-rows: var(--control-height) 1fr;
|
||||
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
#chat-page #ribbon {
|
||||
grid-column: 1 / 2;
|
||||
grid-row: 1 / 3;
|
||||
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
|
||||
#chat-page #toolbar {
|
||||
grid-column: 2 / 3;
|
||||
grid-row: 1 / 2;
|
||||
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
#chat-page #main {
|
||||
grid-column: 2 / 3;
|
||||
grid-row: 2 / 3;
|
||||
}
|
||||
|
||||
@@ -8,13 +8,10 @@ import { translations } from "./translations";
|
||||
export function ChatPage(chatViewModel: ChatViewModel) {
|
||||
return (
|
||||
<article id="chat-page">
|
||||
<header>
|
||||
<span subscribe:innerText={chatViewModel.primaryChannel}></span>
|
||||
</header>
|
||||
<div>
|
||||
<div class="ribbon"></div>
|
||||
<div class="toolbar"></div>
|
||||
<div class="main"></div>
|
||||
<div id="ribbon"></div>
|
||||
<div id="toolbar"></div>
|
||||
<div id="main"></div>
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user