forked from izzymiller/coalesce-bingo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (151 loc) · 3.66 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
<!DOCTYPE html>
<html>
<head>
<!-- HTML Meta Tags -->
<meta name="description" content="Bingo, but for analytics engineers">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://coalesce.bingo/">
<meta property="og:type" content="website">
<meta property="og:title" content="dbt Coalesce bingo">
<meta property="og:description" content="Bingo, but for analytics engineers">
<meta property="og:image" content="https://coalesce.bingo/og.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="coalesce.bingo">
<meta property="twitter:url" content="https://coalesce.bingo/">
<meta name="twitter:title" content="dbt Coalesce bingo">
<meta name="twitter:description" content="Bingo, but for analytics engineers">
<meta name="twitter:image" content="https://coalesce.bingo/og.png">
<title>dbt Coalesce bingo</title>
<script src="https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js"></script>
<style type="text/css">
body {
display: flex;
flex-direction: column;
align-items: center;
font-family: "Open Sans", Tahoma, Verdana, sans-serif;
}
h2 {
margin-top: 0px;
}
table {
width: min(90vw, 100vh);
height: min(90vw, 100vh);
}
tr {
height: 20%;
}
.usernameform {
display:flex;
flex-direction: column;
}
.usernameinput {
margin-bottom: 10px;
line-height: 24px;
}
.formbutton {
margin-bottom: 10px;
}
.receipt {
font-size: x-small;
word-break: break-all;
white-space: normal;
margin: 5px;
}
td {
width: 20%;
/* max-width: 160px; */
height: 20%;
/* max-height: 160px; */
border: 1px solid black;
text-align: center;
border-radius: 8px;
}
td a {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
button {
cursor: pointer;
padding: 10px;
background-color: azure;
border-radius: 4px;
border: 1px #ccc solid;
}
.cell-checked {
background-color: #993955;
color: #fff
}
.cell-checked a {
color: #fff
}
.cell-unchecked a {
color: #993955
}
.cell-empty {
background-color: lightgray;
}
.tooltipvisible {
position: relative;
display: inline-block;
cursor: pointer;
}
.tooltipvisible .receipt-text {
visibility: hidden;
width: 120px;
background-color: #fff;
border: 1px solid black;
color: #993955;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 100%;
cursor: pointer;
/* left: 50%; */
/* margin-left: -60px; */
/* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
opacity: 0;
transition: opacity 1s;
}
.tooltipvisible:hover .receipt-text{
visibility: visible;
transform: translateX(-55%);
opacity: 1;
}
.readme a {
color: black;
font-weight: bold;
/* text-decoration: none; */
}
#confetti {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
}
.invis {
visibility: hidden;
}
.title {
display: flex;
align-items: center;
}
</style>
</head>
<body>
<canvas id="confetti"></canvas>
<marquee id="bingo" class="invis"></marquee>
<a href="https://coalesce.getdbt.com/"><img width="400px" src="bingo.png" /></a>
<p class="readme"><a target="_blank" href="https://github.com/izzymiller/coalesce-bingo">How to play</a></p>
<div id="loading">Loading card...</div>
<hr class="solid" />
<script src="./index.js"></script>
</body>
</html>