-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
301 lines (258 loc) · 6.83 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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!doctype html>
<html>
<head>
<!-- https://github.com/danielnitsche/caniworkremotely -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Can I Work Remotely?</title>
<style>
/* GLOBALS */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color: white;
font: 16px "Helvetica Neue", Helvetica, sans-serif;
font-weight: normal;
line-height: 1.5;
/* Lazy reset */
margin: 0;
padding: 0;
}
body, html {
background-color: #333;
background-position: bottom ;
background-repeat: no-repeat;
-webkit-background-size: cover;
background-size: cover;
height: 100%;
position: relative;
}
body {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.question, .info, .location, .go {
background-color: rgba(0,0,0,.7);
}
.answer, .info {
text-transform: lowercase;
}
.highlight {
color: yellow;
}
.question, .info, .answer {
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding: 0 1rem;
text-align: center;
width: 100%;
}
.question, .info, .answer {
-webkit-transition: -webkit-box-flex 1s ease;
-webkit-transition: -webkit-flex 1s ease;
transition: -webkit-box-flex 1s ease;
transition: -ms-flex 1s ease;
transition: flex 1s ease
}
/* INITIAL SCREEN */
.question, .answer, .info {
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
/* Required, otherwise content of .question affects height */
height: 0;
}
.question {
-webkit-box-align: end;
-webkit-align-items: flex-end;
-ms-flex-align: end;
align-items: flex-end;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-bottom: 0;
z-index: 2;
}
.intro {
/* Needed for transition to 0 later */
height: 100%;
margin-bottom: 1rem;
text-align: center;
width: 100%;
}
.intro a {
color: #ccc;
text-decoration: none;
}
.intro a:hover, .intro a:focus {
text-decoration: underline;
}
cite i {
color: #ccc;
font-style: italic;
}
.title {
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
height: 6rem;
-webkit-flex-flow: column nowrap;
-ms-flex-flow: column nowrap;
flex-flow: column nowrap;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
width: 100%;
}
.location, .go {
border: 0;
color: white;
margin: 0 .25rem;
min-width: 12rem;
padding: .25rem;
position: relative;
text-align: center;
text-transform: capitalize;
z-index: 2;
}
.go {
font-size: 1rem;
margin: 0;
min-width: 1.5em;
}
.photo-credit {
bottom: 1rem;
display: block;
position: absolute;
right: 1rem;
}
.photo-credit, .photo-credit a {
opacity: .7;
font-size: .5rem;
}
.answer {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
font-size: 80px;
text-indent: -9999em;
text-shadow: 3px 3px #333;
}
/* ANSWERED */
.answering .intro {
height: 0;
margin-bottom: 0;
opacity: 0;
-webkit-transition-property: height, margin-bottom, opacity;
transition-property: height, margin-bottom, opacity;
-webkit-transition-duration: 0s, .5s, .25s;
transition-duration: 0s, .5s, .25s;
-webkit-transition-delay: .25s, 0s, 0s;
transition-delay: .25s, 0s, 0s;
z-index: -1;
}
.answering .question, .answering .info {
-webkit-box-flex: 0;
-webkit-flex: 0 0 6rem;
-ms-flex: 0 0 6rem;
flex: 0 0 6rem;
}
.answering .answer {
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
text-indent: 0;
}
.answered .answer.but:after, .answered .info.but:before {
content: '*';
}
.answered .info.but:before {
font-size: 2rem;
height: 3rem;
padding-right: .25rem;
}
.answering .photo-credit {
display: none;
}
/* SIZE SPECIFIC */
@media screen and (min-width: 30em) {
.title { height: 5rem; }
.answering .question, .answering .info { -webkit-box-flex: 0; -webkit-flex: 0 0 5rem; -ms-flex: 0 0 5rem; flex: 0 0 5rem; }
body { background-image: url('images/shack-medium.jpg'); }
}
@media screen and (min-width: 40em) {
* { font-size: 20px; }
body { background-image: url('images/shack.jpg'); }
}
@media screen and (min-width: 55em) {
* { font-size: 25px; }
.answer { font-size: 100px; }
}
@media screen and (min-width: 70em) {
* { font-size: 25px; }
.answer { font-size: 125px; }
.title { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; height: 3rem; }
.answering .question, .answering .info { -webkit-box-flex: 0; -webkit-flex: 0 0 3rem; -ms-flex: 0 0 3rem; flex: 0 0 3rem; }
}
@media screen and (min-width: 80em) {
* { font-size: 30px; }
.answer { font-size: 150px; }
}
</style>
</head>
<body>
<form class="question">
<div>
<blockquote class="intro">
“Working remotely, if it is to be successful, usually requires <em>some</em> overlap with the hours your coworkers are putting in … we’ve found that we need a good <span class="highlight">four hours of overlap</span> to avoid collaboration delays and feel like a team.”
<cite>— <a href="https://37signals.com/remote/"><i>Remote: Office Not Required</i></a></cite>
</blockquote>
<h1 class="title">So, can you work remotely for a company headquartered in <span><input id="location" class="location" type="text" value="San Francisco, California"> <input class="go" type="submit" value="?"></span></h1>
</div>
</form>
<output class="answer">
<noscript>Sorry, you’ll need to enable JavaScript to find out.</noscript>
</output>
<p class="info"></p>
<p class="photo-credit"><a href="https://secure.flickr.com/photos/traverseearth/7587035372/">Photo</a> by <a href="https://secure.flickr.com/photos/traverseearth/">Johnny Peacock</a> / <a href="https://creativecommons.org/licenses/by-nc-nd/2.0/">CC BY-NC-ND</a></p>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/overlap.js"></script>
<script src="scripts/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48347470-1', 'caniworkremotely.com');
ga('send', 'pageview');
</script>
</body>
</html>