File tree 3 files changed +63
-17
lines changed 3 files changed +63
-17
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,12 @@ body.index {
152
152
text-align : center ;
153
153
max-width : 760px ;
154
154
padding-top : 4em ;
155
- padding-bottom : 4 em ;
155
+ padding-bottom : 2 em ;
156
156
}
157
157
158
158
.grayWash {
159
159
background : #f3f4f6 ;
160
+ position : relative ;
160
161
}
161
162
162
163
section .point1 {
@@ -169,6 +170,36 @@ body.index {
169
170
.prose {
170
171
max-width : 415px ;
171
172
}
173
+
174
+ .faux-graphiql {
175
+ border : 1px solid transparent ;
176
+ border-image : url(http://github.com/%3Cspan%20class=%22pl-s%22%3E/img/terminal.png%3C/span%3E) repeat ;
177
+ border-image-slice : 190 210 190 234 ;
178
+ border-image-width : 95px 105px 95px 117px ;
179
+ padding : 54px 55px 79px 55px ;
180
+ margin-bottom : -40px ;
181
+ margin-left : -70px ;
182
+ width : 570px ;
183
+ height : 450px ;
184
+ display : flex ;
185
+ flex-direction : column ;
186
+ pointer-events : none ;
187
+
188
+ .query , .response {
189
+ flex : 1 ;
190
+ }
191
+
192
+ .query {
193
+ border-bottom : solid 5px #e0e0e0 ;
194
+ }
195
+
196
+ .prism {
197
+ box-shadow : none ;
198
+ background : none ;
199
+ margin : 0 ;
200
+ padding : 1ch ;
201
+ }
202
+ }
172
203
}
173
204
174
205
section .point2 {
@@ -186,6 +217,7 @@ body.index {
186
217
width : 476px ;
187
218
height : 370px ;
188
219
position : relative ;
220
+ pointer-events : none ;
189
221
190
222
& > img {
191
223
position : absolute ;
@@ -194,23 +226,25 @@ body.index {
194
226
right : -10px ;
195
227
}
196
228
229
+ .prism {
230
+ box-shadow : none ;
231
+ background : none ;
232
+ margin : 0 ;
233
+ padding : 0 ;
234
+ }
235
+
197
236
.query , .response {
198
237
position : absolute ;
199
-
200
- .prism {
201
- box-shadow : none ;
202
- background : none ;
203
- }
204
238
}
205
239
206
240
.query {
207
241
animation : query- up 6s 0s infinite ease-in both ;
208
- left : 155 px ;
242
+ left : 165 px ;
209
243
210
244
@keyframes query- up {
211
245
from {
212
246
opacity : 0 ;
213
- top : 160 px ;
247
+ top : 170 px ;
214
248
}
215
249
216
250
5% , 25% {
@@ -222,20 +256,20 @@ body.index {
222
256
}
223
257
224
258
50% , 100% {
225
- top : 90 px ;
259
+ top : 100 px ;
226
260
opacity : 0 ;
227
261
}
228
262
}
229
263
}
230
264
231
265
.response {
232
266
animation : response- down 6s 2.3s infinite ease-out both ;
233
- left : 115 px ;
267
+ left : 125 px ;
234
268
235
269
@keyframes response- down {
236
270
0% {
237
271
opacity : 0 ;
238
- top : 70 px ;
272
+ top : 80 px ;
239
273
}
240
274
241
275
10% {
@@ -248,7 +282,7 @@ body.index {
248
282
249
283
50% , 100% {
250
284
opacity : 0 ;
251
- top : 130 px ;
285
+ top : 140 px ;
252
286
}
253
287
}
254
288
}
Original file line number Diff line number Diff line change @@ -74,15 +74,27 @@ var index = React.createClass({
74
74
developer tools.</ p >
75
75
</ section >
76
76
77
-
78
77
< section className = "point1" >
79
- < Prism >
80
- { `{
78
+ < div className = "faux-graphiql" aria-hidden >
79
+ < div className = "query" >
80
+ < Prism >
81
+ { `{
81
82
me {
82
83
name
83
84
}
84
85
}` }
85
- </ Prism >
86
+ </ Prism >
87
+ </ div >
88
+ < div className = "response" >
89
+ < Prism >
90
+ { `{
91
+ "me": {
92
+ "name": "Luke Skywalker"
93
+ }
94
+ }` }
95
+ </ Prism >
96
+ </ div >
97
+ </ div >
86
98
< div className = "prose" >
87
99
< h2 > Ask for what you need,< br /> get exactly that</ h2 >
88
100
{ /*[Illustration: just a simple query and response?]*/ }
@@ -106,7 +118,7 @@ var index = React.createClass({
106
118
your app needs in a single request. Apps using GraphQL are quick
107
119
even on slow mobile network connections.</ p >
108
120
</ div >
109
- < div className = "app-to-server" >
121
+ < div className = "app-to-server" aria-hidden >
110
122
< img src = "/img/phone.svg" width = "496" height = "440" />
111
123
< div className = "query" >
112
124
< Prism >
You can’t perform that action at this time.
0 commit comments