-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (42 loc) · 1.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pong.js</title>
<div>
<h1 class="pong">pong.js</h1>
<p class="info">Released in 1972, Pong was one of the first widely successful arcade games that helped revolutionize the video game industry. This is a simple recreation of it, utilizing HTML Canvas and JavaScript!</p>
</div>
<style>
body {
display: flex;
align-items: center;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
canvas {
margin-right: 70px;
margin-top: 100px;
border: solid 1px white;
}
.pong {
margin-left: 50px;
font-family:Arial, Helvetica, sans-serif;
font-weight: bolder;
font-style: italic;
font-size: 70px;
}
.info {
margin-left: 50px;
margin-right: 50px;
font-size: 18px;
}
</style>
</head>
<body>
<canvas id="pong" width="700" height="500"></canvas>
<script src="./pong.js"></script>
</body>
</html>