Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create user showcase. #2369

Merged
merged 5 commits into from
Jan 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions website/core/nav/HeaderNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ HeaderNav.defaultProps = {
linksInternal: [
{section: 'docs', href: '/jest/docs/getting-started.html', text: 'Docs'},
{section: 'api', href: '/jest/docs/api.html', text: 'API'},
{section: 'help', href: '/jest/users.html', text: 'Users'},
{section: 'help', href: '/jest/help.html', text: 'Help'},
{section: 'blog', href: '/jest/blog/', text: 'Blog'},
],
Expand Down
50 changes: 50 additions & 0 deletions website/src/jest/css/jest.css
Original file line number Diff line number Diff line change
Expand Up @@ -1665,3 +1665,53 @@ div.video-shoutout {
height: 300px;
}
}

.showcaseSection {
max-width: 900px;
text-align: center;
margin: 0 auto;
}

.showcaseSection .prose h1 {
color: #b84c20;
font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
font-weight: 900;
text-align: center;
padding: 1.4em 0 0.4em;
}

.showcaseSection .prose {
max-width: 560px;
text-align: center;
margin: 0 auto;
}

.showcaseSection .logos {
align-items: center;
display: flex;
flex-flow: row wrap;
justify-content: center;
}

.showcaseSection .logos img {
max-height: 150px;
max-width: 270px;
padding: 20px;
}

.miniShowcaseSection .logos {
align-items: center;
display: flex;
flex-flow: row wrap;
justify-content: center;
}

.miniShowcaseSection .logos img {
max-height: 110px;
max-width: 110px;
padding: 20px;
}

.miniShowcaseSection .button {
text-decoration: none !important;
}
Binary file added website/src/jest/img/logos/artsy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/automattic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/cisco.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/coinbase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/discord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/ebay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/egghead.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/elastic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/formidablelabs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/globo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/ibm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/intercom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/intuit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/klm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/nyt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/oculus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/paypal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/pinterest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/quiqup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/reddit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/seatgeek.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/soundcloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/spotify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/jest/img/logos/target.png
Binary file added website/src/jest/img/logos/trivago.png
Binary file added website/src/jest/img/logos/twitter.png
Binary file added website/src/jest/img/logos/wowair.png
Binary file added website/src/jest/img/logos/xing.png
48 changes: 47 additions & 1 deletion website/src/jest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,43 @@ const index = React.createClass({
{content: 'Can run [asynchronous code synchronously](/jest/docs/asynchronous.html).'},
];

const users = [
{
infoLink: 'https://code.facebook.com',
caption: 'Facebook',
image: 'img/logos/facebook.png',
},
{
infoLink: 'https://www.oculus.com/',
caption: 'Oculus',
image: 'img/logos/oculus.png',
},
{
infoLink: 'https://www.instagram.com/',
caption: 'Instagram',
image: 'img/logos/instagram.png',
},
{
infoLink: 'https://www.twitter.com',
caption: 'Twitter',
image: 'img/logos/twitter.png',
},
{
infoLink: 'https://www.pinterest.com',
caption: 'Pinterest',
image: 'img/logos/pinterest.png',
},
{
infoLink: 'http://www.nytimes.com/',
caption: 'The New York Times',
image: 'img/logos/nyt.png',
},
];

const showcase = users.map((user) => {
return <a href={user.infoLink}><img src={user.image} title={user.caption}/></a>;
});

return (
<Site>
<HomeSplash mostRecentPost={blog.files[0]} />
Expand All @@ -44,7 +81,7 @@ const index = React.createClass({
<h2>Jest's Testing Features</h2>
<GridBlock className="responsiveList testingFeatures" contents={whyJest} layout="threeColumn" />
</Container>
<Container padding={['bottom']}>
<Container padding={['bottom', 'top']}>
<h2>
<a className="anchor" name="use"></a>
Try Jest
Expand All @@ -68,6 +105,15 @@ const index = React.createClass({
<Marked>{gettingStartedContent}</Marked>
<Marked>Refer to [Additional Configuration](/jest/docs/getting-started.html#additional-configuration) to learn how to use Jest with Babel, webpack, or TypeScript.</Marked>
</Container>
<Container padding={['bottom']}>
<div className="miniShowcaseSection">
<h2>Who's Using Jest?</h2>
<p>Jest is used by <a href="/jests/users.html">teams of all sizes</a> to test websites, mobile apps, and APIs.</p>
<div className="logos">
{showcase}
</div>
</div>
</Container>
</div>
</Site>
);
Expand Down
199 changes: 199 additions & 0 deletions website/src/jest/users.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
/**
* @jsx React.DOM
*/

const React = require('React');
const Site = require('Site');
const Prism = require('Prism');
const Marked = require('Marked');
const unindent = require('unindent');

const Container = require('Container');
const HomeSplash = require('HomeSplash');
const GridBlock = require('GridBlock');

const siteConfig = require('../../siteConfig.js');
const gettingStartedContent = require('./docs/getting-started.js').content;
const blog = require('MetadataBlog');

const index = React.createClass({
render: function() {
const users = [
{
infoLink: 'https://code.facebook.com',
caption: 'Facebook',
image: 'img/logos/facebook.png',
},
{
infoLink: 'https://www.oculus.com/',
caption: 'Oculus',
image: 'img/logos/oculus.png',
},
{
infoLink: 'https://www.instagram.com/',
caption: 'Instagram',
image: 'img/logos/instagram.png',
},
{
infoLink: 'https://www.twitter.com',
caption: 'Twitter',
image: 'img/logos/twitter.png',
},
{
infoLink: 'https://www.pinterest.com',
caption: 'Pinterest',
image: 'img/logos/pinterest.png',
},
{
infoLink: 'http://www.nytimes.com/',
caption: 'The New York Times',
image: 'img/logos/nyt.png',
},
{
infoLink: 'http://www.ibm.com/',
caption: 'IBM',
image: 'img/logos/ibm.png',
},
{
infoLink: 'http://www.ebay.com/',
caption: 'ebay',
image: 'img/logos/ebay.png',
},
{
infoLink: 'https://www.paypal.com',
caption: 'PayPal',
image: 'img/logos/paypal.png',
},
{
infoLink: 'https://www.spotify.com',
caption: 'Spotify',
image: 'img/logos/spotify.png',
},
{
infoLink: 'http://www.target.com',
caption: 'Target',
image: 'img/logos/target.png',
},
{
infoLink: 'https://www.intuit.com/',
caption: 'Intuit',
image: 'img/logos/intuit.png',
},
{
infoLink: 'http://www.cisco.com/',
caption: 'Cisco',
image: 'img/logos/cisco.png',
},
{
infoLink: 'https://www.artsy.net/',
caption: 'Artsy',
image: 'img/logos/artsy.png',
},
{
infoLink: 'https://automattic.com/',
caption: 'Automattic',
image: 'img/logos/automattic.png',
},
{
infoLink: 'https://www.coinbase.com/',
caption: 'Coinbase',
image: 'img/logos/coinbase.png',
},
{
infoLink: 'https://discordapp.com/',
caption: 'Discord',
image: 'img/logos/discord.png',
},
{
infoLink: 'https://egghead.io/',
caption: 'Egghead',
image: 'img/logos/egghead.png',
},
{
infoLink: 'https://www.elastic.co/',
caption: 'Elastic',
image: 'img/logos/elastic.png',
},
{
infoLink: 'http://formidable.com/',
caption: 'Formidable',
image: 'img/logos/formidablelabs.png',
},
{
infoLink: 'http://www.globo.com/',
caption: 'Globo',
image: 'img/logos/globo.png',
},
{
infoLink: 'https://www.intercom.com/',
caption: 'Intercom',
image: 'img/logos/intercom.png',
},
{
infoLink: 'https://www.klm.com/',
caption: 'KLM Royal Dutch Airlines',
image: 'img/logos/klm.png',
},
{
infoLink: 'https://www.quiqup.com/',
caption: 'Quiqup',
image: 'img/logos/quiqup.png',
},
{
infoLink: 'https://www.reddit.com/',
caption: 'Reddit',
image: 'img/logos/reddit.png',
},
{
infoLink: 'https://seatgeek.com/',
caption: 'SeatGeek',
image: 'img/logos/seatgeek.png',
},
{
infoLink: 'https://soundcloud.com/',
caption: 'SoundCloud',
image: 'img/logos/soundcloud.png',
},
{
infoLink: 'http://www.trivago.com/',
caption: 'Trivago',
image: 'img/logos/trivago.png',
},
{
infoLink: 'https://www.xing.com/',
caption: 'Xing',
image: 'img/logos/xing.png',
},
{
infoLink: 'https://wowair.com/',
caption: 'WOW air',
image: 'img/logos/wowair.png',
},
];

const showcase = users.map((user) => {
return <a href={user.infoLink}><img src={user.image} title={user.caption}/></a>;
});

return (
<Site>
<div className="mainContainer">
<Container padding={["bottom","top"]}>
<div className="showcaseSection">
<div className="prose">
<h1>Who's Using Jest?</h1>
<p>Jest is used by teams of all sizes to test websites, mobile apps, and APIs.</p>
<p>Is your company using Jest?<br/>Edit this page with a <a href="https://github.com/facebook/jest/edit/website/src/jest/users.js">Pull Request</a> to add your logo.</p>
</div>
<div className="logos">
{showcase}
</div>
</div>
</Container>
</div>
</Site>
);
}
});

module.exports = index;