-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (87 loc) · 2.31 KB
/
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hangman</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-image: url('./background.jpg');
background-repeat: repeat;
}
/* Style for large screens */
#root {
display: block;
}
.mobile-message {
display: none;
}
.custom-card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: dashed black 8px;
border-radius: 10px;
background-color: #F0E5CF;
width: 80%;
margin-bottom: 20px;
}
.custom-card-title {
padding-top: 5px;
padding-bottom: 5px;
border-bottom: solid black 5px;
width: 100%;
text-align: center;
font-family: 'Indie Flower', cursive;
background-color: #F7F6F2;
font-size: 3.5rem;
font-weight: bold;
}
.custom-card-body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 10px;
font-size: 1.5rem;
font-family: 'Indie Flower', cursive;
text-align: center;
}
/* Hide game content and show message on small screens */
@media (max-width: 768px) {
#root {
display: none;
}
.mobile-message {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Indie Flower', cursive;
font-size: 2rem;
color: #333;
}
}
</style>
</head>
<body>
<div id="root"></div>
<div class="mobile-message">
<div class="custom-card">
<div class="custom-card-title">
Warning!
</div>
<div class="custom-card-body">
This game is not optimised for small screens. Please visit from a desktop or larger device for the best experience.
</div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>