-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (150 loc) · 4.96 KB
/
index.html
File metadata and controls
156 lines (150 loc) · 4.96 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Boardgame</title>
</head>
<body style="margin:0; display: flex;">
<div style="flex: 5">
<svg id="view" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 1200 800" style="border-bottom: 5px groove darkgray; border-right: 5px groove darkgray; float: left;">
<g id="world" transform="translate(600 400) scale(0.75) rotate(0)">
<style>polygon {
fill: lightgray;
stroke: black;
stroke-width: 1.5;
}
#world g g:hover polygon {
fill: azure;
}
#world g[selected] polygon {
fill: lightskyblue;
}
#world g[selected]:hover polygon {
fill: lavender;
}
#world g[available] polygon {
fill: lightyellow;
}
#world g[available]:hover polygon {
fill: lightgreen;
}</style>
</g>
</svg>
</div>
<div style="flex: 2; display: flex; flex-flow: column; align-items: stretch;">
<div class="border panel" style="flex: 1;">
<h2 style="text-align: center;">Control panel</h2>
<div>
<div>LMB: select</div>
<div>RMB: pan/deselect</div>
<div>MMB: rotate</div>
<div>Wheel: zoom</div>
</div>
</div>
<div style="flex: 3;">
<div style="float: right; width: 70%;">
<div id="hand" class="border panel" style="display: flex; flex-flow: column nowrap;">
<h2 style="text-align: center;">Hand</h2>
</div>
</div>
</div>
<style>.border {
border: 1px solid darkgray;
border-radius: 5px;
}
.panel {
padding: 1rem;
margin: 1rem;
}
card-visualization {
visibility: hidden;
}
button:hover + card-visualization {
visibility: visible;
}
.card-active card-visualization {
visibility: visible;
}
@keyframes action-card-keyframes {
0% {
opacity: 0;
top: 4rem;
}
100% {
opacity: 1;
top: 0rem;
}
}
action-card {
position: relative;
animation-name: action-card-keyframes;
animation-duration: 400ms;
animation-timing-function: ease-out;
animation-fill-mode: forwards;
}
@keyframes action-card-discard {
0% {
opacity: 1;
right: 0rem;
}
100% {
opacity: 0;
right: 6rem;
}
}
.action-card-discard {
animation-name: action-card-discard;
animation-duration: 400ms;
animation-timing-function: ease-out;
animation-fill-mode: forwards;
}
.card {
width: 15rem;
height: 21rem;
display: flex;
margin: 1em;
padding: 0.4em;
border-radius: 10px;
background-color: rgb(99, 99, 99);
position: absolute;
z-index: 1;
left: -17.5rem;
top: -10.7rem;
}
.inner-card {
border-radius: 5px;
padding: 0.5em;
background-color: white;
display: flex;
flex-flow: column nowrap;
flex: 1;
}
.card-headline {
padding-left: 0.5em;
padding-right: 0.5em;
padding-bottom: 2px;
flex: 0 0;
display: flex;
justify-content: space-between;
}
.card-arrow {
height: 8px;
width: 8px;
background-color: inherit;
position: absolute;
right: 0;
top: 50%;
transform: translate(50%, -50%) rotate(45deg) translateX(1px);
}
.card-active button {
background-color: azure;
border-color: lightskyblue;
border-radius: 5px;
}
.card-inactive button {
pointer-events: none;
}</style>
</div>
<script src="/main.da8d25c0.js"></script>
</body>
</html>