From 11e9c6b5961b88297f903e57f5f0b608f4e46f58 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 29 Aug 2018 11:23:13 +0500 Subject: Add options page --- src/containers/options/index.js | 37 +++++++++++++++++- src/containers/options/styles.css | 82 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 src/containers/options/styles.css (limited to 'src') 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 ( -
- +
+ +
+ + +
+

GitHunt

+

Configure githunt through the options below

+
+ +
+ +
+
+

Add the Token

+

Generate a token and add it below to avoid hitting the rate limit.

+
+

Follow the steps listed below to generate the token

+
    +
  • + Go to the Settings Personal Access Tokens of your github profile +
  • +
  • Click Generate New Token. Enter the description and select the scope called public_repo under repo and click Generate Token.
  • +
  • You will be presented with the generated token. Copy the token and add it below
  • +
+ +
+ +
); } diff --git a/src/containers/options/styles.css b/src/containers/options/styles.css new file mode 100644 index 0000000..34df04e --- /dev/null +++ b/src/containers/options/styles.css @@ -0,0 +1,82 @@ +.options-container { + margin: 100px auto; + max-width: 700px; +} + +.options-container .container { + background: white; + padding: 25px 30px; + border-radius: 20px; +} + +.options-container .header svg { + margin-right: 15px; + float: left; + height: 85px; + width: 85px; +} + +.options-container .header { + margin-bottom: 10px; +} + +.options-container .header h3 { + font-weight: 700; + margin-bottom: 0; +} + +.options-container .header .logo { + display: block; + margin: 0 auto 25px; + width: 440px; +} + +.options-container ul { + padding: 0; + margin: 15px 0; +} + +.options-container ul li { + line-height: 25px; + padding: 10px; + list-style: none; + background: #f7f3f3; + margin-bottom: 4px; + border-radius: 5px; +} + +.options-container ul li span, +.options-container ul li a { + font-weight: 500; + color: #1157ed; +} + +.options-container .header .logo { + color: #2d2d2d; +} + +.options-container .header .logo-text { + margin-top: 11px; + float: left; +} + +.options-container .form-field p { + margin-bottom: 15px; +} + +.options-container .form-field input[type="text"] { + display: block; + box-shadow: none; + height: 60px; + -webkit-box-shadow: none; + border: 2px solid #ececec; + margin-bottom: 15px; +} + +.options-container .btn-save { + font-size: 15px; + padding: 15px 25px; + height: 60px; + display: block; + width: 100%; +} -- cgit v1.2.3