-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpong.html
47 lines (44 loc) · 1.13 KB
/
pong.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pong Game</title>
</head>
<body>
<div>
<h1 class="title"><strong>Pong</strong></h1>
</div>
<canvas height="500" width="500" id="canvas"></canvas>
<style>
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
div {
display: flex;
align-items: center;
justify-content: center;
color: white;
background-color: hsl(24, 77%, 63%);
width: 500px;
height: 50px;
border-radius: 15px;
margin-bottom: 15px;
}
.title {
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 30px;
}
canvas {
border: 2px solid black;
border-radius: 15px;
box-shadow: 2px 4px 10px rgba(38, 1, 138, 0.8);
}
</style>
<script src="pong.js"></script>
</body>
</html>