2017-11-22 17:12:27 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const React = require('react');
|
|
|
|
|
|
|
|
const githubButton = (
|
|
|
|
<a
|
|
|
|
className="github-button"
|
2017-11-30 11:56:25 +00:00
|
|
|
href="https://github.com/facebook/metro"
|
2017-11-22 17:12:27 +00:00
|
|
|
data-icon="octicon-star"
|
2017-11-30 11:56:25 +00:00
|
|
|
data-count-href="/facebook/metro/stargazers"
|
|
|
|
data-count-api="/repos/facebook/metro#stargazers_count"
|
2017-11-22 17:12:27 +00:00
|
|
|
data-count-aria-label="# stargazers on GitHub"
|
|
|
|
aria-label="Star this project on GitHub"
|
|
|
|
>
|
|
|
|
Star
|
|
|
|
</a>
|
|
|
|
);
|
|
|
|
|
|
|
|
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 +
|
|
|
|
'/api.html'
|
|
|
|
}
|
|
|
|
>
|
|
|
|
API Reference
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>Community</h5>
|
|
|
|
<a
|
|
|
|
href="https://stackoverflow.com/questions/tagged/metrojs"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
Stack Overflow
|
|
|
|
</a>
|
|
|
|
<a href="https://twitter.com/MetroBundler" target="_blank">
|
|
|
|
Twitter
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>More</h5>
|
|
|
|
<a href={this.props.config.baseUrl + 'blog'}>Blog</a>
|
2017-11-30 11:56:25 +00:00
|
|
|
<a href="https://github.com/facebook/metro">GitHub</a>
|
2017-11-22 17:12:27 +00:00
|
|
|
{githubButton}
|
|
|
|
</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;
|