Skip to content

Commit 2efd816

Browse files
committed
Add Help Button
1 parent 00fdf55 commit 2efd816

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

src/components/Help.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react'
2+
import styled from 'styled-components/macro'
3+
import { MdHelp } from 'react-icons/md'
4+
5+
const HelpBox = styled.a`
6+
position: fixed;
7+
bottom: 8px;
8+
left: 10px;
9+
opacity: .3;
10+
color: #fff;
11+
&:hover {
12+
opacity: .7
13+
}
14+
`
15+
16+
const Help = () => (
17+
<HelpBox href='https://medium.com/the-gathering/the-gathering-in-a-nutshell-eb5c81572b9c' target='_blank'><MdHelp size='2em' /></HelpBox>
18+
)
19+
20+
export default Help

src/containers/Debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react'
2-
import { Header, ListGroup, ListGroupItem, Button, Box, LinkButton } from '../components/UI'
2+
import { Header, ListGroup, ListGroupItem, Button } from '../components/UI'
33
import db from '../db'
4-
import { MdComputer, MdCheck, MdReceipt } from 'react-icons/md'
4+
import { MdComputer, MdCheck } from 'react-icons/md'
55

66
const sumArray = arr => arr.reduce((total, cur) => total + cur, 0)
77

src/hoc/Layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React from 'react'
22
import Navbar from '../components/Navbar/Navbar'
33
import { Main } from '../components/UI'
4+
import Help from '../components/Help'
45

56
const Layout = ({ children }) => {
67
return (
78
<React.Fragment>
89
<Navbar />
910
<Main>{children}</Main>
11+
<Help />
1012
</React.Fragment>
1113
)
1214
}

0 commit comments

Comments
 (0)