-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
278 lines (239 loc) · 12.2 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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Set – Play Online</title>
<meta name="title" content="Set – Play Online">
<meta name="description" content="Set is a visual game where cards have symbols with different colors, shapes, number and filling. Grab as many Sets as you can: the player with the most at the end wins!">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.1/howler.min.js" integrity="sha512-L6Z/YtIPQ7eU3BProP34WGU5yIRk7tNHk7vaC2dB1Vy1atz6wl9mCkTPPZ2Rn1qPr+vY2mZ9odZLdGYuaBk7dQ==" crossorigin="anonymous"></script>
<script src="js/main.js" charset="utf-8" type="module"></script>
<link rel="stylesheet" href="css/style.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<script src="js/links.js" charset="utf-8"></script>
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/img/icons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<meta property="og:type" content="website">
<meta property="og:url" content="https://playset.netlify.app/">
<meta property="og:title" content="Set – Play Online">
<meta property="og:description" content="Set is a visual game where cards have symbols with different colors, shapes, number and filling. Grab as many Sets as you can: the player with the most at the end wins!">
<meta property="og:image" content="https://playset.netlify.app/img/cover.png">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://playset.netlify.app/">
<meta property="twitter:title" content="Set – Play Online">
<meta property="twitter:description" content="Set is a visual game where cards have symbols with different colors, shapes, number and filling. Grab as many Sets as you can: the player with the most at the end wins!">
<meta property="twitter:image" content="https://playset.netlify.app/img/cover.png">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2KPJF3B8MN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-2KPJF3B8MN');
</script>
</head>
<body>
<header>
<a href="/">
<h1><span>S</span><span>E</span><span>T</span></h1>
</a>
</header>
<aside>
<div class="bot">
<div>
<h2>Bot</h2>
<p class="score">No set yet</p>
<div class="sets-wrapper"></div>
<div class="difficulty">
<p>Difficulty</p>
<ul>
<li class="easy selected">Easy</li>
<li class="medium">Medium</li>
<li class="hard">Hard</li>
</ul>
</div>
</div>
</div>
<div class="buttons">
<button class="main" disabled>Set<span>or press Space</span></button>
<button class="secondary" disabled>Add 3 cards</button>
</div>
<div class="user">
<div>
<h2>You</h2>
<p class="score">No set yet</p>
<div class="sets-wrapper"></div>
</div>
</div>
</aside>
<main>
<div class="background"></div>
<section>
<h1><span>S</span><span>E</span><span>T</span></h1>
<p>A game where cards have symbols with different colors, shapes, number and filling. <br>A Set is three cards where every feature is either all the same, or all different. <br>Grab as many as you can: the player with the most Sets at the end wins!</p>
<div class="modes">
<div class="mode soon">
<div>
<i class="fas fa-bolt"></i>
<div>
<h2>Versus mode</h2>
<p>Challenge a friend to a wild game and find out who's best!</p>
</div>
</div>
</div>
<div class="mode main">
<div>
<i class="fas fa-robot"></i>
<div>
<h2>AI mode</h2>
<p>Play against your computer in easy, medium or hard mode!</p>
</div>
<button class="primary">Play</button>
</div>
</div>
<div class="mode soon">
<div>
<i class="fas fa-mug-hot"></i>
<div>
<h2>Zen mode</h2>
<p>No opponent, no score, no rush. Breath and have fun.</p>
</div>
</div>
</div>
</div>
</section>
</main>
<div class="controls">
<div class="help hidden">
<i class="fas fa-question-circle"></i>
<span>Tutorial</span>
</div>
<div class="see-about">
<i class="fas fa-info-circle"></i>
<span>About</span>
</div>
<div class="see-palettes">
<i class="fas fa-palette"></i>
<span>Color palette</span>
</div>
<div class="sound">
<i class="fas fa-volume-up"></i>
<i class="fas fa-volume-off hidden"></i>
<span>Sound on</span>
</div>
</div>
<div class="about hidden">
<div class="content">
<h1><span>S</span><span>E</span><span>T</span></h1>
<h2>About this game</h2>
<p><strong><a href="https://en.wikipedia.org/wiki/Set_(card_game)" target="_blank">Set</a> is a card game designed by Marsha Falco in 1974, and published by Set Enterprises in 1991.</strong> This website aims at re-creating the game experience online. It is not in any way affiliated with <a href="https://www.setgame.com/" target="_blank">Set Enterprises, Inc.</a> or the SET® card game. You can show your support to the game editors by <a href="https://www.playmonster.com/product/set/" target="_blank">buying a physical version of the game ($12.99)</a>.</p>
<p>This website was designed by <a href="https://ashugeo.com" target="_blank">Hugo Sainte-Marie</a> and is open source on <a href="https://github.com/ashugeo/set-game" target="_blank">GitHub</a>.</p>
<p class="small">The typeface used on this website is <a href="https://fonts.google.com/specimen/Inter" target="_blank">Inter</a> by <a href="https://twitter.com/rsms" target="_blank">Rasmus Andersson</a>.</p>
<button class="tertiary">Close</button>
</div>
</div>
<div class="palettes hidden">
<p>Pick a palette, or build your own!</p>
<ul>
<li class="selected">
<div style="background-color: hsl(0, 100%, 45%)"></div>
<div style="background-color: hsl(120, 100%, 25%)"></div>
<div style="background-color: hsl(300, 100%, 25%)"></div>
<span>Classic</span>
</li>
<li>
<div style="background-color: hsl(50, 100%, 45%)"></div>
<div style="background-color: hsl(150, 100%, 30%)"></div>
<div style="background-color: hsl(290, 100%, 50%)"></div>
<span>Protanopia/Deuteranopia</span>
</li>
<li>
<div style="background-color: hsl(35, 100%, 45%)"></div>
<div style="background-color: hsl(180, 100%, 30%)"></div>
<div style="background-color: hsl(0, 50%, 35%)"></div>
<span>Tritanopia</span>
</li>
<li class="custom">
<div style="background-color: hsl(0, 0%, 80%)"></div>
<div style="background-color: hsl(120, 0%, 80%)"></div>
<div style="background-color: hsl(300, 0%, 80%)"></div>
<span>Custom</span>
</li>
</ul>
<div class="custom hidden">
<p>Click on the color dots<br>to build your own palette!</p>
<div>
<div>
<input type="color" value="#cccccc">
<span>Color 1</span>
</div>
<div>
<input type="color" value="#cccccc">
<span>Color 2</span>
</div>
<div>
<input type="color" value="#cccccc">
<span>Color 3</span>
</div>
</div>
<div class="buttons">
<button class="reset"><i class="fas fa-undo-alt"></i>Reset palette</button>
<button class="share"><i class="fas fa-share"></i>Share palette</button>
</div>
</div>
</div>
<div class="toasts"></div>
<div class="helpers">
<div class="shapes">
<svg id="diamond" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 12 8">
<polygon points="1,4 6,7 11,4 6,1 "/>
</svg>
<svg id="tilde" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 12 8">
<path d="M2,6.3C1.4,6.3,0.9,6,0.5,5.5C0,4.7,0.2,3.6,1,3c1.9-1.3,4-1.7,6-0.6c0.7,0.4,1.3,0.2,1.9-0.3c0.7-0.6,1.8-0.5,2.5,0.2
c0.6,0.7,0.5,1.8-0.2,2.5C9.4,6.3,7.3,6.6,5.3,5.5C4.5,5.1,3.7,5.4,3,6C2.7,6.2,2.3,6.3,2,6.3z"/>
</svg>
<svg id="pill" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 12 8">
<path d="M3,2h6c1.1,0,2,0.9,2,2v0c0,1.1-0.9,2-2,2H3C1.9,6,1,5.1,1,4v0C1,2.9,1.9,2,3,2z"/>
</svg>
</div>
<svg width="0" height="0">
<defs>
<pattern id="stripes-c0" x="0" width="12" height="8" patternunits="userSpaceOnUse" stroke="var(--color-0)" stroke-width=".3">
<line x1="1" y1="0" x2="1" y2="8"/>
<line x1="2.2" y1="0" x2="2.2" y2="8"/>
<line x1="3.5" y1="0" x2="3.5" y2="8"/>
<line x1="4.8" y1="0" x2="4.8" y2="8"/>
<line x1="6" y1="0" x2="6" y2="8"/>
<line x1="11" y1="0" x2="11" y2="8"/>
<line x1="8.5" y1="0" x2="8.5" y2="8"/>
<line x1="7.2" y1="0" x2="7.2" y2="8"/>
<line x1="9.8" y1="0" x2="9.8" y2="8"/>
</pattern>
<pattern id="stripes-c1" x="0" width="12" height="8" patternunits="userSpaceOnUse" stroke="var(--color-1)" stroke-width=".3">
<line x1="1" y1="0" x2="1" y2="8"/>
<line x1="2.2" y1="0" x2="2.2" y2="8"/>
<line x1="3.5" y1="0" x2="3.5" y2="8"/>
<line x1="4.8" y1="0" x2="4.8" y2="8"/>
<line x1="6" y1="0" x2="6" y2="8"/>
<line x1="11" y1="0" x2="11" y2="8"/>
<line x1="8.5" y1="0" x2="8.5" y2="8"/>
<line x1="7.2" y1="0" x2="7.2" y2="8"/>
<line x1="9.8" y1="0" x2="9.8" y2="8"/>
</pattern>
<pattern id="stripes-c2" x="0" width="12" height="8" patternunits="userSpaceOnUse" stroke="var(--color-2)" stroke-width=".3">
<line x1="1" y1="0" x2="1" y2="8"/>
<line x1="2.2" y1="0" x2="2.2" y2="8"/>
<line x1="3.5" y1="0" x2="3.5" y2="8"/>
<line x1="4.8" y1="0" x2="4.8" y2="8"/>
<line x1="6" y1="0" x2="6" y2="8"/>
<line x1="11" y1="0" x2="11" y2="8"/>
<line x1="8.5" y1="0" x2="8.5" y2="8"/>
<line x1="7.2" y1="0" x2="7.2" y2="8"/>
<line x1="9.8" y1="0" x2="9.8" y2="8"/>
</pattern>
</defs>
</svg>
</div>
</body>
</html>