@page "/"
@page "/index.html"
@inject IJSRuntime JsRuntime
@using nkast.Wasm.Canvas

<PageTitle>LittleSim</PageTitle>

<div id="canvasHolder" style="
    background: #000;
    margin:0%;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    width:100vw;
    height:100vh;
">
    <canvas id="theCanvas" style="touch-action:none;"></canvas>
</div>

<div class="connect-bar">
    <span class="title">LittleSim</span>
    <input class="server" placeholder="ws://host:9050"
           @bind="_serverAddress" @bind:event="oninput"
           @onkeydown="OnAddressKey" />
    <button class="connect" @onclick="Connect">Подключиться</button>
    <span class="status @StatusClass">@StatusText</span>
</div>
