-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (38 loc) · 1.18 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
<!DOCTYPE html>
<html>
<head>
<title>Space Invaders</title>
<meta charset="UTF-8" />
<style>
* { margin:0; padding:0; }
html, body { width:100%; height:100%; background: black; }
canvas {display:block; background: black; margin: 0 auto; }
.button {
position: absolute;
margin-left:45%;
text-align: center;
margin-top: 25%;
color: greenyellow;
text-decoration: none;
padding: 8px 32px;
border-width: 2px 0;
border-style: solid none;
border-color: darkmagenta #000 darkmagenta;
border-radius: 6px;
background: linear-gradient(180deg, black, darkviolet);
transition: 0.2s;
}
.button:hover {
background: linear-gradient(180deg, black, darkmagenta);
}
.button:active {
background: linear-gradient(180deg, darkmagenta,black);
}
</style>
</head>
<body>
<button class="button" id="buttonStart">НАЧАТЬ ИГРУ</button>
<canvas width="100%" height="100%" id='cnvs' style="background: url('./assets/greenHexagon.jpg')"></canvas>
<script type="module" src="./src/index.js"></script>
</body>
</html>