Merge pull request #529 from Budibase/Tidy-ups-and-implementing-new-BBUI-vars
Tidy ups and welcome screen made less busy
This commit is contained in:
commit
33a6ed835d
|
@ -13,35 +13,26 @@
|
||||||
<style>
|
<style>
|
||||||
.apps-card {
|
.apps-card {
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
padding: 20px 20px 20px 20px;
|
padding: var(--spacing-xl);
|
||||||
max-width: 400px;
|
max-width: 300px;
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
border-radius: 5px;
|
border-radius: var(--border-radius-m);
|
||||||
border: 1px solid var(--grey-4);
|
border: var(--border-dark);
|
||||||
font-family: Inter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-button:hover {
|
.app-button:hover {
|
||||||
background-color: var(--grey-1);
|
background-color: var(--white);
|
||||||
|
color: var(--black);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-title {
|
.app-title {
|
||||||
font-size: 18px;
|
font-size: var(--font-size-l);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-desc {
|
|
||||||
color: var(--grey-7);
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-line-clamp: 1;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-footer {
|
.card-footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -52,17 +43,18 @@
|
||||||
.app-button {
|
.app-button {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: var(--white);
|
background-color: var(--ink);
|
||||||
color: var(--ink);
|
color: var(--white);
|
||||||
|
border: 1.5px var(--ink) solid;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 12px 20px;
|
padding: 8px 16px;
|
||||||
border-radius: 5px;
|
border-radius: var(--border-radius-s);
|
||||||
border: 1px var(--grey-2) solid;
|
font-size: var(--font-size-xs);
|
||||||
font-size: 14px;
|
font-weight: 500;
|
||||||
font-weight: 400;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
font-family: var(--font-sans);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
<style>
|
<style>
|
||||||
.apps {
|
.apps {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||||
grid-gap: 20px 40px;
|
grid-gap: var(--layout-m);
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,16 +208,17 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
{#if $createAppStore.currentStep > 0}
|
{#if $createAppStore.currentStep > 0}
|
||||||
<Button secondary on:click={back}>Back</Button>
|
<Button medium secondary on:click={back}>Back</Button>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $createAppStore.currentStep < steps.length - 1}
|
{#if $createAppStore.currentStep < steps.length - 1}
|
||||||
<Button secondary on:click={next} disabled={!currentStepIsValid}>
|
<Button medium blue on:click={next} disabled={!currentStepIsValid}>
|
||||||
Next
|
Next
|
||||||
</Button>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $createAppStore.currentStep === steps.length - 1}
|
{#if $createAppStore.currentStep === steps.length - 1}
|
||||||
<Button
|
<Button
|
||||||
secondary
|
medium
|
||||||
|
blue
|
||||||
on:click={signUp}
|
on:click={signUp}
|
||||||
disabled={!fullFormIsValid || submitting}>
|
disabled={!fullFormIsValid || submitting}>
|
||||||
{submitting ? 'Loading...' : 'Submit'}
|
{submitting ? 'Loading...' : 'Submit'}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
let blurred = { appName: false }
|
let blurred = { appName: false }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h2>Create your first web app</h2>
|
<h2>Create your web app</h2>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<Input
|
<Input
|
||||||
on:input={() => (blurred.appName = true)}
|
on:input={() => (blurred.appName = true)}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
type="pasword"
|
type="pasword"
|
||||||
error={blurred.password && validationErrors.password} />
|
error={blurred.password && validationErrors.password} />
|
||||||
<Select name="accessLevelId">
|
<Select secondary name="accessLevelId">
|
||||||
<option value="ADMIN">Admin</option>
|
<option value="ADMIN">Admin</option>
|
||||||
<option value="POWER_USER">Power User</option>
|
<option value="POWER_USER">Power User</option>
|
||||||
</Select>
|
</Select>
|
||||||
|
|
|
@ -601,7 +601,7 @@ export default {
|
||||||
name: "Donut Chart",
|
name: "Donut Chart",
|
||||||
_component: "@budibase/standard-components/donut",
|
_component: "@budibase/standard-components/donut",
|
||||||
description: "Donut chart",
|
description: "Donut chart",
|
||||||
icon: "ri-pie-chart-fill",
|
icon: "ri-pie-chart-line",
|
||||||
properties: {
|
properties: {
|
||||||
settings: [
|
settings: [
|
||||||
{
|
{
|
||||||
|
@ -695,35 +695,6 @@ export default {
|
||||||
},
|
},
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Data List",
|
|
||||||
_component: "@budibase/standard-components/datalist",
|
|
||||||
description: "Shiny list",
|
|
||||||
icon: "ri-file-list-fill",
|
|
||||||
properties: {
|
|
||||||
design: { ...all },
|
|
||||||
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
|
||||||
},
|
|
||||||
children: [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "List",
|
|
||||||
_component: "@budibase/standard-components/list",
|
|
||||||
description: "Renders all children once per record, of a given table",
|
|
||||||
icon: "ri-file-list-fill",
|
|
||||||
properties: {
|
|
||||||
design: { ...all },
|
|
||||||
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
_component: "@budibase/standard-components/heading",
|
|
||||||
name: "Headline",
|
|
||||||
description: "A component for displaying heading text",
|
|
||||||
icon: "ri-heading",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// {
|
// {
|
||||||
// name: "Data List",
|
// name: "Data List",
|
||||||
// _component: "@budibase/standard-components/datalist",
|
// _component: "@budibase/standard-components/datalist",
|
||||||
|
|
|
@ -226,7 +226,7 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 20px;
|
bottom: 20px;
|
||||||
display: grid;
|
display: grid;
|
||||||
width: 100%;
|
width: 260px;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,17 +2,11 @@
|
||||||
import Modal from "svelte-simple-modal"
|
import Modal from "svelte-simple-modal"
|
||||||
import { Home as Link } from "@budibase/bbui"
|
import { Home as Link } from "@budibase/bbui"
|
||||||
import {
|
import {
|
||||||
SettingsIcon,
|
|
||||||
AppsIcon,
|
AppsIcon,
|
||||||
UpdatesIcon,
|
|
||||||
HostingIcon,
|
HostingIcon,
|
||||||
DocumentationIcon,
|
DocumentationIcon,
|
||||||
TutorialsIcon,
|
|
||||||
CommunityIcon,
|
CommunityIcon,
|
||||||
ContributionIcon,
|
|
||||||
BugIcon,
|
BugIcon,
|
||||||
EmailIcon,
|
|
||||||
TwitterIcon,
|
|
||||||
} from "components/common/Icons/"
|
} from "components/common/Icons/"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -24,16 +18,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="nav-section">
|
<div class="nav-section">
|
||||||
<div class="nav-section-title">Build</div>
|
|
||||||
<Link icon={AppsIcon} title="Apps" href="/" active />
|
<Link icon={AppsIcon} title="Apps" href="/" active />
|
||||||
<Link
|
<Link
|
||||||
icon={HostingIcon}
|
icon={HostingIcon}
|
||||||
title="Hosting"
|
title="Hosting"
|
||||||
href="https://portal.budi.live/" />
|
href="https://portal.budi.live/" />
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="nav-section">
|
|
||||||
<div class="nav-section-title">Learn</div>
|
|
||||||
<Link
|
<Link
|
||||||
icon={DocumentationIcon}
|
icon={DocumentationIcon}
|
||||||
title="Documentation"
|
title="Documentation"
|
||||||
|
@ -42,23 +31,11 @@
|
||||||
icon={CommunityIcon}
|
icon={CommunityIcon}
|
||||||
title="Community"
|
title="Community"
|
||||||
href="https://forum.budibase.com/" />
|
href="https://forum.budibase.com/" />
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="nav-section">
|
|
||||||
<div class="nav-section-title">Contact</div>
|
|
||||||
<Link
|
|
||||||
icon={ContributionIcon}
|
|
||||||
title="Contribute"
|
|
||||||
href="https://github.com/Budibase/budibase" />
|
|
||||||
<Link
|
<Link
|
||||||
icon={BugIcon}
|
icon={BugIcon}
|
||||||
title="Report bug"
|
title="Raise an issue"
|
||||||
href="https://github.com/Budibase/budibase/issues" />
|
href="https://github.com/Budibase/budibase" />
|
||||||
<Link icon={EmailIcon} title="Email" href="mailto:hi@budibase.com" />
|
|
||||||
<Link
|
|
||||||
icon={TwitterIcon}
|
|
||||||
title="Twitter"
|
|
||||||
href="https://twitter.com/budibase" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -88,6 +65,7 @@
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
border-right: var(--border-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-logo {
|
.home-logo {
|
||||||
|
@ -105,11 +83,4 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-section-title {
|
|
||||||
font-size: 20px;
|
|
||||||
color: var(--ink);
|
|
||||||
font-weight: 600;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -66,7 +66,9 @@
|
||||||
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="welcome">Welcome to the Budibase Beta</div>
|
<div class="welcome">Welcome to the Budibase Beta</div>
|
||||||
<Button purple large on:click={showCreateAppModal}>Create New Web App</Button>
|
<Button primary purple on:click={showCreateAppModal}>
|
||||||
|
Create New Web App
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="banner">
|
<div class="banner">
|
||||||
|
@ -95,9 +97,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome {
|
.welcome {
|
||||||
font-size: 42px;
|
font-size: var(--font-size-3xl);
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
|
@ -108,7 +110,7 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: white;
|
color: white;
|
||||||
margin: 20px 80px 40px 80px;
|
margin: 20px 80px 40px 80px;
|
||||||
border-radius: 10px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner img {
|
.banner img {
|
||||||
|
|
Loading…
Reference in New Issue