Footer.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 currentYear = new Date().getFullYear();
  25. return (
  26. <footer className="nav-footer" id="footer">
  27. <section className="sitemap">
  28. <a href={this.props.config.baseUrl} className="nav-home">
  29. <img
  30. src={this.props.config.baseUrl + this.props.config.footerIcon}
  31. alt={this.props.config.title}
  32. />
  33. </a>
  34. <div>
  35. <h5>Support</h5>
  36. <a
  37. href={
  38. this.props.config.baseUrl + "docs/" + this.props.language + "/support.html"
  39. }
  40. >
  41. Getting Started
  42. </a>
  43. <a
  44. href={
  45. this.props.config.baseUrl +
  46. "docs/" +
  47. this.props.language +
  48. "/supervised-tutorial.html"
  49. }
  50. >
  51. Tutorials
  52. </a>
  53. <a
  54. href={
  55. this.props.config.baseUrl +
  56. "docs/" +
  57. this.props.language +
  58. "/faqs.html"
  59. }
  60. >
  61. FAQs
  62. </a>
  63. <a
  64. href={
  65. this.props.config.baseUrl +
  66. "docs/" +
  67. this.props.language +
  68. "/api.html"
  69. }
  70. >
  71. API
  72. </a>
  73. </div>
  74. <div>
  75. <h5>Community</h5>
  76. <a
  77. href="https://www.facebook.com/groups/1174547215919768/"
  78. target="_blank"
  79. >
  80. Facebook Group
  81. </a>
  82. <a
  83. href="http://stackoverflow.com/questions/tagged/fasttext"
  84. target="_blank"
  85. >
  86. Stack Overflow
  87. </a>
  88. <a
  89. href="https://groups.google.com/forum/#!forum/fasttext-library"
  90. target="_blank"
  91. >
  92. Google Group
  93. </a>
  94. </div>
  95. <div>
  96. <h5>More</h5>
  97. <a href={this.props.config.baseUrl + "blog"}>Blog</a>
  98. <a href="https://github.com/facebookresearch/fastText" target="_blank">GitHub</a>
  99. {githubButton}
  100. </div>
  101. </section>
  102. <a
  103. href="https://code.facebook.com/projects/"
  104. target="_blank"
  105. className="fbOpenSource"
  106. >
  107. <img
  108. src={this.props.config.baseUrl + "img/oss_logo.png"}
  109. alt="Facebook Open Source"
  110. width="170"
  111. height="45"
  112. />
  113. </a>
  114. <section className="copyright">
  115. Copyright &copy; {currentYear} Facebook Inc.
  116. </section>
  117. </footer>
  118. );
  119. }
  120. }
  121. module.exports = Footer;