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";
|
2022-01-21 17:06:03 +01:00
|
|
|
import LL from "../../i18n/i18n-svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
|
|
|
|
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}
|
2022-01-21 17:06:03 +01:00
|
|
|
<h2>{$LL.warning.title()}</h2>
|
2021-12-06 16:12:37 +01:00
|
|
|
<p>
|
2022-01-21 17:06:03 +01:00
|
|
|
{$LL.warning.content({ upgradeLink })}
|
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>
|
2022-01-05 11:49:01 +01:00
|
|
|
This map is available for 2 days. You can register your domain <a href={registerLink}>here</a>!
|
2021-12-10 01:51:40 +01:00
|
|
|
</p>
|
2021-07-30 14:08:27 +02:00
|
|
|
{:else}
|
2022-01-21 17:06:03 +01:00
|
|
|
<h2>{$LL.warning.title()}</h2>
|
|
|
|
<p>{$LL.warning.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 {
|
2022-01-25 11:52:31 +01:00
|
|
|
pointer-events: auto;
|
2022-02-16 20:15:16 +01:00
|
|
|
width: 100%;
|
2022-01-25 15:24:36 +01:00
|
|
|
background-color: #f9e81e;
|
|
|
|
color: #14304c;
|
2022-01-25 11:52:31 +01:00
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
2022-01-05 10:27:40 +01:00
|
|
|
|
2022-02-16 20:15:16 +01:00
|
|
|
top: 0;
|
2022-01-05 10:27:40 +01:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2022-01-25 11:52:31 +01:00
|
|
|
font-family: Lato;
|
|
|
|
min-width: 300px;
|
|
|
|
opacity: 0.9;
|
2022-01-05 10:30:27 +01:00
|
|
|
z-index: 700;
|
2022-01-25 11:52:31 +01:00
|
|
|
h2 {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2022-01-25 11:37:29 +01:00
|
|
|
|
2022-01-25 11:52:31 +01:00
|
|
|
a {
|
|
|
|
color: #ff475a;
|
|
|
|
}
|
2021-07-29 18:02:36 +02:00
|
|
|
}
|
2021-12-06 16:12:37 +01:00
|
|
|
</style>
|