-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (108 loc) · 3.79 KB
/
index.html
File metadata and controls
111 lines (108 loc) · 3.79 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chromask</title>
<meta name="description" content="Endless vertical climber with additive color-mixing mechanics. Hold color keys to match platforms and climb as high as you can!" />
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<!-- OpenGraph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Chromask" />
<meta property="og:description" content="Endless vertical climber with additive color-mixing mechanics. Hold color keys to match platforms and climb as high as you can!" />
<meta property="og:image" content="/opengraph.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Chromask" />
<meta name="twitter:description" content="Endless vertical climber with additive color-mixing mechanics. Hold color keys to match platforms and climb as high as you can!" />
<meta name="twitter:image" content="/opengraph.png" />
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #2D2D2D;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
}
#game-container {
width: 100%;
height: 100vh;
}
#mobile-dialog {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #2D2D2D;
justify-content: center;
align-items: center;
z-index: 9999;
padding: 20px;
text-align: center;
}
#mobile-dialog.visible {
display: flex;
}
.mobile-dialog-content {
background-color: rgba(0, 0, 0, 0.8);
border-radius: 12px;
padding: 32px;
max-width: 400px;
}
.mobile-dialog-wordmark {
max-width: 200px;
height: auto;
margin-bottom: 24px;
}
.mobile-dialog-content h2 {
font-family: monospace;
font-size: 20px;
color: #ffffff;
margin-bottom: 16px;
}
.mobile-dialog-content p {
font-family: monospace;
font-size: 16px;
color: #cccccc;
line-height: 1.6;
}
</style>
</head>
<body>
<div id="mobile-dialog">
<div class="mobile-dialog-content">
<img src="/wordmark.png" alt="Chromask" class="mobile-dialog-wordmark" />
<h2>Desktop Only</h2>
<p>Chromask requires a keyboard to play and is not compatible with mobile devices.</p>
<p>Please visit on a desktop or laptop computer.</p>
</div>
</div>
<div id="game-container"></div>
<script>
(function() {
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ||
(navigator.maxTouchPoints > 0 && window.innerWidth < 1024);
if (isMobile) {
document.getElementById('mobile-dialog').classList.add('visible');
document.getElementById('game-container').style.display = 'none';
}
})();
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>