|
|
|
@ -4,6 +4,7 @@ |
|
|
|
import AppList from "components/start/AppList.svelte" |
|
|
|
import { onMount } from "svelte" |
|
|
|
import ActionButton from "components/common/ActionButton.svelte" |
|
|
|
import { get } from "builderStore/api" |
|
|
|
import Spinner from "components/common/Spinner.svelte" |
|
|
|
import CreateAppModal from "components/start/CreateAppModal.svelte" |
|
|
|
import { Button, Heading } from "@budibase/bbui" |
|
|
|
@ -13,6 +14,7 @@ |
|
|
|
|
|
|
|
let promise = getApps() |
|
|
|
let hasKey |
|
|
|
let template |
|
|
|
let modalVisible = false |
|
|
|
|
|
|
|
async function getApps() { |
|
|
|
@ -44,41 +46,49 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function selectTemplate(newTemplate) { |
|
|
|
template = newTemplate |
|
|
|
modalVisible = true |
|
|
|
} |
|
|
|
|
|
|
|
checkIfKeysAndApps() |
|
|
|
</script> |
|
|
|
|
|
|
|
<div class="header"> |
|
|
|
<Heading medium black>Welcome to the Budibase Beta</Heading> |
|
|
|
<Button primary purple on:click={() => (modalVisible = true)}> |
|
|
|
Create New Web App |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
<div class="container"> |
|
|
|
<div class="header"> |
|
|
|
<Heading medium black>Welcome to the Budibase Beta</Heading> |
|
|
|
<Button primary purple on:click={() => (modalVisible = true)}> |
|
|
|
Create New Web App |
|
|
|
</Button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="banner"> |
|
|
|
<img src="/_builder/assets/orange-landscape.png" alt="rocket" /> |
|
|
|
<div class="banner-content"> |
|
|
|
Every accomplishment starts with a decision to try. |
|
|
|
<div class="banner"> |
|
|
|
<img src="/_builder/assets/orange-landscape.png" alt="rocket" /> |
|
|
|
<div class="banner-content"> |
|
|
|
Every accomplishment starts with a decision to try. |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<TemplateList onSelect={() => (modalVisible = true)} /> |
|
|
|
<AppList /> |
|
|
|
{#if modalVisible} |
|
|
|
<CreateAppModal bind:visible={modalVisible} {hasKey} {template} /> |
|
|
|
{/if} |
|
|
|
<TemplateList onSelect={selectTemplate} /> |
|
|
|
|
|
|
|
<AppList /> |
|
|
|
|
|
|
|
{#if modalVisible} |
|
|
|
<CreateAppModal bind:visible={modalVisible} {hasKey} {template} /> |
|
|
|
{/if} |
|
|
|
</div> |
|
|
|
|
|
|
|
<style> |
|
|
|
.container { |
|
|
|
display: grid; |
|
|
|
gap: var(--spacing-xl); |
|
|
|
margin: 40px 80px; |
|
|
|
} |
|
|
|
|
|
|
|
.header { |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
margin: 40px 80px 0px 80px; |
|
|
|
} |
|
|
|
|
|
|
|
.welcome { |
|
|
|
font-size: var(--font-size-3xl); |
|
|
|
color: var(--ink); |
|
|
|
font-weight: 600; |
|
|
|
} |
|
|
|
|
|
|
|
.banner { |
|
|
|
@ -88,7 +98,6 @@ |
|
|
|
position: relative; |
|
|
|
text-align: center; |
|
|
|
color: white; |
|
|
|
margin: 20px 80px 40px 80px; |
|
|
|
border-radius: 16px; |
|
|
|
} |
|
|
|
|
|
|
|
|