2019-07-13 11:35:57 +02:00
|
|
|
<script>
|
|
|
|
|
2019-08-02 15:54:10 +02:00
|
|
|
import ComponentsHierarchy from "./ComponentsHierarchy.svelte";
|
|
|
|
import PagesList from "./PagesList.svelte"
|
2019-07-31 09:09:04 +02:00
|
|
|
import { store } from "../builderStore";
|
2019-07-13 11:35:57 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2019-07-26 18:08:59 +02:00
|
|
|
<div class="root">
|
2019-07-30 09:31:07 +02:00
|
|
|
|
|
|
|
<div class="ui-nav">
|
2019-07-31 09:09:04 +02:00
|
|
|
|
2019-08-02 15:54:10 +02:00
|
|
|
<div class="components-list-container">
|
|
|
|
<h3>Components</h3>
|
|
|
|
<ComponentsHierarchy components={$store.allComponents}/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pages-list-container">
|
|
|
|
<h3>Pages</h3>
|
|
|
|
<PagesList />
|
|
|
|
</div>
|
|
|
|
|
2019-07-26 18:08:59 +02:00
|
|
|
</div>
|
2019-07-30 09:31:07 +02:00
|
|
|
|
|
|
|
<div class="component-preview">
|
2019-08-02 15:54:10 +02:00
|
|
|
{#if $store.currentFrontEndItem}
|
|
|
|
<div class="component-container">
|
|
|
|
<h1>{$store.currentFrontEndItem.name}</h1>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2019-07-30 09:31:07 +02:00
|
|
|
</div>
|
|
|
|
|
2019-07-26 18:08:59 +02:00
|
|
|
</div>
|
2019-07-13 11:35:57 +02:00
|
|
|
|
|
|
|
<style>
|
|
|
|
|
2019-07-26 18:08:59 +02:00
|
|
|
.root {
|
|
|
|
display: grid;
|
2019-07-31 09:09:04 +02:00
|
|
|
grid-template-columns: [uiNav] 300px [preview] auto;
|
2019-07-30 09:31:07 +02:00
|
|
|
height: 100%;
|
2019-07-31 09:09:04 +02:00
|
|
|
width: 100%;
|
2019-07-30 09:31:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.ui-nav {
|
|
|
|
grid-column-start: uiNav;
|
2019-08-02 15:54:10 +02:00
|
|
|
background-color: var(--primary10);
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: [components] 1fr [pages] auto;
|
2019-07-30 09:31:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.component-preview {
|
2019-08-02 15:54:10 +02:00
|
|
|
display: grid;
|
|
|
|
grid-template-rows: [top] 1fr [middle] auto [bottom] 1fr;
|
|
|
|
grid-template-columns: [left] 1fr [middle] auto [right] 1fr;
|
2019-07-30 09:31:07 +02:00
|
|
|
grid-column-start: preview;
|
2019-07-26 18:08:59 +02:00
|
|
|
}
|
|
|
|
|
2019-08-02 15:54:10 +02:00
|
|
|
.component-container {
|
|
|
|
grid-row-start: middle;
|
|
|
|
grid-column-start: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pages-list-container {
|
|
|
|
grid-row-start: pages;
|
|
|
|
}
|
|
|
|
|
|
|
|
.components-list-container {
|
|
|
|
grid-row-start: components;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
2019-07-13 11:35:57 +02:00
|
|
|
</style>
|