2024-04-10 20:45:11 +02:00
|
|
|
<link rel="stylesheet" href="/assets/css/landing.css">
|
|
|
|
|
|
|
|
<div class="loginContainer">
|
|
|
|
<div class="background">
|
|
|
|
<div class="bgShip small ally" id="bgs1">
|
|
|
|
<div class="field" id="f1"></div>
|
|
|
|
<div class="field" id="f2"></div>
|
|
|
|
<div class="field" id="f3"></div>
|
|
|
|
<div class="field" id="f4"></div>
|
|
|
|
</div>
|
|
|
|
<div class="bgShip big ally" id="bgs2">
|
|
|
|
<div class="field" id="f8"></div>
|
|
|
|
</div>
|
|
|
|
<div class="bgShip big enemy" id="bgs3">
|
|
|
|
<div class="field" id="f5"></div>
|
|
|
|
<div class="field" id="f6"></div>
|
|
|
|
<div class="field" id="f7"></div>
|
|
|
|
</div>
|
|
|
|
<div class="bgShip small enemy" id="bgs4">
|
|
|
|
<div class="field" id="f9"></div>
|
|
|
|
<div class="field" id="f10"></div>
|
|
|
|
</div>
|
2024-04-10 22:26:06 +02:00
|
|
|
|
|
|
|
<div class="bgShip small ally" id="bgs5">
|
|
|
|
<div class="field"></div>
|
|
|
|
<div class="field"></div>
|
|
|
|
<div class="field"></div>
|
|
|
|
</div>
|
|
|
|
<div class="bgShip big enemy" id="bgs6">
|
|
|
|
<div class="field"></div>
|
|
|
|
<div class="field"></div>
|
|
|
|
<div class="field"></div>
|
|
|
|
<div class="field"></div>
|
|
|
|
</div>
|
2024-04-10 20:45:11 +02:00
|
|
|
</div>
|
|
|
|
|
2024-04-10 22:26:06 +02:00
|
|
|
<div class="container" id="loginView">
|
2024-04-10 20:45:11 +02:00
|
|
|
<div class="outer">
|
|
|
|
<h2>{{ t 'login.Login' }}</h2>
|
|
|
|
<div class="modes">
|
|
|
|
<div>
|
2024-04-10 22:26:06 +02:00
|
|
|
<form action="#" method="post" id="loginForm">
|
2024-04-10 20:45:11 +02:00
|
|
|
<input type="email" name="email" placeholder="{{ t 'login.E-mail address' }}"
|
2024-04-11 19:10:45 +02:00
|
|
|
style="font-size: 1rem;" id="email">
|
2024-04-10 20:45:11 +02:00
|
|
|
<input type="submit" value="{{ t 'login.Proceed' }}">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-04-10 22:26:06 +02:00
|
|
|
<div class="container" id="authView">
|
2024-04-10 20:45:11 +02:00
|
|
|
<div class="outer">
|
2024-04-10 22:26:06 +02:00
|
|
|
<h2>{{ t 'auth.Authorisation' }}</h2>
|
2024-04-10 20:45:11 +02:00
|
|
|
<div class="modes">
|
|
|
|
<div>
|
2024-04-10 22:26:06 +02:00
|
|
|
<p>{{ t 'auth.Enter the code sent to your e-mail box' }}</p>
|
2024-04-11 19:10:45 +02:00
|
|
|
<form action="/api/auth" method="post" id="authForm">
|
2024-04-10 22:26:06 +02:00
|
|
|
<input type="text" name="code" placeholder="{{ t 'auth.Code' }}" style="font-size: 1rem;"
|
2024-04-11 19:10:45 +02:00
|
|
|
minlength="8" maxlength="10" autocomplete="off" id="authcode">
|
2024-04-10 22:26:06 +02:00
|
|
|
<input type="submit" value="{{ t 'auth.Login' }}">
|
2024-04-10 20:45:11 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-10 22:26:06 +02:00
|
|
|
|
|
|
|
<p class="footer">© 2024 MCJK <a href="/privacy">{{ t 'landing.Privacy policy' }}</a></p>
|
2024-04-10 20:45:11 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="landing">
|
|
|
|
<h1>Statki</h1>
|
2024-04-10 22:26:06 +02:00
|
|
|
<p>{{ t 'landing.The #1 online multiplayer battleships game' }}</p>
|
|
|
|
<span id="scrolldowntext">{{ t 'landing.SCROLL DOWN' }}</span>
|
2024-04-10 20:45:11 +02:00
|
|
|
</div>
|
|
|
|
|
2024-04-10 22:26:06 +02:00
|
|
|
<script>
|
|
|
|
window.locale = {
|
|
|
|
"Reconnecting": "{{ t 'errors.Reconnecting' }}",
|
|
|
|
"Reconnected": "{{ t 'errors.Reconnected' }}",
|
|
|
|
"Reconnection error occured": "{{ t 'errors.Reconnection error occured' }}",
|
|
|
|
"Reconnection failed": "{{ t 'errors.Reconnection failed' }}",
|
|
|
|
"Disconnected": "{{ t 'errors.Disconnected' }}",
|
|
|
|
"Try to refresh the page if this error reoccurs": "{{ t 'errors.Try to refresh the page if this error reoccurs' }}",
|
|
|
|
"Connection error": "{{ t 'errors.Connection error' }}",
|
2024-04-11 19:10:45 +02:00
|
|
|
|
|
|
|
"E-mail address is required": "{{ t 'landing.E-mail address is required' }}",
|
|
|
|
"Auth code is required": "{{ t 'landing.Auth code is required' }}",
|
2024-04-10 22:26:06 +02:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<script src="/assets/js/spa_lib.js"></script>
|
|
|
|
<script src="/assets/js/landing.js"></script>
|
|
|
|
<script src="/assets/js/socket-err-handler.js"></script>
|