|
| 1 | +// @flow |
| 2 | + |
| 3 | +import * as React from 'react' |
| 4 | +import styled from 'styled-components' |
| 5 | +import { graphql } from 'gatsby' |
| 6 | +import { FaCube } from 'react-icons/fa' |
| 7 | + |
| 8 | +import DefaultLayout from 'components/layouts/DefaultLayout' |
| 9 | +import Hero from 'components/Hero' |
| 10 | +import Container from 'components/Container' |
| 11 | +import HelmetPlus from 'components/HelmetPlus' |
| 12 | + |
| 13 | +import Code from 'atoms/Code' |
| 14 | +import Text from 'atoms/Text' |
| 15 | +import H3 from 'atoms/H3' |
| 16 | +import H1 from 'atoms/H1' |
| 17 | +import { SmartLink } from 'atoms/StyledLink' |
| 18 | + |
| 19 | +import media from 'styles/media' |
| 20 | +import spacing from 'styles/spacing' |
| 21 | + |
| 22 | +const HeroLayout = styled.div` |
| 23 | + display: grid; |
| 24 | + grid-gap: ${spacing.tiny}; |
| 25 | +` |
| 26 | + |
| 27 | +const FAWLayout = styled.div` |
| 28 | + display: grid; |
| 29 | + margin-top: ${spacing.large}; |
| 30 | + grid-gap: ${spacing.medium}; |
| 31 | + grid-template-columns: 1fr; |
| 32 | + ${media.medium` |
| 33 | + grid-template-columns: 1fr 1fr; |
| 34 | + `}; |
| 35 | +` |
| 36 | + |
| 37 | +const Item = styled.div`` |
| 38 | + |
| 39 | +const InstallCTA = styled.div` |
| 40 | + display: grid; |
| 41 | + grid-gap: ${spacing.small}; |
| 42 | + align-content: end; |
| 43 | + justify-items: center; |
| 44 | +` |
| 45 | + |
| 46 | +type Props = { |
| 47 | + location: Object, |
| 48 | + data: { heroImage: any }, |
| 49 | +} |
| 50 | + |
| 51 | +const FAQ = ({ location, data }: Props) => ( |
| 52 | + <DefaultLayout location={location}> |
| 53 | + <HelmetPlus |
| 54 | + title={`About - ${data.site.siteMetadata.title}`} |
| 55 | + description={ |
| 56 | + 'Bitcoin.com developer platform. Developer Tooling, Resources, Cloud, and Marker' |
| 57 | + } |
| 58 | + keywords={ |
| 59 | + 'about, bitbox, tutorials, developer tools, bitcoin, bitcoin cash, BCH, sdk, api' |
| 60 | + } |
| 61 | + location={location} |
| 62 | + /> |
| 63 | + <Hero image={data.heroImage}> |
| 64 | + <HeroLayout> |
| 65 | + <H3 primary thin> |
| 66 | + Bitcoin.com's developer platform |
| 67 | + </H3> |
| 68 | + <H1 background>FAQ</H1> |
| 69 | + <H3 background thin> |
| 70 | + Frequently asked questions |
| 71 | + </H3> |
| 72 | + </HeroLayout> |
| 73 | + </Hero> |
| 74 | + <Container> |
| 75 | + <FAWLayout> |
| 76 | + <Item> |
| 77 | + <H3>BITBOX</H3> |
| 78 | + <Text> |
| 79 | + Bitcoin.com’s developer platform is based on the popular BITBOX |
| 80 | + javascript framework. Offering utility methods for Mnemonics, |
| 81 | + HDNodes, ECPairs, Crypto, Address conversion, Transactions and much |
| 82 | + more. |
| 83 | + </Text> |
| 84 | + </Item> |
| 85 | + <InstallCTA> |
| 86 | + <H3 centerVertical> |
| 87 | + <FaCube /> |
| 88 | + BITBOX SDK |
| 89 | + </H3> |
| 90 | + |
| 91 | + <SmartLink to="https://www.npmjs.com/package/bitbox-sdk"> |
| 92 | + Install via NPM |
| 93 | + </SmartLink> |
| 94 | + <Code language="bash">npm install -g bitbox-sdk</Code> |
| 95 | + </InstallCTA> |
| 96 | + <Item> |
| 97 | + <H3>Badger</H3> |
| 98 | + <Text> |
| 99 | + Your gateway to the world of Bitcoin Cash (BCH) applications. |
| 100 | + </Text> |
| 101 | + </Item> |
| 102 | + <Item> |
| 103 | + <H3>REST</H3> |
| 104 | + <Text> |
| 105 | + The BCH JSON RPC over HTTP including a fully documented and |
| 106 | + interactive GUI which developers can use to test their ideas and |
| 107 | + confirm their code is making proper API calls. |
| 108 | + </Text> |
| 109 | + </Item> |
| 110 | + <Item> |
| 111 | + <H3>Cloud</H3> |
| 112 | + <Text> |
| 113 | + Blockchain-as-a-Service. Infrastructure to deploy and scale your |
| 114 | + apps. An ecosystem of add-ons for data, monitoring, logging, |
| 115 | + metrics, testing and more all built w/ BITBOX. |
| 116 | + </Text> |
| 117 | + </Item> |
| 118 | + <Item> |
| 119 | + <H3>Market</H3> |
| 120 | + <Text> |
| 121 | + Paid downloads, streaming media, in-app purchases, tokens and more |
| 122 | + ways for you to monetize. |
| 123 | + </Text> |
| 124 | + </Item> |
| 125 | + </FAWLayout> |
| 126 | + </Container> |
| 127 | + </DefaultLayout> |
| 128 | +) |
| 129 | + |
| 130 | +export default FAQ |
| 131 | + |
| 132 | +export const query = graphql` |
| 133 | + query { |
| 134 | + site { |
| 135 | + siteMetadata { |
| 136 | + title |
| 137 | + } |
| 138 | + } |
| 139 | + heroImage: file(relativePath: { eq: "hero.jpeg" }) { |
| 140 | + childImageSharp { |
| 141 | + fluid( |
| 142 | + duotone: { highlight: "#f9b016", shadow: "#191919" } |
| 143 | + maxWidth: 2000 |
| 144 | + quality: 85 |
| 145 | + ) { |
| 146 | + ...GatsbyImageSharpFluid |
| 147 | + } |
| 148 | + } |
| 149 | + } |
| 150 | + } |
| 151 | +` |
0 commit comments