-
Notifications
You must be signed in to change notification settings - Fork 0
/
typing.html
56 lines (51 loc) · 1.36 KB
/
typing.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
<!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>Tyler Lentz</title>
<link rel="stylesheet" media="screen" href="css/global.css">
<script async type="module" src="js/typing-game.js"></script>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 2em;
}
header {
position: absolute;
top: 0;
width: 100%;
background-color: var(--ctp-frappe-mantle);
}
header > *{
margin-left: 1em;
}
a {
text-decoration: none;
}
typing-game {
margin-left: 10%;
margin-right: 10%;
background-color: var(--ctp-frappe-mantle);
padding: 1.5em;
border-radius: 1em;
}
</style>
<script async>
window.addEventListener('load', () => {
const typingGame = document.querySelector('typing-game');
typingGame.start();
});
</script>
</head>
<body>
<header>
<a href="index.html">Home</a>
</header>
<typing-game></typing-game>
</body>
</html>