Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (59 loc) · 2.76 KB
/
Copy pathindex.html
File metadata and controls
66 lines (59 loc) · 2.76 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Testcontainers: The Game — Spin · Test · Clean · Repeat</title>
<meta name="description" content="A four-level browser game about Testcontainers: choose wait strategies, diagnose flaky tests, connect container ports, and clean up with Ryuk." />
<meta name="color-scheme" content="dark" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="preload" href="/fonts/rubik-regular.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="/fonts/roboto-mono-medium.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="/styles/fonts.css" />
<link rel="stylesheet" href="/styles/game.css" />
</head>
<body>
<div class="app">
<header class="topbar">
<div class="brand">
<img class="brand-mark" src="/brand/testcontainers-mark.svg" width="36" height="40" alt="" />
<h1>Testcontainers <em>the game</em></h1>
</div>
<nav class="levelnav" id="levelnav" aria-label="Levels"></nav>
<button class="icon-btn" id="soundBtn" type="button" aria-pressed="true" title="Toggle sound">
<span aria-hidden="true">♪</span><span class="sr-only">Toggle sound</span>
</button>
</header>
<main>
<div class="stage" id="stage">
<canvas id="game" width="960" height="540" aria-label="Game board. Full instructions and controls are listed below the board."></canvas>
<div class="hud" aria-hidden="true">
<span class="pill pill-level" id="hudLevel">Level 1</span>
<span class="hud-spacer"></span>
<span class="pill" id="hudScore">0</span>
<span class="pill pill-lives" id="hudLives">♥♥♥</span>
</div>
<div class="overlay" id="overlay"></div>
<p class="sr-only" id="live" role="status" aria-live="polite"></p>
</div>
<p class="rotate-hint">Turn your phone sideways for a bigger board.</p>
<div class="touchbar" id="touchbar" hidden></div>
<section class="howto">
<h2>How to play</h2>
<div class="howto-grid" id="howtoGrid"></div>
<p class="keys">
Keys vary by level: <kbd>1</kbd>–<kbd>5</kbd> choose ·
<kbd>↑</kbd><kbd>↓</kbd><kbd>←</kbd><kbd>→</kbd> move ·
<kbd>Space</kbd> / <kbd>Enter</kbd> rotate pipes ·
<kbd>R</kbd> re-run evidence in level 2 · <kbd>P</kbd> pause or resume ·
<kbd>Esc</kbd> menu. Restart from the pause menu.
</p>
</section>
</main>
<footer>
<p>Build · Test · Ship — a fan game about <a href="https://testcontainers.com" rel="noopener">Testcontainers</a>. Your progress is stored locally in this browser.</p>
</footer>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>