2021-07-29 18:02:36 +02:00
|
|
|
<script lang="typescript">
|
|
|
|
import { fly } from 'svelte/transition';
|
2021-07-30 14:08:27 +02:00
|
|
|
import {userIsAdminStore} from "../../Stores/GameStore";
|
|
|
|
import {ADMIN_URL} from "../../Enum/EnvironmentVariable";
|
|
|
|
|
|
|
|
const upgradeLink = ADMIN_URL+'/pricing';
|
|
|
|
|
2021-07-29 18:02:36 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<main class="warningMain" transition:fly="{{ y: -200, duration: 500 }}">
|
|
|
|
<h2>Warning!</h2>
|
2021-07-30 14:08:27 +02:00
|
|
|
{#if $userIsAdminStore}
|
|
|
|
<p>This world is close to its limit!. You can upgrade its capacity <a href="{upgradeLink}" target="_blank">here</a></p>
|
|
|
|
{:else}
|
|
|
|
<p>This world is close to its limit!</p>
|
|
|
|
{/if}
|
|
|
|
|
2021-07-29 18:02:36 +02:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
main.warningMain {
|
2021-07-30 14:08:27 +02:00
|
|
|
pointer-events: auto;
|
2021-07-29 18:02:36 +02:00
|
|
|
width: 100vw;
|
|
|
|
background-color: red;
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, 0);
|
|
|
|
font-family: Lato;
|
|
|
|
min-width: 300px;
|
|
|
|
opacity: 0.9;
|
|
|
|
z-index: 2;
|
|
|
|
h2 {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|