Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 4019c82

Browse files
authored
Merge pull request #189 from Bitcoin-com/add-faq
Add faq
2 parents 44c5f3b + 526cecc commit 4019c82

3 files changed

Lines changed: 153 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "developer.bitcoin.com",
33
"description": "Bitcoin.com developer resources and documentation",
4-
"version": "3.3.2",
4+
"version": "3.4.0",
55
"author": "Peter <peter@bitcoin.com> and Gabriel Cardona <gabriel@bitcoin.com>",
66
"dependencies": {
77
"badger-components-react": "^0.1.3",

src/components/NavBar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class NavBar extends React.PureComponent<Props> {
6969
false
7070
)
7171
const aboutActive = pathname.includes('/about')
72+
const faqActive = pathname.includes('/faq')
7273
return (
7374
<Main>
7475
<Container>

src/pages/faq.js

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
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+
&nbsp; 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

Comments
 (0)