-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (66 loc) · 1.73 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
<!doctype html>
<html lang="en">
<head>
<title>ADD Canvas Text</title>
<style>
#start-dialog {
z-index: 5;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
max-width: 400px;
margin: auto;
}
h1 {
color: #333;
}
button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
}
button:hover {
background-color: #45a049;
}
#container {
position: absolute;
top: 0;
z-index: 1;
position: absolute;
background-color: transparent;
}
#text {
position: absolute;
top: 90%;
left: 50%;
width: 30%;
color: #000000;
padding: 5px;
font-family: Monospace;
font-size: 18px;
font-weight: bold;
text-align: left;
z-index: 2;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id='container'></div>
<div id="start-dialog">
<h1>This is a celebration of life </h1>
<p>Welcome to the celebration of life. Are you ready to share something ?</p>
<button id="start-button" onclick="startGame()">Start</button>
</div>
<div>
Text: <input type="text" value='Share something here' id="text">
</div>
<div id="app"></div>
<script type="module" src="/main.js"></script>
</body>
</html>