Footer.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /**
  2. * Copyright (c) 2017-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. const React = require("react");
  9. const githubButton = (
  10. <a
  11. className="github-button"
  12. href="https://github.com/facebookresearch/fastText/"
  13. data-icon="octicon-star"
  14. data-count-href="/fastText/stargazers"
  15. data-count-api="/repos/fastText#stargazers_count"
  16. data-count-aria-label="# stargazers on GitHub"
  17. aria-label="Star this project on GitHub"
  18. >
  19. Star
  20. </a>
  21. );
  22. class Footer extends React.Component {
  23. render() {
  24. const language = this.props.language || "en";
  25. const currentYear = new Date().getFullYear();
  26. return (
  27. <footer className="nav-footer" id="footer">
  28. <section className="sitemap">
  29. <a href={this.props.config.baseUrl} className="nav-home">
  30. <img
  31. src={this.props.config.baseUrl + this.props.config.footerIcon}
  32. alt={this.props.config.title}
  33. />
  34. </a>
  35. <div>
  36. <h5>Support</h5>
  37. <a
  38. href={
  39. this.props.config.baseUrl + "docs/" + language + "/support.html"
  40. }
  41. >
  42. Getting Started
  43. </a>
  44. <a
  45. href={
  46. this.props.config.baseUrl +
  47. "docs/" +
  48. language +
  49. "/supervised-tutorial.html"
  50. }
  51. >
  52. Tutorials
  53. </a>
  54. <a
  55. href={
  56. this.props.config.baseUrl +
  57. "docs/" +
  58. language +
  59. "/faqs.html"
  60. }
  61. >
  62. FAQs
  63. </a>
  64. <a
  65. href={
  66. this.props.config.baseUrl +
  67. "docs/" +
  68. language +
  69. "/api.html"
  70. }
  71. >
  72. API
  73. </a>
  74. </div>
  75. <div>
  76. <h5>Community</h5>
  77. <a
  78. href="https://www.facebook.com/groups/1174547215919768/"
  79. target="_blank"
  80. >
  81. Facebook Group
  82. </a>
  83. <a
  84. href="http://stackoverflow.com/questions/tagged/fasttext"
  85. target="_blank"
  86. >
  87. Stack Overflow
  88. </a>
  89. <a
  90. href="https://groups.google.com/forum/#!forum/fasttext-library"
  91. target="_blank"
  92. >
  93. Google Group
  94. </a>
  95. </div>
  96. <div>
  97. <h5>More</h5>
  98. <a href={this.props.config.baseUrl + "blog"}>Blog</a>
  99. <a href="https://github.com/facebookresearch/fastText" target="_blank">GitHub</a>
  100. {githubButton}
  101. </div>
  102. </section>
  103. <a
  104. href="https://code.facebook.com/projects/"
  105. target="_blank"
  106. className="fbOpenSource"
  107. >
  108. <img
  109. src={this.props.config.baseUrl + "img/oss_logo.png"}
  110. alt="Facebook Open Source"
  111. width="170"
  112. height="45"
  113. />
  114. </a>
  115. <section className="copyright">
  116. Copyright &copy; {currentYear} Facebook Inc.
  117. </section>
  118. </footer>
  119. );
  120. }
  121. }
  122. module.exports = Footer;