mirror of https://github.com/facebook/jest.git
109 lines
3.0 KiB
JavaScript
109 lines
3.0 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
const React = require('react');
|
|
|
|
class Footer extends React.Component {
|
|
render() {
|
|
const currentYear = new Date().getFullYear();
|
|
return (
|
|
<footer className="nav-footer" id="footer">
|
|
<section className="sitemap">
|
|
<a href={this.props.config.baseUrl} className="nav-home">
|
|
<img
|
|
src={this.props.config.baseUrl + this.props.config.footerIcon}
|
|
alt={this.props.config.title}
|
|
width="66"
|
|
height="58"
|
|
/>
|
|
</a>
|
|
<div>
|
|
<h5>Docs</h5>
|
|
<a
|
|
href={
|
|
this.props.config.baseUrl +
|
|
'docs/' +
|
|
this.props.language +
|
|
'/getting-started.html'
|
|
}
|
|
>
|
|
Getting Started
|
|
</a>
|
|
<a
|
|
href={
|
|
this.props.config.baseUrl +
|
|
'docs/' +
|
|
this.props.language +
|
|
'/snapshot-testing.html'
|
|
}
|
|
>
|
|
Guides
|
|
</a>
|
|
<a
|
|
href={
|
|
this.props.config.baseUrl +
|
|
'docs/' +
|
|
this.props.language +
|
|
'/api.html'
|
|
}
|
|
>
|
|
API Reference
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<h5>Community</h5>
|
|
<a
|
|
href="https://stackoverflow.com/questions/tagged/jestjs"
|
|
target="_blank"
|
|
>
|
|
Stack Overflow
|
|
</a>
|
|
<a href="https://discord.gg/j6FKKQQrW9">Reactiflux</a>
|
|
<a href="https://twitter.com/fbjest" target="_blank">
|
|
Twitter
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<h5>More</h5>
|
|
<a href={this.props.config.baseUrl + 'blog'}>Blog</a>
|
|
<a href="https://github.com/facebook/jest">GitHub</a>
|
|
<a
|
|
className="github-button"
|
|
href={this.props.config.repoUrl}
|
|
data-icon="octicon-star"
|
|
data-count-href="/facebook/jest/stargazers"
|
|
data-show-count={true}
|
|
data-count-aria-label="# stargazers on GitHub"
|
|
aria-label="Star facebook/jest on GitHub"
|
|
>
|
|
Star
|
|
</a>
|
|
</div>
|
|
</section>
|
|
|
|
<a
|
|
href="https://code.facebook.com/projects/"
|
|
target="_blank"
|
|
className="fbOpenSource"
|
|
>
|
|
<img
|
|
src={this.props.config.baseUrl + 'img/oss_logo.png'}
|
|
alt="Facebook Open Source"
|
|
width="170"
|
|
height="45"
|
|
/>
|
|
</a>
|
|
<section className="copyright">
|
|
Copyright © {currentYear} Facebook Inc.
|
|
</section>
|
|
</footer>
|
|
);
|
|
}
|
|
}
|
|
|
|
module.exports = Footer;
|