/
slack.js
223 lines (211 loc) · 5.38 KB
/
slack.js
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
import FilmGrain from "./filmGrain";
import ProgressButton from "./progressButton";
const containerStyle = {
width: "100%",
height: "100vh",
minHeight: "30em",
overflow: "hidden",
margin: 0,
background: "black",
fontFamily: "'Bellefair', serif",
display: "flex",
position: "relative",
alignItems: "center",
justifyContent: "center",
};
const bannerStyle = {
background: "#222",
boxShadow: "0 0 15vh 15vh #222",
textAlign: "center",
color: "white",
margin: "0 auto",
display: "flex",
flexDirection: "column",
position: "absolute",
padding: "1em",
};
const footerStyle = {
fontSize: "0.5em",
textShadow: `
1px 1px 1px #ddd,
2px 2px 1px #ccc,
0 0 1em black`,
};
export default ({ index, progress, setProgress, github }) => (
<>
<style jsx>{`
@keyframes blur-in {
0% {
filter: blur(50px);
text-shadow: 0 0 0 0 !important;
}
35% {
filter: blur(5px);
text-shadow: 0 0 0 0 !important;
}
45% {
filter: blur(20px);
text-shadow: 0 0 0 0 !important;
}
75% {
filter: blur(10px);
text-shadow: 0 0 0 0 !important;
}
90% {
filter: blur(5px);
text-shadow: 0 0 0 0 !important;
}
100% {
filter: blur(0px);
text-shadow: 0 0 0 0 !important;
}
}
.blur-in {
animation: blur-in 1s;
}
img {
filter: blur(1px);
}
.slack-logo,
.portrait,
.portrait-decoration {
filter: blur(0px);
}
p,
h1 {
text-shadow: 0 0 0.1rem #eee;
color: white;
}
button {
animation: vertical-float;
animation-duration: 1s;
}
@keyframes vertical-float {
0% {
transform: translateY(-10px);
}
50% {
transform: translateY(10px);
}
100% {
transform: translateY(-10px);
}
}
.vertical-float {
animation: vertical-float 5s infinite !important;
}
.vertical-float:hover {
animation-play-state: paused !important;
}
`}</style>
<div style={containerStyle}>
<div style={bannerStyle} className="blur-in">
<div className="">
<img
src="decorative-corner.png"
style={{ position: "absolute", top: 0, left: 0 }}
/>
<img
src="decorative-corner.png"
style={{
position: "absolute",
top: 0,
right: 0,
transform: "rotate(90deg)",
}}
/>
<img
src="decorative-corner.png"
style={{
position: "absolute",
bottom: 0,
right: 0,
transform: "rotate(180deg)",
}}
/>
<img
src="decorative-corner.png"
style={{
position: "absolute",
bottom: 0,
left: 0,
transform: "rotate(270deg)",
}}
/>
<p
style={{ fontFamily: "'Dancing Script', cursive", fontSize: "4em" }}
>
Optional
</p>
<p>
Orpheus says: <br />
“If you're a Hack Clubber, sign in to Slack for an exclusive emoji!”
</p>
<a
href={
"https://hack.af/make-dino-slack-auth?state=https://github.com/" +
github
}
target="_blank"
style={{ display: "block", textDecoration: "none" }}
>
<img
className="portrait-decoration"
src="portrait-decoration.svg"
style={{
height: "4em",
paddingBottom: "0.5em",
paddingLeft: "3px",
transform: "scaleX(-1)",
}}
/>
<img
className="portrait"
src="dinoisseur.png"
style={{ borderRadius: "10%", height: "5em" }}
/>
<img
className="portrait-decoration"
src="portrait-decoration.svg"
style={{
height: "4em",
paddingBottom: "0.5em",
paddingLeft: "3px",
}}
/>
<p style={{ opacity: 0.5, marginTop: 0 }}>:smug-dino:</p>
<p style={{
textDecoration: "underline"
}}>
Click here to sign into{" "}
<img
src="slack.svg"
className="slack-logo"
style={{ height: "1em" }}
/>{" "}
Slack
</p>
</a>
<ProgressButton
index={index}
progress={progress}
setProgress={setProgress}
>
<div className="vertical-float">
<p style={{ margin: 0, fontSize: "3em" }}>Click to Continue</p>
<img
src="decorative-bottom.png"
style={{ width: "400px", maxWidth: "100%", margin: "0 auto" }}
/>
</div>
</ProgressButton>
<div style={footerStyle}>
<p>© COPYWRONG THE HACK FOUNDATION</p>
<p>NO RIGHTS RESERVED</p>
</div>
</div>
</div>
<FilmGrain />
</div>
</>
);