diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-29 11:23:13 +0500 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2018-08-29 11:23:13 +0500 |
| commit | 11e9c6b5961b88297f903e57f5f0b608f4e46f58 (patch) | |
| tree | b7777399b42e666e0cf6b92ebeab30ecd2568c7d /src/containers/options/index.js | |
| parent | Handle error images (diff) | |
| download | githunt-11e9c6b5961b88297f903e57f5f0b608f4e46f58.tar.gz | |
Add options page
Diffstat (limited to 'src/containers/options/index.js')
| -rw-r--r-- | src/containers/options/index.js | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/src/containers/options/index.js b/src/containers/options/index.js index 16ddd2a..4d999b1 100644 --- a/src/containers/options/index.js +++ b/src/containers/options/index.js @@ -1,11 +1,44 @@ import React from 'react'; + +import './styles.css'; import Logo from '../../components/icons/logo'; +import { Link } from 'react-router-dom'; class OptionsContainer extends React.Component { render() { return ( - <div className="container"> - <Logo/> + <div className="options-container"> + + <div className="header"> + <Link className="logo clearfix" to='/'> + <Logo/> + <div className="logo-text"> + <h3>GitHunt</h3> + <p className="text-muted">Configure githunt through the options below</p> + </div> + </Link> + </div> + + <div className="container shadow"> + <div className="form-field"> + <h2>Add the Token</h2> + <p className="text-muted">Generate a token and add it below to avoid hitting the rate limit.</p> + <hr/> + <p className="text-muted">Follow the steps listed below to generate the token</p> + <ul> + <li> + Go to the <a href="https://github.com/settings/tokens" target="_blank" rel="noopener noreferrer">Settings <i className="fa fa-angle-right"></i> Personal Access Tokens</a> of your github profile + </li> + <li>Click <span>Generate New Token</span>. Enter the description and select the <span>scope</span> called <span>public_repo</span> under repo and click <span>Generate Token</span>.</li> + <li>You will be presented with the generated token. Copy the token and add it below</li> + </ul> + <input type="text" className="form-control"/> + </div> + <button className="btn btn-dark btn-lg btn-save shadow"> + <i className="fa fa-cog mr-2"></i> + Save Settings + </button> + </div> </div> ); } |
