2019-05-13 17:55:32 +04:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
|
|
*
|
|
|
|
* 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 {
|
|
|
|
docUrl(doc, language) {
|
|
|
|
const baseUrl = this.props.config.baseUrl;
|
|
|
|
const docsUrl = this.props.config.docsUrl;
|
|
|
|
const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`;
|
|
|
|
const langPart = `${language ? `${language}/` : ''}`;
|
|
|
|
return `${baseUrl}${docsPart}${langPart}${doc}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
pageUrl(doc, language) {
|
|
|
|
const baseUrl = this.props.config.baseUrl;
|
|
|
|
return baseUrl + (language ? `${language}/` : '') + doc;
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<footer className="nav-footer" id="footer">
|
2019-06-06 21:51:38 +04:00
|
|
|
<section className="sitemap">
|
|
|
|
<a className="nav-home"></a>
|
2019-05-13 17:55:32 +04:00
|
|
|
<div>
|
|
|
|
<h5>Docs</h5>
|
2019-06-06 21:51:38 +04:00
|
|
|
<a href={this.docUrl('setup-installation.html', this.props.language)}>
|
|
|
|
Installation
|
2019-05-13 17:55:32 +04:00
|
|
|
</a>
|
2019-06-06 21:51:38 +04:00
|
|
|
<a href={this.docUrl('api-cli-commands.html', this.props.language)}>
|
|
|
|
CLI Commands
|
2019-05-13 17:55:32 +04:00
|
|
|
</a>
|
2019-06-06 21:51:38 +04:00
|
|
|
<a href={this.docUrl('contributors/origin.html', this.props.language)}>
|
|
|
|
Contribute
|
2019-05-13 17:55:32 +04:00
|
|
|
</a>
|
2019-06-13 14:01:36 +04:00
|
|
|
<a href={this.docUrl('/odoc', this.props.language)}>
|
|
|
|
Api Documentation
|
|
|
|
</a>
|
2019-05-13 17:55:32 +04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>Community</h5>
|
|
|
|
<a
|
2019-06-06 21:51:38 +04:00
|
|
|
href="https://tezos.stackexchange.com/questions/tagged/ligo"
|
2019-05-13 17:55:32 +04:00
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer noopener">
|
2019-06-06 21:51:38 +04:00
|
|
|
Tezos Stack Exchange
|
2019-05-13 17:55:32 +04:00
|
|
|
</a>
|
2019-06-10 22:15:14 +04:00
|
|
|
<a
|
|
|
|
href="https://discord.gg/9rhYaEt"
|
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer noopener">
|
|
|
|
Discord
|
|
|
|
</a>
|
2019-05-13 17:55:32 +04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h5>More</h5>
|
|
|
|
<a href={`${this.props.config.baseUrl}blog`}>Blog</a>
|
2019-06-13 04:50:55 +04:00
|
|
|
<a href={this.docUrl('tutorials/get-started/tezos-taco-shop-smart-contract.html', this.props.language)}>Tutorials</a>
|
2019-06-06 21:51:38 +04:00
|
|
|
<a href={`${this.props.config.repoUrl}`}>Gitlab</a>
|
2019-05-13 17:55:32 +04:00
|
|
|
</div>
|
2019-06-06 21:51:38 +04:00
|
|
|
</section>
|
2019-05-13 17:55:32 +04:00
|
|
|
|
2019-06-06 21:51:38 +04:00
|
|
|
|
2019-06-03 20:16:05 +04:00
|
|
|
<section className="copyright">
|
2019-06-06 21:51:38 +04:00
|
|
|
Website built with <a
|
|
|
|
href="https://docusaurus.io/"
|
|
|
|
target="_blank"
|
|
|
|
rel="noreferrer noopener">
|
|
|
|
Docusaurus
|
|
|
|
</a> by Facebook.
|
2019-06-10 21:30:54 +04:00
|
|
|
<div>Icons made by <a href="https://www.freepik.com/" title="Freepik">Freepik</a> & <a href="https://www.flaticon.com/authors/lucy-g" title="Lucy G">Lucy G</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
|
2019-06-03 20:16:05 +04:00
|
|
|
{this.props.config.copyright}
|
|
|
|
</section>
|
2019-05-13 17:55:32 +04:00
|
|
|
</footer>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Footer;
|