desktop deprecation banner

This commit is contained in:
Mike Shanks 2021-05-12 17:17:08 +01:00
parent 93596311bb
commit 787d397593
1 changed files with 51 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<script> <script>
import { Home as Link } from "@budibase/bbui" import { Home as Link, Button } from "@budibase/bbui"
import { import {
AppsIcon, AppsIcon,
HostingIcon, HostingIcon,
@ -10,8 +10,28 @@
import BuilderSettingsButton from "components/start/BuilderSettingsButton.svelte" import BuilderSettingsButton from "components/start/BuilderSettingsButton.svelte"
let modal let modal
$: deprecationWarning = true
</script> </script>
{#if deprecationWarning}
<div class="deprecation-root">
<div class="deprecation-inner">
<div class="deprecation-text">
From the 25th of May, Budibase is moving to a self-hosted web experience in the browser. We will cease development on the current Electron based desktop builder.
</div>
<div class="deprecation-close">
<a href="https://github.com/Budibase/budibase/discussions/1487" target="_blank">read more</a>
<Button secondary small on:click={() => deprecationWarning = false}>
Close
</Button>
</div>
</div>
</div>
{/if}
<div class="root"> <div class="root">
<div class="ui-nav"> <div class="ui-nav">
<div class="home-logo"> <div class="home-logo">
@ -49,6 +69,36 @@
</div> </div>
<style> <style>
.deprecation-root {
padding: 20px;
background-color: var(--red);
display: flex;
justify-content: center;
}
.deprecation-inner {
display: flex;
max-width: 900px;
align-items: center;
}
.deprecation-text {
flex: 1 1 auto;
color: white;
font-size: 1.1em;
text-align: center;
}
.deprecation-close {
padding-left: 20px;
flex: 0 0 auto;
}
.deprecation-close > a {
margin-right: 20px;
}
.root { .root {
display: grid; display: grid;
grid-template-columns: 260px 1fr; grid-template-columns: 260px 1fr;