2020-05-29 14:28:12 +02:00
|
|
|
<script>
|
|
|
|
import { store, backendUiStore } from "builderStore"
|
|
|
|
import ComponentsHierarchy from "components/userInterface/ComponentsHierarchy.svelte"
|
|
|
|
import PageLayout from "components/userInterface/PageLayout.svelte"
|
|
|
|
import PagesList from "components/userInterface/PagesList.svelte"
|
|
|
|
import NewScreen from "components/userInterface/NewScreen.svelte"
|
2020-05-29 19:32:52 +02:00
|
|
|
|
2020-05-29 14:28:12 +02:00
|
|
|
const newScreen = () => {
|
|
|
|
newScreenPicker.show()
|
|
|
|
}
|
|
|
|
|
|
|
|
let newScreenPicker
|
|
|
|
</script>
|
|
|
|
|
2020-05-29 19:31:47 +02:00
|
|
|
<PagesList />
|
2020-05-29 14:28:12 +02:00
|
|
|
|
2020-06-24 16:41:33 +02:00
|
|
|
<button class="newscreen" on:click={newScreen}>Create New Screen</button>
|
2020-05-29 14:28:12 +02:00
|
|
|
|
|
|
|
<PageLayout layout={$store.pages[$store.currentPageName]} />
|
|
|
|
|
2020-05-29 19:31:47 +02:00
|
|
|
<div class="nav-items-container">
|
|
|
|
<ComponentsHierarchy screens={$store.screens} />
|
2020-05-29 14:28:12 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<NewScreen bind:this={newScreenPicker} />
|
|
|
|
|
|
|
|
<style>
|
2020-05-29 19:32:52 +02:00
|
|
|
.newscreen {
|
|
|
|
cursor: pointer;
|
2020-06-23 22:29:18 +02:00
|
|
|
border: 1px solid var(--purple);
|
|
|
|
border-radius: 5px;
|
2020-05-29 19:32:52 +02:00
|
|
|
width: 100%;
|
2020-06-23 22:29:18 +02:00
|
|
|
height: 36px;
|
2020-05-29 19:32:52 +02:00
|
|
|
padding: 8px 16px;
|
2020-06-01 23:16:12 +02:00
|
|
|
margin: 20px 0px 12px 0px;
|
2020-05-29 19:32:52 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2020-06-23 22:29:18 +02:00
|
|
|
background: var(--purple);
|
|
|
|
color: var(--white);
|
2020-05-29 19:32:52 +02:00
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
2020-06-23 22:29:18 +02:00
|
|
|
transition: all 3ms;
|
|
|
|
outline: none;
|
2020-05-29 19:32:52 +02:00
|
|
|
}
|
2020-05-29 14:28:12 +02:00
|
|
|
|
2020-05-29 19:32:52 +02:00
|
|
|
.newscreen:hover {
|
2020-06-23 22:29:18 +02:00
|
|
|
background: var(--purple-light);
|
|
|
|
color: var(--purple);
|
2020-05-29 19:32:52 +02:00
|
|
|
}
|
2020-06-01 23:16:12 +02:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
color: var(--ink);
|
|
|
|
font-size: 16px;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
2020-05-29 19:32:52 +02:00
|
|
|
</style>
|