Fix styles in create app modal
This commit is contained in:
parent
c1512e1e0e
commit
2d08bc7140
|
@ -1,13 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { writable, get as svelteGet } from "svelte/store"
|
import { writable, get as svelteGet } from "svelte/store"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications, Heading, Button } from "@budibase/bbui"
|
||||||
import { store, automationStore, hostingStore } from "builderStore"
|
import { store, automationStore, hostingStore } from "builderStore"
|
||||||
import { string, object } from "yup"
|
import { string, object } from "yup"
|
||||||
import api, { get } from "builderStore/api"
|
import api, { get } from "builderStore/api"
|
||||||
import Spinner from "components/common/Spinner.svelte"
|
import Spinner from "components/common/Spinner.svelte"
|
||||||
import { Info, User } from "./Steps"
|
import { Info, User } from "./Steps"
|
||||||
import Indicator from "./Indicator.svelte"
|
import Indicator from "./Indicator.svelte"
|
||||||
import { Button } from "@budibase/bbui"
|
|
||||||
import { goto } from "@roxi/routify"
|
import { goto } from "@roxi/routify"
|
||||||
import { fade } from "svelte/transition"
|
import { fade } from "svelte/transition"
|
||||||
import { post } from "builderStore/api"
|
import { post } from "builderStore/api"
|
||||||
|
@ -132,6 +131,8 @@
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
<img src={Logo} alt="budibase icon" />
|
||||||
|
<div class="steps">
|
||||||
{#each steps as component, i}
|
{#each steps as component, i}
|
||||||
<Indicator
|
<Indicator
|
||||||
active={$currentStep === i}
|
active={$currentStep === i}
|
||||||
|
@ -139,9 +140,10 @@
|
||||||
step={i + 1} />
|
step={i + 1} />
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
<h3 class="header">Get Started with Budibase</h3>
|
<Heading h2 l>Get started with Budibase</Heading>
|
||||||
</div>
|
</div>
|
||||||
<div class="step">
|
<div class="step">
|
||||||
{#each steps as component, i (i)}
|
{#each steps as component, i (i)}
|
||||||
|
@ -175,7 +177,6 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img src={Logo} alt="budibase icon" />
|
|
||||||
{#if submitting}
|
{#if submitting}
|
||||||
<div in:fade class="spinner-container">
|
<div in:fade class="spinner-container">
|
||||||
<Spinner />
|
<Spinner />
|
||||||
|
@ -192,12 +193,20 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.sidebar {
|
.sidebar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: stretch;
|
||||||
|
padding: 40px 0;
|
||||||
|
background: var(--grey-1);
|
||||||
|
}
|
||||||
|
.steps {
|
||||||
|
flex: 1 1 auto;
|
||||||
display: grid;
|
display: grid;
|
||||||
border-bottom-left-radius: 0.5rem;
|
border-bottom-left-radius: 0.5rem;
|
||||||
border-top-left-radius: 0.5rem;
|
border-top-left-radius: 0.5rem;
|
||||||
grid-gap: 30px;
|
grid-gap: 30px;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
background: var(--grey-1);
|
|
||||||
}
|
}
|
||||||
.heading {
|
.heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -205,22 +214,18 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.header {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 24px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
.body {
|
.body {
|
||||||
padding: 40px 60px 60px 60px;
|
padding: 40px 60px 40px 60px;
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
grid-template-rows: auto 1fr auto;
|
grid-template-rows: auto 1fr auto;
|
||||||
}
|
}
|
||||||
.footer {
|
.footer {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-gap: 15px;
|
flex-direction: row;
|
||||||
grid-template-columns: auto auto;
|
justify-content: flex-end;
|
||||||
justify-content: end;
|
align-items: center;
|
||||||
|
gap: 15px;
|
||||||
}
|
}
|
||||||
.spinner-container {
|
.spinner-container {
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
|
@ -243,9 +248,7 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 20px;
|
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { Label, Heading, Input } from "@budibase/bbui"
|
import { Label, Heading, Input, notifications } from "@budibase/bbui"
|
||||||
import { notifications } from "@budibase/bbui"
|
|
||||||
|
|
||||||
const BYTES_IN_MB = 1000000
|
const BYTES_IN_MB = 1000000
|
||||||
const FILE_SIZE_LIMIT = BYTES_IN_MB * 5
|
const FILE_SIZE_LIMIT = BYTES_IN_MB * 5
|
||||||
|
@ -27,12 +26,12 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if template?.fromFile}
|
|
||||||
<h2>Import Your Web App From A File</h2>
|
|
||||||
{:else}
|
|
||||||
<h2>Create your Web App</h2>
|
|
||||||
{/if}
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
{#if template?.fromFile}
|
||||||
|
<Heading l h2>Import your Web App</Heading>
|
||||||
|
{:else}
|
||||||
|
<Heading l h2>Create your Web App</Heading>
|
||||||
|
{/if}
|
||||||
{#if template?.fromFile}
|
{#if template?.fromFile}
|
||||||
<div class="template">
|
<div class="template">
|
||||||
<Label extraSmall grey>Import File</Label>
|
<Label extraSmall grey>Import File</Label>
|
||||||
|
@ -65,6 +64,7 @@
|
||||||
.container {
|
.container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: var(--spacing-xl);
|
grid-gap: var(--spacing-xl);
|
||||||
|
margin-top: var(--spacing-xl);
|
||||||
}
|
}
|
||||||
|
|
||||||
.template :global(label) {
|
.template :global(label) {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<script>
|
<script>
|
||||||
import { Input, Select } from "@budibase/bbui"
|
import { Input, Select, Heading } from "@budibase/bbui"
|
||||||
|
|
||||||
export let values
|
export let values
|
||||||
export let errors
|
export let errors
|
||||||
export let touched
|
export let touched
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h2>Create your first User</h2>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<Heading l h2>Create your first User</Heading>
|
||||||
<Input
|
<Input
|
||||||
bind:value={$values.email}
|
bind:value={$values.email}
|
||||||
on:change={() => ($touched.email = true)}
|
on:change={() => ($touched.email = true)}
|
||||||
|
|
Loading…
Reference in New Issue