~starkingdoms/starkingdoms

ref: 297f290ad7f583d8e2cfbdd18630df88d121142e starkingdoms/starkingdoms-client/index.html -rw-r--r-- 2.0 KiB
297f290a — core add license and config system 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="/style.css"/>
    <link rel="stylesheet" href="/themes/catppuccin-mocha/colors.css"/>
    <title>StarKingdoms</title>
</head>
<body class="bg-grid">
<div class="popup" id="server_selector">

    <h1>StarKingdoms</h1>
    <h2>Join Game</h2>

    <form id="join-fm">
        <label>Choose server</label>

        <div class="fm-select">
            <button class="fm-select-button" role="combobox" aria-labelledby="server selector" aria-haspopup="listbox"
                    aria-expanded="false" aria-controls="fm-select-dropdown">
                <span class="fm-selected-value">Loading servers list</span>
                <span class="fm-arrow"></span>
            </button>
            <ul class="fm-select-dropdown" role="listbox" id="fm-select-dropdown">
                <!-- Filled by TS -->
            </ul>
        </div>

        <label for="username" class="username-label">Username</label>
        <input class="username-box" id="username" required autocomplete="off"/>
        <button id="launch-btn" class="launch-btn">Launch!</button>
        <span id="server-danger" class="server-danger hidden">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="server-danger-icon">
  <path fill-rule="evenodd"
        d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
        clip-rule="evenodd"/>
</svg>
Here be dragons! You have a <b>prerelease server</b> selected. Expect bugs, and save data on this server may be wiped at any time.
        </span>
    </form>
</div>

<div id="gamewindow" class="game">
    <!-- Canvas gets added here by the game script -->
</div>

<span class="footer" id="footer"></span>

<script type="module" src="src/main.ts"></script>
</body>
</html>