Skip to content

Commit 4398dfd

Browse files
committed
make faq page
1 parent b923fa0 commit 4398dfd

File tree

5 files changed

+131
-0
lines changed

5 files changed

+131
-0
lines changed

src/components/header/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ export const Header = () => {
146146
<Primary>about</Primary>
147147
</Button>
148148
</li>
149+
<li>
150+
<Button onClick={() => handleRoute('/faq')}>
151+
<Primary>faq</Primary>
152+
</Button>
153+
</li>
149154
</ul>
150155
</nav>
151156
</Padding>

src/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const PATH = {
1818
FEED: '/',
1919
ISSUER: '/tz',
2020
ABOUT: '/about',
21+
FAQ: '/faq',
2122
SYNC: '/sync',
2223
MINT: '/mint',
2324
OBJKT: '/objkt',

src/pages/faq/index.js

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
import React, { Component } from 'react'
2+
import { Page, Container, Padding } from '../../components/layout'
3+
import { Button, Primary } from '../../components/button'
4+
import { HicetnuncContext } from '../../context/HicetnuncContext'
5+
import styles from './styles.module.scss'
6+
7+
export class FAQ extends Component {
8+
static contextType = HicetnuncContext
9+
10+
state = {
11+
reveal: false,
12+
}
13+
14+
reveal = () => {
15+
this.setState({
16+
reveal: !this.state.reveal,
17+
})
18+
}
19+
20+
render() {
21+
return (
22+
<Page title="faq" large>
23+
<Container>
24+
<Padding>
25+
<div className={styles.buttons}>
26+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/Getting-Started-with-Tezos">
27+
<Primary>
28+
<strong>how do I get tezos/make a wallet?</strong>
29+
</Primary>
30+
</Button>
31+
</div>
32+
<div className={styles.buttons}>
33+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/Introduction">
34+
<Primary>
35+
<strong>how do I mint?</strong>
36+
</Primary>
37+
</Button>
38+
</div>
39+
<div className={styles.buttons}>
40+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/Edit-your-profile">
41+
<Primary>
42+
<strong>how do I edit my profile?</strong>
43+
</Primary>
44+
</Button>
45+
</div>
46+
<div className={styles.buttons}>
47+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/How-to-swap-%F0%9F%94%83">
48+
<Primary>
49+
<strong>how do I add/change the price of my OBJKT?</strong>
50+
</Primary>
51+
</Button>
52+
</div>
53+
<div className={styles.buttons}>
54+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/How-to-burn-%F0%9F%94%A5">
55+
<Primary>
56+
<strong>how do I burn my OBJKT?</strong>
57+
</Primary>
58+
</Button>
59+
</div>
60+
<div className={styles.buttons}>
61+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/How-to-resell-%F0%9F%8F%AA">
62+
<Primary>
63+
<strong>how do I resell an OBJKT?</strong>
64+
</Primary>
65+
</Button>
66+
</div>
67+
<div className={styles.buttons}>
68+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/hDAO">
69+
<Primary>
70+
<strong>what is hDAO ○?</strong>
71+
</Primary>
72+
</Button>
73+
</div>
74+
</Padding>
75+
</Container>
76+
<Container>
77+
<Padding>
78+
<div className={styles.buttons}>
79+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/General">
80+
<Primary>
81+
<strong>general faq</strong>
82+
</Primary>
83+
</Button>
84+
</div>
85+
<div className={styles.buttons}>
86+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/Troubleshooting">
87+
<Primary>
88+
<strong>troubleshooting</strong>
89+
</Primary>
90+
</Button>
91+
</div>
92+
<div className={styles.buttons}>
93+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/Tools-made-by-the-community">
94+
<Primary>
95+
<strong>useful tools</strong>
96+
</Primary>
97+
</Button>
98+
</div>
99+
</Padding>
100+
</Container>
101+
<Container>
102+
<Padding>
103+
<div className={styles.buttons}>
104+
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/pt:Home">
105+
<Primary>
106+
<strong>português</strong>
107+
</Primary>
108+
</Button>
109+
</div>
110+
</Padding>
111+
</Container>
112+
</Page>
113+
)
114+
}
115+
}

src/pages/faq/styles.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.buttons {
2+
display: flex;
3+
flex-wrap: wrap;
4+
}

src/routes.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Sync from './pages/sync'
22
import { About } from './pages/about'
3+
import { FAQ } from './pages/faq'
34
import Display from './pages/display'
45
import { Latest, Hdao, Random, Featured } from './pages/feeds'
56
import { Mint } from './pages/mint'
@@ -41,6 +42,11 @@ export const routes = [
4142
path: '/about',
4243
component: About,
4344
},
45+
{
46+
exact: false,
47+
path: '/faq',
48+
component: FAQ,
49+
},
4450
{
4551
exact: false,
4652
path: '/sync',

0 commit comments

Comments
 (0)