2021-07-29 18:02:36 +02:00
|
|
|
<script lang="typescript">
|
2021-12-06 16:12:37 +01:00
|
|
|
import { fly } from "svelte/transition";
|
2021-12-23 13:09:28 +01:00
|
|
|
import { userIsAdminStore, limitMapStore } from "../../Stores/GameStore";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { ADMIN_URL } from "../../Enum/EnvironmentVariable";
|
|
|
|
|
|
|
|
const upgradeLink = ADMIN_URL + "/pricing";
|
2021-12-10 01:51:40 +01:00
|
|
|
const registerLink = ADMIN_URL + "/second-step-register";
|
2021-07-29 18:02:36 +02:00
|
|
|
</script>
|
|
|
|
|
2021-12-06 16:12:37 +01:00
|
|
|
<main class="warningMain" transition:fly={{ y: -200, duration: 500 }}>
|
2021-07-30 14:08:27 +02:00
|
|
|
{#if $userIsAdminStore}
|
2021-12-10 01:54:48 +01:00
|
|
|
<h2>Warning!</h2>
|
2021-12-06 16:12:37 +01:00
|
|
|
<p>
|
2021-12-23 15:06:32 +01:00
|
|
|
This world is close to its limit!. You can upgrade its capacity <a href={upgradeLink} target="_blank"
|
|
|
|
>here</a
|
2021-12-06 16:12:37 +01:00
|
|
|
>
|
|
|
|
</p>
|
2021-12-23 13:09:28 +01:00
|
|
|
{:else if $limitMapStore}
|
2021-12-10 01:51:40 +01:00
|
|
|
<p>
|
|
|
|
Your are une test mode. This map will be opened during 2 days. You can register your domain <a
|
|
|
|
href={registerLink}>here</a
|
|
|
|
>!
|
|
|
|
</p>
|
2021-07-30 14:08:27 +02:00
|
|
|
{:else}
|
2021-12-10 01:54:48 +01:00
|
|
|
<h2>Warning!</h2>
|
2021-07-30 14:08:27 +02:00
|
|
|
<p>This world is close to its limit!</p>
|
2021-12-06 16:12:37 +01:00
|
|
|
{/if}
|
2021-07-29 18:02:36 +02:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2021-12-06 16:12:37 +01:00
|
|
|
main.warningMain {
|
|
|
|
pointer-events: auto;
|
|
|
|
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;
|
2021-07-29 18:02:36 +02:00
|
|
|
h2 {
|
2021-12-06 16:12:37 +01:00
|
|
|
padding: 5px;
|
2021-07-29 18:02:36 +02:00
|
|
|
}
|
|
|
|
}
|
2021-12-06 16:12:37 +01:00
|
|
|
</style>
|