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

View file

@ -1,7 +1,6 @@
<script> <script>
import { Button, Modal } from "@budibase/bbui" import { Button, Modal, notifications, Heading } from "@budibase/bbui"
import { store, hostingStore } from "builderStore" import { store, hostingStore } from "builderStore"
import { notifications } from "@budibase/bbui"
import api from "builderStore/api" import api from "builderStore/api"
import DeploymentHistory from "components/deploy/DeploymentHistory.svelte" import DeploymentHistory from "components/deploy/DeploymentHistory.svelte"
import analytics from "analytics" import analytics from "analytics"
@ -58,11 +57,11 @@
</script> </script>
<section> <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" /> <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> </section>
<Modal bind:this={feedbackModal}> <Modal bind:this={feedbackModal}>
<FeedbackIframe on:finished={() => feedbackModal.hide()} /> <FeedbackIframe on:finished={() => feedbackModal.hide()} />
@ -73,17 +72,13 @@
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} object-fit: cover;
filter: brightness(80%);
h4 {
color: white;
font-size: 18px;
font-weight: bold;
margin-bottom: 30px;
} }
section { section {
position: relative; position: relative;
min-height: 100%;
} }
div { div {
@ -99,5 +94,9 @@
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 50%; width: 50%;
gap: var(--spacing-xl);
}
div :global(h1) {
color: white;
} }
</style> </style>