game3 / client / public / index.html
 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en" class="boot">
<head>
<meta charset="utf-8">
<title>TESSERA</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<meta name="theme-color" content="#f3ddc4">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="TESSERA">
<link rel="apple-touch-icon" href="./icons/apple-touch-icon.png">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%23f3ddc4'/%3E%3Cpath d='M16 8 26 14 16 20 6 14Z' fill='%23e8927c'/%3E%3Cpath d='M6 14v4l10 6v-4Z' fill='%23c26e5b'/%3E%3Cpath d='M26 14v4l-10 6v-4Z' fill='%23a35233'/%3E%3C/svg%3E">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="stage"><div id="arena"><canvas id="game"></canvas></div></div>

<div id="hud">
  <div id="logo">TESSERA</div>
  <div id="clock" class="hidden"></div>
  <div id="chips"></div>
  <button id="copybtn" title="Copy invite link" data-i18n="hud.invite" data-i18n-attr="title:hud.invite.title">⧉ invite</button>
  <div id="status"><span id="statdot"></span><span id="stattext" data-i18n="hud.waking">waking…</span></div>
</div>

<!-- boot splash: shown from first paint until main.ts decides gate vs auto-join -->
<div id="ovSplash" class="overlay">
  <div class="panel">
    <div class="title">TESS<span class="p">ERA</span></div>
    <p id="splashmsg" class="sub"></p>
  </div>
</div>

<!-- join screen -->
<div id="ovJoin" class="overlay">
  <div class="panel">
    <div class="title">TESS<span class="p">ERA</span></div>
    <div class="sub" data-i18n="join.sub">a quiet race of mosaics</div>
    <input id="nick" maxlength="32" placeholder="your name" autocomplete="off" autocapitalize="off" spellcheck="false" data-i18n-attr="placeholder:join.nick">
    <button id="playbtn" class="big" data-i18n="join.play">Step onto the terrace</button>
    <div class="hint" id="joinhint"><span id="joinhow" data-i18n="join.hint.keys">steer with ← → ↑ ↓ or WASD — your pilgrim walks on its own</span><br id="joinpaintbr">
      <span id="joinpaint" data-i18n="join.hint.paint">paint tiles as you walk · blooms splash a whole patch</span><br>
      <span data-i18n="join.hint.win">largest mosaic at sunset takes the round · first to 3 rounds</span></div>
  </div>
</div>

<!-- lobby -->
<div id="ovLobby" class="overlay hidden">
  <div class="panel">
    <div class="sub" data-i18n="lobby.sub">pilgrims on the terrace</div>
    <div id="roster"></div>
    <button id="startbtn" class="big hidden" data-i18n="lobby.start">Begin the pilgrimage</button>
    <div id="waitmsg" class="hint" data-i18n="lobby.wait">waiting for the host to begin…</div>
    <div class="hint"><span id="lobbyhow" data-i18n="join.hint.keys">steer with ← → ↑ ↓ or WASD — your pilgrim walks on its own</span></div>
    <button id="sharebtn" class="big" data-i18n="lobby.share">📤 invite friends</button>
    <div class="hint" data-i18n="lobby.invite-hint">anyone with the link can join — the link is the key</div>
  </div>
</div>

<!-- round / match result -->
<div id="ovMsg" class="overlay hidden" style="background:#f3ddc466">
  <div style="display:flex;flex-direction:column;gap:14px;align-items:center">
    <div id="bigmsg"></div>
    <div id="submsg"></div>
  </div>
</div>

<div id="countnum" class="hidden"></div>
<div id="tapzones" class="hidden"><div data-i18n="tap.swipe">swipe to steer</div></div>
<div id="toast"></div>

<script defer src="./assets/main.js"></script>
</body>
</html>

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/game3.git