Skip to content

Commit 8a63248

Browse files
committed
add dev tools section
1 parent c51c741 commit 8a63248

File tree

3 files changed

+78
-22
lines changed

3 files changed

+78
-22
lines changed

site/_css/index.less

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ body.index {
161161
.darkWash {
162162
background: #3d464f;
163163
position: relative;
164+
overflow: hidden;
164165
}
165166

166167
section.point1 {
@@ -378,9 +379,52 @@ body.index {
378379
}
379380

380381
.prose {
381-
max-width: 540px;
382+
max-width: 575px;
382383
text-align: center;
383384
margin: 0 auto;
385+
386+
a {
387+
color: lighten(@rhodamine-color, 30%);
388+
}
389+
}
390+
391+
.graphiqlVid {
392+
background: white;
393+
border-radius: 4px;
394+
box-shadow:
395+
0 0 0 1px rgba(0, 0, 0, 0.2),
396+
0 16px 64px rgba(0, 0, 0, 0.6);
397+
margin: 3em -10px -100px;
398+
transform: translateZ(0);
399+
400+
video {
401+
width: 100%;
402+
}
403+
}
404+
}
405+
406+
section.point5 {
407+
display: flex;
408+
flex-direction: row-reverse;
409+
align-items: center;
410+
justify-content: space-between;
411+
padding-bottom: 4em;
412+
padding-top: 4em;
413+
414+
.prose {
415+
max-width: 415px;
416+
}
417+
}
418+
419+
section.point6 {
420+
display: flex;
421+
align-items: center;
422+
justify-content: space-between;
423+
padding-bottom: 4em;
424+
padding-top: 4em;
425+
426+
.prose {
427+
max-width: 415px;
384428
}
385429
}
386430

site/img/graphiql.mp4

2.45 MB
Binary file not shown.

site/index.html.js

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -304,33 +304,45 @@ type Species {
304304
Know exactly what data you can request from your API without
305305
leaving your editor, highlight potential issues before sending a
306306
query, and take advantage of improved code intelligence. GraphQL
307-
makes it easy to build powerful tools by leveraging your
308-
API&rsquo;s type system. You can even auto-generate your&nbsp;docs.</p>
307+
makes it easy to build powerful tools like <a href="https://github.com/graphql/graphiql" target="_blank">GraphiQL</a> by
308+
leveraging your API&rsquo;s type system.</p>
309309
</div>
310+
<div className="graphiqlVid" dangerouslySetInnerHTML={{__html: `
311+
<video autoplay loop playsinline>
312+
<source src="/img/graphiql.mp4?" type="video/mp4" />
313+
</video>
314+
`}} />
310315
</section>
311316
</div>
312317

313-
<section>
314-
<h2>Evolve your API without versions</h2>
315-
{/*Illustration showing more legs added to a graph? Or a type evolving over time?]*/}
316-
<p>
317-
Add new fields and types to a GraphQL API without affecting queries
318-
sent from existing apps. Aging fields can be deprecated and hidden
319-
from documentation. By using a single version, GraphQL APIs give
320-
apps easier access to new features and enable cleaner, more
321-
maintainable server&nbsp;code.</p>
318+
<div className="grayWash">
319+
<section className="point5">
320+
<div className="prose">
321+
<h2>Evolve your API<br />without versions</h2>
322+
{/*Illustration showing more legs added to a graph? Or a type evolving over time?]*/}
323+
<p>
324+
Add new fields and types to a GraphQL API without affecting
325+
queries sent from existing apps. Aging fields can be deprecated
326+
and hidden from documentation. By using a single version, GraphQL
327+
APIs give apps easier access to new features and enable cleaner,
328+
more maintainable server&nbsp;code.</p>
329+
</div>
322330
</section>
331+
</div>
323332

324-
<section>
325-
<h2>Powered by your existing data and code</h2>
326-
{/*Illustration of each field becoming a function?]*/}
327-
<p>
328-
GraphQL creates a uniform, powerful API across the entire surface
329-
area of your application without being limited by a specific storage
330-
engine. Write GraphQL APIs that leverage your existing data model
331-
and server with GraphQL engine implementations available in many
332-
languages. You provide small functions that fulfill fields in the
333-
type system, and GraphQL calls them with optimal&nbsp;concurrency.</p>
333+
<section className="point6">
334+
<div className="prose">
335+
<h2>Powered by your<br />existing data and code</h2>
336+
{/*Illustration of each field becoming a function?]*/}
337+
<p>
338+
GraphQL creates a uniform, powerful API across the entire surface
339+
area of your application without being limited by a specific
340+
storage engine. Write GraphQL APIs that leverage your existing
341+
data model and server with GraphQL engine implementations
342+
available in many languages. You provide small functions that
343+
fulfill fields in the type system, and GraphQL calls them with
344+
optimal&nbsp;concurrency.</p>
345+
</div>
334346
</section>
335347

336348
{/*

0 commit comments

Comments
 (0)