frontend: very basic layout prototype
This commit is contained in:
parent
1885653815
commit
2466b91f52
5 changed files with 81 additions and 3 deletions
|
@ -2,3 +2,9 @@ body {
|
|||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
*,
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
let count = 0;
|
||||
import ChannelView from "./Main.svelte";
|
||||
|
||||
</script>
|
||||
|
||||
<button on:click="{() => { count++ }}">{ count }</button>
|
||||
<ChannelView />
|
||||
|
|
40
frontend/src/components/ChannelView.svelte
Normal file
40
frontend/src/components/ChannelView.svelte
Normal 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>
|
19
frontend/src/components/Main.svelte
Normal file
19
frontend/src/components/Main.svelte
Normal 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>
|
12
frontend/src/components/Sidebar.svelte
Normal file
12
frontend/src/components/Sidebar.svelte
Normal file
|
@ -0,0 +1,12 @@
|
|||
<style>
|
||||
.sidebar {
|
||||
height: 100%;
|
||||
width: 255px;
|
||||
background-color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="sidebar">
|
||||
|
||||
</div>
|
Loading…
Reference in a new issue