1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Update deploy page to use spectrum

This commit is contained in:
Andrew Kingston 2021-04-22 13:37:24 +01:00
parent 12c0845eeb
commit 1dc72c5a4a
2 changed files with 28 additions and 22 deletions

View file

@ -75,7 +75,9 @@
} catch (err) {
console.error(err)
clearInterval(poll)
notifications.error("Error fetching deployment history. Please try again.")
notifications.error(
"Error fetching deployment history. Please try again."
)
}
}
@ -96,7 +98,7 @@
{#if deployments.length > 0}
<section class="deployment-history" in:slide>
<header>
<h4>Deployment History</h4>
<Heading>Deployment History</Heading>
<div class="deploy-div">
{#if deployments.some(deployment => deployment.status === DeploymentStatus.SUCCESS)}
<a target="_blank" href={deploymentUrl}> View Your Deployed App </a>
@ -148,13 +150,13 @@
</Modal>
<style>
.deployment:nth-child(odd) {
background: var(--grey-1);
section {
padding: var(--spacing-xl) 0;
}
.deployment-list {
height: 40vh;
overflow-y: scroll;
overflow-y: auto;
}
h4 {
@ -163,9 +165,10 @@
}
header {
margin-left: var(--spacing-l);
margin-bottom: var(--spacing-xl);
margin-right: var(--spacing-l);
padding-left: var(--spacing-l);
padding-bottom: var(--spacing-xl);
padding-right: var(--spacing-l);
border-bottom: var(--border-light);
}
.deploy-div {
@ -183,10 +186,14 @@
.deployment {
padding: var(--spacing-l);
height: 100px;
height: 60px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: var(--border-light);
}
.deployment:last-child {
border-bottom: none;
}
.deployment-info {

View file

@ -1,7 +1,6 @@
<script>
import { Button, Modal } from "@budibase/bbui"
import { Button, Modal, notifications, Heading } from "@budibase/bbui"
import { store, hostingStore } from "builderStore"
import { notifications } from "@budibase/bbui"
import api from "builderStore/api"
import DeploymentHistory from "components/deploy/DeploymentHistory.svelte"
import analytics from "analytics"
@ -58,11 +57,11 @@
</script>
<section>
<div>
<h4>It's time to shine!</h4>
<Button secondary medium on:click={deployApp}>Deploy App</Button>
</div>
<img src={Rocket} alt="Rocket flying through sky" />
<div>
<Heading m>It's time to shine!</Heading>
<Button size="XL" cta medium on:click={deployApp}>Deploy App</Button>
</div>
</section>
<Modal bind:this={feedbackModal}>
<FeedbackIframe on:finished={() => feedbackModal.hide()} />
@ -73,17 +72,13 @@
img {
width: 100%;
height: 100%;
}
h4 {
color: white;
font-size: 18px;
font-weight: bold;
margin-bottom: 30px;
object-fit: cover;
filter: brightness(80%);
}
section {
position: relative;
min-height: 100%;
}
div {
@ -99,5 +94,9 @@
margin-left: auto;
margin-right: auto;
width: 50%;
gap: var(--spacing-xl);
}
div :global(h1) {
color: white;
}
</style>