diff --git a/site/_css/index.less b/site/_css/index.less index f8a73fc26d..4f71d830cd 100644 --- a/site/_css/index.less +++ b/site/_css/index.less @@ -749,6 +749,11 @@ body.index { } .logos { + align-items: center; + display: flex; + flex-flow: row wrap; + justify-content: center; + img { height: 100px; padding: 14px; @@ -767,5 +772,25 @@ body.index { } } } + + .button { + display: inline-block; + .headline-font(@size: 17px, @color: @text-color); + border: solid 1px fadeout(black, 60%); + border-radius: 6px; + line-height: 1.0; + transition: border 0.1s ease-out, background 0.1s ease-out, color 0.1s ease-out; + padding: 0.65em 1.6em 0.6em; + margin: 2em; + display: inline-block; + text-decoration: none; + + &:hover, &:focus, &:active { + color: white; + background: @rhodamine-color; + border-color: @rhodamine-color; + text-decoration: none; + } + } } } diff --git a/site/_css/users.less b/site/_css/users.less new file mode 100644 index 0000000000..1cf198e48e --- /dev/null +++ b/site/_css/users.less @@ -0,0 +1,40 @@ +section.whos-using-page { + padding-bottom: 6em; + text-align: center; + max-width: 800px; + + .prose { + max-width: 560px; + text-align: center; + margin: 0 auto; + } + + .logos { + align-items: center; + display: flex; + flex-flow: row wrap; + justify-content: center; + + img { + max-height: 100px; + max-width: 180px; + padding: 14px; + @media screen and (min-width: 1020px) { + max-height: 150px; + max-width: 270px; + padding: 20px; + } + + &.round { + max-height: 106px; + max-width: 140px; + padding: 11px; + @media screen and (min-width: 1020px) { + max-height: 158px; + max-width: 210px; + padding: 16px; + } + } + } + } +} diff --git a/site/index.html.js b/site/index.html.js index a288cecb22..ee7a593c5c 100644 --- a/site/index.html.js +++ b/site/index.html.js @@ -536,31 +536,36 @@ public class Character {
{/* Waiting for permission from some of the below */} - + {/** /} - + {/**/} - + {/** /} - + - + {/**/} - + - +
+ + + More GraphQL Users + + diff --git a/site/style.less b/site/style.less index 2a86347983..687f9eda25 100644 --- a/site/style.less +++ b/site/style.less @@ -1,6 +1,7 @@ @import "https://github.com/_css/graphql.less"; @import "https://github.com/_css/index.less"; @import "https://github.com/_css/docs.less"; +@import "https://github.com/_css/users.less"; @import "https://github.com/_css/prism.less"; @import "https://github.com/_css/codemirror.less"; @import "https://github.com/_css/algolia.less"; diff --git a/site/users/index.html.js b/site/users/index.html.js new file mode 100644 index 0000000000..2c79d9c729 --- /dev/null +++ b/site/users/index.html.js @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +var React = require('react'); +var Site = require('../_core/Site'); + +/** + * Adding your logo? Add it to the /whos-using/logos/ directory and then append + * an entry to this list. + * + * Please include logos with transparent backgrounds with no margins. If your + * logo is round, include `isRound: true` in your entry. + */ +var logos = [ + { + name: 'Facebook', + img: 'facebook.png', + link: 'https://www.facebook.com/' + }, + { + name: 'GitHub', + img: 'github.png', + isRound: true, + link: 'https://developer.github.com/early-access/graphql' + }, + { + name: 'Intuit', + img: 'intuit.png', + link: 'https://www.intuit.com/' + }, + { + name: 'Coursea', + img: 'coursera.png', + link: 'https://www.coursera.org/' + }, +]; + +module.exports = ({ page }) => + +
+ +
+

Who’s using GraphQL?

+

+ GraphQL is used by teams of all sizes in many different environments and languages to power mobile apps, websites, and APIs. +

+

+ Is your company using GraphQL?
+ Edit this page with a Pull Request to add your logo. +

+
+ +
+ {logos.map(logo => + + + + )} +
+ +
+
diff --git a/site/img/logos/airbnb.png b/site/users/logos/airbnb.png similarity index 100% rename from site/img/logos/airbnb.png rename to site/users/logos/airbnb.png diff --git a/site/img/logos/coursera.png b/site/users/logos/coursera.png similarity index 100% rename from site/img/logos/coursera.png rename to site/users/logos/coursera.png diff --git a/site/img/logos/facebook.png b/site/users/logos/facebook.png similarity index 100% rename from site/img/logos/facebook.png rename to site/users/logos/facebook.png diff --git a/site/img/logos/github.png b/site/users/logos/github.png similarity index 100% rename from site/img/logos/github.png rename to site/users/logos/github.png diff --git a/site/img/logos/intuit.png b/site/users/logos/intuit.png similarity index 100% rename from site/img/logos/intuit.png rename to site/users/logos/intuit.png diff --git a/site/img/logos/pinterest.png b/site/users/logos/pinterest.png similarity index 100% rename from site/img/logos/pinterest.png rename to site/users/logos/pinterest.png diff --git a/site/img/logos/twitter.png b/site/users/logos/twitter.png similarity index 100% rename from site/img/logos/twitter.png rename to site/users/logos/twitter.png