frontend: very basic layout prototype

This commit is contained in:
hippoz 2022-04-15 02:39:13 +03:00
parent 1885653815
commit 2466b91f52
Signed by: hippoz
GPG key ID: 7C52899193467641
5 changed files with 81 additions and 3 deletions

View file

@ -2,3 +2,9 @@ body {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
*,
::before,
::after {
box-sizing: border-box;
}

View file

@ -1,5 +1,6 @@
<script> <script>
let count = 0; import ChannelView from "./Main.svelte";
</script> </script>
<button on:click="{() => { count++ }}">{ count }</button> <ChannelView />

View file

@ -0,0 +1,40 @@
<style>
.main-container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.top-bar {
height: 3.4rem;
width: 100%;
padding: 6px;
background-color: papayawhip;
}
.messages-container {
height: 100%;
width: 100%;
background-color: mediumseagreen;
}
.message-input-container {
height: 3.4rem;
width: 100%;
padding: 6px;
background-color: antiquewhite;
}
</style>
<div class="main-container">
<div class="top-bar">
</div>
<div class="messages-container">
</div>
<div class="message-input-container">
</div>
</div>

View file

@ -0,0 +1,19 @@
<script>
import ChannelView from "./ChannelView.svelte";
import Sidebar from "./Sidebar.svelte";
</script>
<style>
.flex-container {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: row;
}
</style>
<div class="flex-container">
<Sidebar />
<ChannelView />
</div>

View file

@ -0,0 +1,12 @@
<style>
.sidebar {
height: 100%;
width: 255px;
background-color: black;
}
</style>
<div class="sidebar">
</div>