-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 2.95 KB
/
index.html
File metadata and controls
45 lines (45 loc) · 2.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>BearVsPython website</title>
<link rel="icon" href="/favicon.svg" type="image/svg">
<link rel="shortcut icon" href="/favicon.svg">
<link rel="mask-icon" href="/favicon.svg" color="#1f7ae0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* Full-page black background and readable white text */
:root { color-scheme: dark; }
html, body { height: 100%; margin: 0; background-color: #000; color: #fff; }
body { display: flex; align-items: center; justify-content: center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
.topright { position: absolute; top: 10px; right: 10px; font-size: 20px;}
.container { padding: 2rem; text-align: center; max-width: 900px; }
.source-btn { background: #111; color: #fff; border: 1px solid #444; padding: 12px 16px; border-radius: 8px; cursor: pointer; font-size: 1rem; width: 100%; max-width: 480px; }
.games-list { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 1rem; }
.game-btn { background: #111; color: #fff; border: 1px solid #444; padding: 12px 16px; border-radius: 8px; cursor: pointer; font-size: 1rem; width: 100%; max-width: 480px; }
.game-btn:hover { background: #222; }
a, p, h1, h2, h3, li { color: #fff; }
</style>
</head>
<div class="topright">
<button class="source-btn" onclick="window.open('https://github.com/BearVsPython/htmlGames', '_blank')">Source Code</button>
</div>
<body>
<div class="container">
<h1>Welcome to BearVsPython's browser games</h1>
<div id="games-container">
<div id="games" class="games-list">
<button class="game-btn" onclick="window.open('games/minecraft/1.8.8 js/index.html', '_blank')">Minecraft 1.8.8 js</button>
<button class="game-btn" onclick="window.open('games/minecraft/1.12.2 js/index.html', '_blank')">Minecraft 1.12.2 js</button>
<button class="game-btn" onclick="window.open('games/minecraft/1.8.8 wasm/index.html', '_blank')">Minecraft 1.8.8 wasm</button>
<button class="game-btn" onclick="window.open('games/minecraft/1.12.2 wasm/index.html', '_blank')">Minecraft 1.12.2 wasm</button>
<button class="game-btn" onclick="window.open('games/snake/index.html', '_blank')">Snake</button>
<button class="game-btn" onclick="window.open('games/sandbroxels/index.html', '_blank')">SandBox</button>
<button class="game-btn" onclick="window.open('games/slope/index.html', '_blank')">Slope</button>
<button class="game-btn" onclick="window.open('games/cookiegame/index.html', '_blank')">Cookie Clicker</button>
<button class="game-btn" onclick="window.open('games/n-gon/index.html', '_blank')">n-gon</button>
</div>
</div>
</div>
</body>
</html>