forked from tsai/budibase
8 changed files with 109 additions and 1024 deletions
|
After Width: | Height: | Size: 167 KiB |
@ -0,0 +1,68 @@ |
|||||
|
<script> |
||||
|
import { ModalContent, Body } from "@budibase/bbui" |
||||
|
import { auth } from "stores/portal" |
||||
|
import TemplateList from "./TemplateList.svelte" |
||||
|
import CreateAppModal from "./CreateAppModal.svelte" |
||||
|
import BudiWorldImage from "assets/budiworld.webp" |
||||
|
|
||||
|
let step = 0 |
||||
|
let template |
||||
|
|
||||
|
function nextStep() { |
||||
|
step += 1 |
||||
|
} |
||||
|
|
||||
|
function selectTemplate(selectedTemplate) { |
||||
|
// get the template from the URL |
||||
|
template = selectedTemplate |
||||
|
nextStep() |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
{#if step === 0} |
||||
|
<ModalContent |
||||
|
title={`Welcome ${$auth.user?.firstName + "!" || "!"}`} |
||||
|
confirmText="Next" |
||||
|
onConfirm={() => { |
||||
|
nextStep() |
||||
|
return false |
||||
|
}} |
||||
|
> |
||||
|
<Body size="S"> |
||||
|
<p>Welcome to Budibase!</p> |
||||
|
|
||||
|
<p> |
||||
|
We're different from other development tools in some really special |
||||
|
ways, so we'd like to take you through them. |
||||
|
</p> |
||||
|
</Body> |
||||
|
<img |
||||
|
alt="Budibase community world" |
||||
|
class="budibase-world-image" |
||||
|
src={BudiWorldImage} |
||||
|
/> |
||||
|
</ModalContent> |
||||
|
{:else if step === 1} |
||||
|
<ModalContent |
||||
|
title={"Start from scratch or select a template"} |
||||
|
confirmText="Start from Scratch" |
||||
|
onConfirm={() => { |
||||
|
nextStep() |
||||
|
return false |
||||
|
}} |
||||
|
> |
||||
|
<Body size="S"> |
||||
|
One of the coolest things about Budibase is that you don't have to start |
||||
|
from scratch. Simply select a template below, and get to work. |
||||
|
</Body> |
||||
|
<TemplateList onSelect={selectTemplate} /> |
||||
|
</ModalContent> |
||||
|
{:else if step === 2} |
||||
|
<CreateAppModal {template} /> |
||||
|
{/if} |
||||
|
|
||||
|
<style> |
||||
|
.budibase-world-image { |
||||
|
height: 200px; |
||||
|
} |
||||
|
</style> |
||||
File diff suppressed because it is too large
Loading…
Reference in new issue