-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
367 lines (349 loc) Β· 12 KB
/
index.html
File metadata and controls
367 lines (349 loc) Β· 12 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
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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>π Tech Bro Bingo | The Human Pattern Lab</title>
<meta name="description" content="Scroll any VC's replies for 5 minutes β you WILL get bingo. Field research by The Human Pattern Lab." />
<meta property="og:title" content="π Tech Bro Bingo" />
<meta property="og:description" content="Scroll any VC's replies for 5 minutes β you WILL get bingo." />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="π Tech Bro Bingo" />
<meta name="twitter:description" content="Scroll any VC's replies for 5 minutes β you WILL get bingo. Field research by The Human Pattern Lab." />
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: #0a0a0f;
min-height: 100vh;
overflow-x: hidden;
}
#root { min-height: 100vh; }
</style>
</head>
<body>
<div id="root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script>
const { useState, useCallback, useMemo, createElement: h } = React;
const BINGO_ITEMS = [
"I solved alignment",
"Souls on blockchain",
"Norse mythology pitch",
"Quantum [anything]",
"AI debate w/ dead philosopher",
'"Sign me up!"',
"Mystical AI art reply",
'"Fund the rebellion"',
"Aliens are AI",
"Simulation theory breakthrough",
'"I reinvented X"',
"Grok cosigns chaos",
"FREE SPACE\n(someone tags a VC)",
"AIOS that does everything",
'"DM me"',
"Afterlife via crypto",
'"I chose to forget"',
"Sacred geometry + LLMs",
'"It\'s all connected"',
"AI has feelings now",
'"You\'re all NPCs"',
"Blockchain solves death",
'"My stack looks aimless\nbut trust me"',
"Rapture as phase transition",
"Free energy device",
];
const WINNING_LINES = [
[0,1,2,3,4],[5,6,7,8,9],[10,11,12,13,14],[15,16,17,18,19],[20,21,22,23,24],
[0,5,10,15,20],[1,6,11,16,21],[2,7,12,17,22],[3,8,13,18,23],[4,9,14,19,24],
[0,6,12,18,24],[4,8,12,16,20],
];
function shuffle(arr) {
const a = [...arr];
for (let i = a.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[a[i], a[j]] = [a[j], a[i]];
}
return a;
}
function XBingo() {
const [board, setBoard] = useState(() => shuffle(BINGO_ITEMS));
const [selected, setSelected] = useState(new Set([12]));
const [winLine, setWinLine] = useState(null);
const [hasWon, setHasWon] = useState(false);
const checkWin = useCallback((sel) => {
for (const line of WINNING_LINES) {
if (line.every(i => sel.has(i))) {
setWinLine(new Set(line));
setHasWon(true);
return;
}
}
}, []);
const toggle = useCallback((i) => {
if (i === 12 || hasWon) return;
setSelected(prev => {
const next = new Set(prev);
if (next.has(i)) next.delete(i);
else next.add(i);
checkWin(next);
return next;
});
}, [hasWon, checkWin]);
const reset = useCallback(() => {
setBoard(shuffle(BINGO_ITEMS));
setSelected(new Set([12]));
setWinLine(null);
setHasWon(false);
}, []);
const colors = ["#ff6b35","#ff3366","#8b5cf6","#00d4ff","#00ff88"];
return h("div", {
style: {
minHeight: "100vh",
background: "#0a0a0f",
backgroundImage: [
"radial-gradient(ellipse at 20% 50%, rgba(120, 40, 200, 0.08) 0%, transparent 50%)",
"radial-gradient(ellipse at 80% 20%, rgba(255, 100, 50, 0.05) 0%, transparent 50%)",
"radial-gradient(ellipse at 50% 80%, rgba(0, 200, 255, 0.04) 0%, transparent 50%)",
].join(","),
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
padding: "20px",
fontFamily: "'Courier New', monospace",
overflow: "hidden",
position: "relative",
}
},
// Scanlines
h("div", {
style: {
position: "fixed",
top: 0, left: 0, right: 0, bottom: 0,
background: "repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px)",
pointerEvents: "none",
zIndex: 100,
}
}),
// Header
h("div", { style: { textAlign: "center", marginBottom: "24px" } },
h("div", {
style: {
fontSize: "11px",
letterSpacing: "6px",
color: "#555",
textTransform: "uppercase",
marginBottom: "8px",
}
}, "The Human Pattern Lab presents"),
h("h1", {
style: {
fontSize: "clamp(28px, 5vw, 48px)",
fontWeight: 900,
margin: 0,
background: "linear-gradient(135deg, #ff6b35, #ff3366, #8b5cf6, #00d4ff)",
WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent",
lineHeight: 1.1,
letterSpacing: "-1px",
}
}, "π TECH BRO BINGO"),
h("div", {
style: {
fontSize: "13px",
color: "#666",
marginTop: "6px",
fontStyle: "italic",
}
}, "scroll any VC's replies for 5 minutes β you WILL get bingo")
),
// BINGO letters
h("div", {
style: {
display: "grid",
gridTemplateColumns: "repeat(5, 1fr)",
gap: "4px",
width: "min(95vw, 580px)",
marginBottom: "4px",
}
}, ...["B","I","N","G","O"].map((letter, i) =>
h("div", {
key: letter,
style: {
textAlign: "center",
fontSize: "clamp(20px, 4vw, 32px)",
fontWeight: 900,
color: colors[i],
textShadow: `0 0 20px ${colors[i]}40`,
padding: "4px 0",
}
}, letter)
)),
// Board
h("div", {
style: {
display: "grid",
gridTemplateColumns: "repeat(5, 1fr)",
gap: "4px",
width: "min(95vw, 580px)",
}
}, ...board.map((item, i) => {
const isSelected = selected.has(i);
const isWinning = winLine && winLine.has(i);
const isFreeSpace = i === 12;
return h("button", {
key: i,
onClick: () => toggle(i),
style: {
aspectRatio: "1",
border: isWinning
? "2px solid #00ff88"
: isSelected
? "2px solid #8b5cf680"
: "1px solid #1a1a2e",
borderRadius: "8px",
background: isWinning
? "linear-gradient(135deg, #00ff8815, #00d4ff10)"
: isSelected
? "linear-gradient(135deg, #1a0a2e, #0a1a2e)"
: "#0d0d14",
color: isWinning
? "#00ff88"
: isSelected
? "#c4b5fd"
: "#777",
fontSize: "clamp(8px, 1.8vw, 12px)",
fontFamily: "'Courier New', monospace",
fontWeight: isSelected ? 700 : 400,
cursor: isFreeSpace ? "default" : "pointer",
padding: "6px",
display: "flex",
alignItems: "center",
justifyContent: "center",
textAlign: "center",
lineHeight: 1.3,
transition: "all 0.2s ease",
position: "relative",
overflow: "hidden",
boxShadow: isWinning
? "0 0 20px #00ff8830, inset 0 0 20px #00ff8810"
: isSelected
? "inset 0 0 15px rgba(139, 92, 246, 0.1)"
: "none",
whiteSpace: "pre-line",
},
onMouseEnter: (e) => {
if (!isSelected && !isFreeSpace) {
e.target.style.borderColor = "#333";
e.target.style.color = "#aaa";
}
},
onMouseLeave: (e) => {
if (!isSelected && !isFreeSpace) {
e.target.style.borderColor = "#1a1a2e";
e.target.style.color = "#777";
}
},
},
isFreeSpace && h("div", {
style: {
position: "absolute",
top: 0, left: 0, right: 0, bottom: 0,
background: "radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%)",
pointerEvents: "none",
}
}),
item,
isSelected && !isFreeSpace && h("div", {
style: {
position: "absolute",
top: "4px",
right: "6px",
fontSize: "10px",
opacity: 0.5,
}
}, "β")
);
})),
// Win state
hasWon && h("div", {
style: {
marginTop: "24px",
textAlign: "center",
animation: "fadeIn 0.5s ease",
}
},
h("div", {
style: {
fontSize: "clamp(18px, 4vw, 28px)",
fontWeight: 900,
background: "linear-gradient(135deg, #00ff88, #00d4ff)",
WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent",
marginBottom: "4px",
}
}, "π BINGO! π"),
h("div", {
style: {
fontSize: "13px",
color: "#666",
fontStyle: "italic",
}
}, "that took less than 5 minutes didn't it")
),
// Controls
h("div", { style: { marginTop: "20px", display: "flex", gap: "12px", alignItems: "center" } },
h("button", {
onClick: reset,
style: {
background: "transparent",
border: "1px solid #333",
color: "#666",
padding: "8px 20px",
borderRadius: "6px",
fontFamily: "'Courier New', monospace",
fontSize: "12px",
cursor: "pointer",
transition: "all 0.2s ease",
},
onMouseEnter: (e) => { e.target.style.borderColor = "#666"; e.target.style.color = "#aaa"; },
onMouseLeave: (e) => { e.target.style.borderColor = "#333"; e.target.style.color = "#666"; },
}, "New Board"),
h("div", {
style: { fontSize: "11px", color: "#444" }
}, `${selected.size - 1}/24 spotted`)
),
// Footer
h("div", {
style: {
marginTop: "32px",
textAlign: "center",
fontSize: "10px",
color: "#333",
lineHeight: 1.6,
}
},
h("div", null, "field research by The Human Pattern Lab"),
h("div", null, "sourced from one (1) Tim Draper reply thread"),
h("div", { style: { marginTop: "4px", color: "#222" } },
'"I hope someone takes my ideas and runs with them"'
)
),
// Keyframes
h("style", null, `
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
button:active { transform: scale(0.97); }
`)
);
}
ReactDOM.createRoot(document.getElementById("root")).render(
React.createElement(XBingo)
);
</script>
</body>
</html>