-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (84 loc) · 1.94 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/console-controller.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>2D Portfolio</title>
</head>
<body>
<style>
@font-face {
font-family: monogram;
src: url(monogram.ttf);
}
body {
font-family: monogram, monoscape;
font-size: 2rem;
overflow: hidden;
}
#app {
width: 100%;
height: 100%;
position: relative;
}
#textbox {
position: absolute;
left: 10%;
right: 10%;
bottom: 2vh;
min-height: 10vh;
background: white;
border-radius: 3px;
outline-style: solid;
padding: 1rem;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
word-spacing: 0.2rem;
filter: drop-shadow(0 0 0.75rem rgb(112, 112, 112));
}
.ui-text {
margin: 0;
user-select: none;
}
.ui-close-btn {
font-family: monogram, monospace;
border-style: none;
border-radius: 3px;
padding: 1rem;
font-size: inherit;
}
.btn-container {
align-self: flex-end;
margin-top: 1rem;
}
.note {
position: absolute;
left: 5%;
top: 1vh;
display: flex;
flex-direction: column;
color: rgb(238, 238, 238);
user-select: none;
}
</style>
<div id="app">
<div id="ui">
<p class="note">Tap/Click around to move</p>
<div id="textbox-container" style="display: none">
<div id="textbox">
<p id="dialogue" class="ui-text"></p>
<div class="btn-container">
<button id="close" class="ui-close-btn">Close</button>
</div>
</div>
</div>
</div>
<canvas id="game"></canvas>
</div>
<script type="module" src="src/main.js"></script>
</body>
</html>