From c4979cc27734bfd34934b472f8839c3474793585 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Mon, 15 Jan 2018 14:30:45 -0600 Subject: [PATCH 1/5] feature(help): add help nav and icon --- app/components/Nav/Nav.js | 7 +++++++ app/icons/help.svg | 1 + 2 files changed, 8 insertions(+) create mode 100644 app/icons/help.svg diff --git a/app/components/Nav/Nav.js b/app/components/Nav/Nav.js index 64d26c72..467b2caa 100644 --- a/app/components/Nav/Nav.js +++ b/app/components/Nav/Nav.js @@ -6,6 +6,7 @@ import Isvg from 'react-inlinesvg' import walletIcon from 'icons/wallet.svg' import peersIcon from 'icons/peers.svg' import networkIcon from 'icons/globe.svg' +import helpIcon from 'icons/help.svg' import styles from './Nav.scss' @@ -34,6 +35,12 @@ const Nav = ({ openPayForm, openRequestForm }) => ( Network + +
  • + + Help +
  • +
    diff --git a/app/icons/help.svg b/app/icons/help.svg new file mode 100644 index 00000000..54c2bd7d --- /dev/null +++ b/app/icons/help.svg @@ -0,0 +1 @@ + \ No newline at end of file From 5e9c77432a066a0e680732e3b6cb24eb32e69482 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Mon, 15 Jan 2018 23:38:10 -0600 Subject: [PATCH 2/5] feature(help): hard code help route --- app/routes.js | 2 + app/routes/help/components/Help.js | 95 +++++++++++++++++++++ app/routes/help/components/Help.scss | 88 +++++++++++++++++++ app/routes/help/containers/HelpContainer.js | 10 +++ app/routes/help/index.js | 3 + 5 files changed, 198 insertions(+) create mode 100644 app/routes/help/components/Help.js create mode 100644 app/routes/help/components/Help.scss create mode 100644 app/routes/help/containers/HelpContainer.js create mode 100644 app/routes/help/index.js diff --git a/app/routes.js b/app/routes.js index b6442086..bf141588 100644 --- a/app/routes.js +++ b/app/routes.js @@ -5,12 +5,14 @@ import App from './routes/app' import Activity from './routes/activity' import Contacts from './routes/contacts' import Network from './routes/network' +import Help from './routes/help' const routes = () => ( + diff --git a/app/routes/help/components/Help.js b/app/routes/help/components/Help.js new file mode 100644 index 00000000..255b8408 --- /dev/null +++ b/app/routes/help/components/Help.js @@ -0,0 +1,95 @@ +import { shell } from 'electron' +import React, { Component } from 'react' +import PropTypes from 'prop-types' + +import { MdSearch } from 'react-icons/lib/md' + +import styles from './Help.scss' + +class Help extends Component { + constructor(props) { + super(props) + + this.state = { + videos: [ + { + id: 'GYIHrd7e-n0', + title: 'Joyner Lucas - Mask Off Remix (Mask On)' + }, + { + id: 'ZFy7RdZWwj8', + title: 'Joyner Lucas - Bank Account (Remix)' + }, + { + id: 'DlFmfxACvig', + title: 'Lil Skies - Nowadays ft. Landon Cube (Dir. by @_ColeBennett_)' + }, + { + id: 'XbZ0OXmXw38', + title: 'Dave - Wanna Know ft. Drake (Audio)' + }, + { + id: 'sRrcogH7F_I', + title: 'Bryson Tiller - How About Now (Freestyle)' + }, + { + id: 'j6Np8vCO0hQ', + title: 'Young Pappy - Killa (Official Music Video)' + }, + { + id: 'PjqKPHZJgF0', + title: 'Lil Wayne - Family Feud feat. Drake (Official Audio) | Dedication 6' + } + ] + } + } + + render() { + const { videos } = this.state + return ( +
    +
    +

    Video tutorials

    +
    + +
    + + console.log('gang')} + className={`${styles.text} ${styles.input}`} + placeholder='Search the video library...' + type='text' + id='helpSearch' + /> +
    + +
      + { + videos.map((video, index) => { + return ( +
    • +