budibase/packages/builder/src/components/userInterface/FrontendNavigatePane.svelte

61 lines
1.4 KiB
Svelte
Raw Normal View History

<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"
import { Button } from "@budibase/bbui"
import { Spacer } from "@budibase/bbui"
2020-05-29 19:32:52 +02:00
let modalVisible = false
</script>
<PagesList />
<Spacer medium />
<Button primary wide on:click={() => (modalVisible = true)}>
Create New Screen
</Button>
<Spacer medium />
<PageLayout layout={$store.pages[$store.currentPageName]} />
<div class="nav-items-container">
<ComponentsHierarchy screens={$store.screens} />
</div>
{#if modalVisible}
<NewScreen bind:visible={modalVisible} />
{/if}
<style>
2020-05-29 19:32:52 +02:00
.newscreen {
cursor: pointer;
border: 1px solid var(--purple);
border-radius: 5px;
2020-05-29 19:32:52 +02:00
width: 100%;
height: 36px;
2020-05-29 19:32:52 +02:00
padding: 8px 16px;
margin: 20px 0px 12px 0px;
2020-05-29 19:32:52 +02:00
display: flex;
justify-content: center;
align-items: center;
background: var(--purple);
color: var(--white);
2020-05-29 19:32:52 +02:00
font-size: 14px;
font-weight: 500;
transition: all 3ms;
outline: none;
2020-05-29 19:32:52 +02:00
}
2020-05-29 19:32:52 +02:00
.newscreen:hover {
background: var(--purple-light);
color: var(--purple);
2020-05-29 19:32:52 +02:00
}
.icon {
color: var(--ink);
font-size: 16px;
margin-right: 4px;
}
2020-05-29 19:32:52 +02:00
</style>