downloads.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /**
  2. * Copyright (c) 2017-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. const React = require('react');
  8. const CompLibrary = require('../../core/CompLibrary.js');
  9. const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
  10. const Container = CompLibrary.Container;
  11. const GridBlock = CompLibrary.GridBlock;
  12. const siteConfig = require(process.cwd() + '/siteConfig.js');
  13. class Button extends React.Component {
  14. render() {
  15. return (
  16. <div className="pluginWrapper buttonWrapper">
  17. <a className="button" href={this.props.href} target={this.props.target}>
  18. {this.props.children}
  19. </a>
  20. </div>
  21. );
  22. }
  23. }
  24. Button.defaultProps = {
  25. target: '_self',
  26. };
  27. class Downloads extends React.Component {
  28. render() {
  29. let language = this.props.language || 'en';
  30. return (
  31. <div>
  32. <div className="mainContainer">
  33. <Container padding={["bottom", "top"]}>
  34. <GridBlock
  35. align="center"
  36. contents={[
  37. {
  38. content:
  39. `<strong>
  40. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.136.3.51.win32.mingw/BlitzMax_win32_mingw_0.136.3.51.7z">BlitzMax_win32_mingw_0.136.3.51.7z</a>
  41. </strong>
  42. <br/><br/>
  43. Windows edition, with both x86 and x64 MinGW-w64 12.2.0 distributions.
  44. Includes SDL backend, mojo2, Crypto, Audio, Image, Net, Random, Text and Steam.
  45. `,
  46. image: `${siteConfig.baseUrl}img/platform/windows.svg`,
  47. imageAlign: "top",
  48. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.136.3.51.win32.mingw/BlitzMax_win32_mingw_0.136.3.51.7z`,
  49. title: "Win32 x86/x64 (mingw)"
  50. },
  51. {
  52. content:
  53. `<strong>
  54. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.136.3.51.win32.x64.mingw/BlitzMax_win32_x64_mingw_0.136.3.51.7z">BlitzMax_win32_x64_mingw_0.136.3.51.7z</a>
  55. </strong>
  56. <br/><br/>
  57. Windows edition, aimed at x64 development, with x64 MinGW-w64 12.2.0.
  58. Includes SDL backend, mojo2, Crypto, Audio, Image, Net, Random, Text and Steam.
  59. `,
  60. image: `${siteConfig.baseUrl}img/platform/windows.svg`,
  61. imageAlign: "top",
  62. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.136.3.51.win32.x64.mingw/BlitzMax_win32_x64_mingw_0.136.3.51.7z`,
  63. title: "Win32 x64 (mingw)"
  64. },
  65. {
  66. content:
  67. `<strong>
  68. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.136.3.51.win32.x86.mingw/BlitzMax_win32_x86_mingw_0.136.3.51.7z">BlitzMax_win32_x86_mingw_0.136.3.51.7z</a>
  69. </strong>
  70. <br/><br/>
  71. Windows edition, aimed at x86 development, with x86 MinGW-w64 12.2.0.
  72. Includes SDL backend, mojo2, Crypto, Audio, Image, Net, Random, Text and Steam.
  73. `,
  74. image: `${siteConfig.baseUrl}img/platform/windows.svg`,
  75. imageAlign: "top",
  76. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.136.3.51.win32.x86.mingw/BlitzMax_win32_x86_mingw_0.136.3.51.7z`,
  77. title: "win32 x86 (mingw)"
  78. },
  79. ]}
  80. layout="threeColumn"
  81. />
  82. <GridBlock
  83. align="center"
  84. contents={[
  85. {},
  86. {
  87. content:
  88. `<strong>
  89. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.53.linux.x64/BlitzMax_linux_x64_0.138.3.53.tar.xz">BlitzMax_linux_x64_0.138.3.53.tar.xz</a>
  90. </strong>
  91. <br/><br/>
  92. BlitzMax, Linux edition, aimed at x64 development, with x64 MaxIDE.
  93. Includes SDL backend, mojo2, Crypto, Audio, Image, Net, Random, Text, Steam and Gtk MaxGUI.
  94. `,
  95. image: `${siteConfig.baseUrl}img/platform/linux.svg`,
  96. imageAlign: "top",
  97. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.53.linux.x64/BlitzMax_linux_x64_0.138.3.53.tar.xz`,
  98. title: "Linux x64"
  99. },
  100. {},
  101. ]}
  102. layout="threeColumn"
  103. />
  104. <GridBlock
  105. align="center"
  106. contents={[
  107. {
  108. content:
  109. `<strong>
  110. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.54.macos.arm64/BlitzMax_macos_arm64_0.138.3.54.zip">BlitzMax_macos_arm64_0.138.3.54.zip</a>
  111. </strong>
  112. <br/><br/>
  113. BlitzMax, arm64 macOS edition.
  114. Includes SDL backend, mojo2, Crypto, Audio, Image, Math, Random, Net, Text and Steam.
  115. <br/>
  116. See the <strong><a href="https://github.com/bmx-ng/bmx-ng/releases/tag/v0.138.3.54.macos.arm64">Release Notes</a></strong> for setup information.
  117. `,
  118. image: `${siteConfig.baseUrl}img/platform/apple.svg`,
  119. imageAlign: "top",
  120. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.54.macos.arm64/BlitzMax_macos_arm64_0.138.3.54.zip`,
  121. title: "macOS arm64"
  122. },
  123. {},
  124. {
  125. content:
  126. `<strong>
  127. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.54.macos.x64/BlitzMax_macos_x64_0.138.3.54.zip">BlitzMax_macos_x64_0.138.3.54.zip</a>
  128. </strong>
  129. <br/><br/>
  130. BlitzMax, x64 macOS edition.
  131. Includes SDL backend, mojo2, Crypto, Audio, Image, Math, Random, Net, Text and Steam.
  132. <br/>
  133. See the <strong><a href="https://github.com/bmx-ng/bmx-ng/releases/tag/v0.138.3.54.macos.x64">Release Notes</a></strong> for setup information.
  134. `,
  135. image: `${siteConfig.baseUrl}img/platform/apple.svg`,
  136. imageAlign: "top",
  137. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.54.macos.x64/BlitzMax_macos_x64_0.138.3.54.zip`,
  138. title: "macOS"
  139. },
  140. ]}
  141. layout="threeColumn"
  142. />
  143. <GridBlock
  144. align="center"
  145. contents={[
  146. {
  147. content:
  148. `<strong>
  149. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.54.rpi.arm/BlitzMax_rpi_arm_0.138.3.54.tar.xz">BlitzMax_rpi_arm_0.138.3.54.tar.xz</a>
  150. </strong>
  151. <br/><br/>
  152. BlitzMax, RaspberryPi edition, aimed at 32-bit ARM development, with MaxIDE.
  153. Includes SDL backend, mojo2, Crypto, Audio, Image, Net, Random, Text and Gtk MaxGUI.
  154. `,
  155. image: `${siteConfig.baseUrl}img/platform/rpi.svg`,
  156. imageAlign: "top",
  157. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.138.3.54.rpi.arm/BlitzMax_rpi_arm_0.138.3.54.tar.xz`,
  158. title: "Raspberry Pi"
  159. },
  160. {},
  161. {
  162. content:
  163. `<strong>
  164. <a href="https://github.com/bmx-ng/bmx-ng/releases/download/v0.139.3.56.rpi.arm64/BlitzMax_rpi_arm64_0.139.3.56.tar.xz">BlitzMax_rpi_arm64_0.139.3.56.tar.xz</a>
  165. </strong>
  166. <br/><br/>
  167. BlitzMax, RaspberryPi edition, aimed at 64-bit ARM development, with MaxIDE.
  168. <br/>
  169. Suitable for the latest 64-bit Raspberry Pi OS.
  170. <br/>
  171. Includes SDL backend, mojo2, Crypto, Audio, Image, Net, Random, Text and Gtk MaxGUI.
  172. `,
  173. image: `${siteConfig.baseUrl}img/platform/rpi.svg`,
  174. imageAlign: "top",
  175. imageLink: `https://github.com/bmx-ng/bmx-ng/releases/download/v0.139.3.56.rpi.arm64/BlitzMax_rpi_arm64_0.139.3.56.tar.xz`,
  176. title: "Raspberry Pi arm64"
  177. },
  178. ]}
  179. layout="threeColumn"
  180. />
  181. </Container>
  182. </div>
  183. </div>
  184. );
  185. }
  186. }
  187. module.exports = Downloads;