-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (128 loc) · 5.75 KB
/
index.html
File metadata and controls
129 lines (128 loc) · 5.75 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shining Clone</title>
<style>
html, body { margin: 0; padding: 0; background: #111; color: #eee; font-family: system-ui, sans-serif; }
.layout { display: flex; min-height: 100vh; align-items: center; justify-content: center; gap: 16px; padding: 16px; box-sizing: border-box; }
.center { display: flex; flex-direction: column; gap: 8px; align-items: center; }
#game { flex: 0 0 auto; }
.actionbar {
width: 512px;
min-height: 44px;
display: flex;
gap: 6px;
background: #15171a;
border: 2px solid #3a3f48;
border-radius: 4px;
padding: 8px 10px;
font-family: 'Courier New', Courier, monospace;
color: #f0f0f0;
align-items: center;
flex-wrap: wrap;
box-sizing: border-box;
}
.actionbar.menu-on { border-color: #ffe14a; box-shadow: 0 0 0 1px #ffe14a55 inset; }
.actionbar .label { font-size: 11px; color: #ffe14a; text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; }
.actionbar .empty-label { font-size: 12px; color: #555; font-style: italic; }
.actionbar button {
background: #1f242c;
color: #f0f0f0;
border: 1px solid #2a3340;
padding: 6px 12px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
border-radius: 3px;
}
.actionbar button:hover:not(:disabled) { background: #2a4060; border-color: #4a90e2; }
.actionbar button:disabled { color: #555; cursor: not-allowed; border-color: #222; background: #181a1e; }
.actionbar button .meta { color: #888; font-size: 11px; margin-left: 4px; }
.actionbar button .key { color: #ffe14a; font-weight: bold; }
.pane {
width: 240px;
align-self: center;
background: #15171a;
border: 2px solid #3a3f48;
border-radius: 4px;
padding: 12px 14px;
font-family: 'Courier New', Courier, monospace;
color: #cfcfcf;
box-shadow: 0 0 0 1px #000 inset;
}
.pane.hero { border-color: #4a90e2; }
.pane.enemy { border-color: #d05050; }
.pane.active { box-shadow: 0 0 0 2px #ffe14a inset, 0 0 8px #ffe14a55; }
.pane h3 { margin: 0 0 6px 0; font-size: 16px; color: #fff; letter-spacing: 1px; }
.pane .sub { font-size: 11px; color: #999; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.pane .row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; border-bottom: 1px dotted #2a2e35; }
.pane .row:last-of-type { border-bottom: none; }
.pane .row .lbl { color: #888; }
.pane .row .val { color: #f0f0f0; }
.pane .bar { height: 6px; background: #222; border-radius: 2px; margin: 3px 0 6px 0; overflow: hidden; }
.pane .bar > span { display: block; height: 100%; background: #55ff55; transition: width 200ms ease; }
.pane .bar.mp > span { background: #5599ff; }
.pane .empty { color: #555; font-style: italic; padding: 18px 0; text-align: center; font-size: 12px; }
.pane .portrait { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; color: #fff; border: 2px solid #fff8; border-radius: 4px; margin-right: 10px; overflow: hidden; flex: 0 0 auto; }
.pane .portrait.hero { background: #4a90e2; }
.pane .portrait.enemy { background: #d05050; }
.pane .portrait.svg-portrait { background: #10131c; padding: 0; }
.pane .portrait.svg-portrait svg { width: 100%; height: 100%; display: block; }
.pane .head { display: flex; align-items: center; margin-bottom: 8px; }
.pane .head .meta { line-height: 1.3; }
.pane .head .meta .name { font-weight: bold; color: #fff; font-size: 15px; }
.pane .head .meta .cls { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.pane.dead .head .meta .name { text-decoration: line-through; color: #777; }
/* Action / spell menus -- floating panels positioned near the active unit. */
.menu {
position: fixed;
background: #15171a;
border: 2px solid #ffe14a;
border-radius: 4px;
padding: 8px;
font-family: 'Courier New', Courier, monospace;
color: #f0f0f0;
box-shadow: 0 4px 12px #000a;
min-width: 140px;
z-index: 10;
}
.menu.hidden { display: none; }
.menu .title { font-size: 11px; color: #ffe14a; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid #2a2e35; }
.menu button {
display: block;
width: 100%;
text-align: left;
background: transparent;
color: #f0f0f0;
border: none;
padding: 5px 8px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
border-radius: 2px;
}
.menu button:hover:not(:disabled) { background: #2a4060; }
.menu button:disabled { color: #555; cursor: not-allowed; }
.menu button .meta { float: right; color: #888; font-size: 11px; }
</style>
</head>
<body>
<div class="layout">
<div class="pane hero" id="hero-pane">
<div class="empty">Click a hero to view stats</div>
</div>
<div class="center">
<div id="game"></div>
<div id="action-bar" class="actionbar">
<span class="empty-label">It's no one's turn yet.</span>
</div>
</div>
<div class="pane enemy" id="enemy-pane">
<div class="empty">Click an enemy to view stats</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>