Skip to content

Commit

Permalink
css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ade-fatimah committed Jan 8, 2019
2 parents 0c189cb + db0426d commit 3954b2b
Show file tree
Hide file tree
Showing 14 changed files with 197 additions and 160 deletions.
33 changes: 16 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"babel-polyfill": "^6.26.0",
"@babel/polyfill": "^7.2.5",
"classnames": "^2.2.6",
"firebase": "^5.5.6",
"node-sass-chokidar": "^1.3.4",
Expand Down
59 changes: 30 additions & 29 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ class App extends Component {
Git <span>Command</span> Explorer
</h2>
<p className="content__subtitle dark-grey">
Find the right commands you need without digging through the web
Find the right commands you need without digging through the web.
</p>

<div className="options">
<h4 className="options__title">I want to:</h4>

<Select
placeholder="..."
className="options__select"
classNamePrefix="options__select"
className="options-select"
classNamePrefix="options-select"
isSearchable={true}
onChange={this.onFirstChange}
value={firstOption}
Expand All @@ -121,8 +121,8 @@ class App extends Component {
{showSecond ? (
<Select
placeholder="..."
className="options__select"
classNamePrefix="options__select"
className="options-select"
classNamePrefix="options-select"
isSearchable={true}
onChange={this.onSecondChange}
value={secondOption}
Expand All @@ -133,8 +133,8 @@ class App extends Component {
{showThird ? (
<Select
placeholder="..."
className="options__select"
classNamePrefix="options__select"
className="options-select"
classNamePrefix="options-select"
isSearchable={true}
onChange={this.onThirdChange}
value={thirdOption}
Expand All @@ -143,31 +143,32 @@ class App extends Component {
) : null}
</div>
</div>
<div className="col-7">
<h2 className="board__title dark-white">Usage</h2>

<div className="board board--1">
<pre>
{usage.length ? (
<Typist avgTypingDelay={50} cursor={{ show: false }}>
{usage}
</Typist>
) : null}
</pre>
</div>

{nb ? (
<React.Fragment>
<h2 className="board__title dark-white">Note</h2>
<div className="board board--2">
<pre className="faded">
<div className="col-7 boards">
<div className="board__group">
<h2 className="board__title dark-white">Usage</h2>
<div className="board board--1">
<pre>
{usage.length ? (
<Typist avgTypingDelay={50} cursor={{ show: false }}>
{nb}
{usage}
</Typist>
</pre>
) : null}
</pre>
</div>

{nb ? (
<div className="board__group board__group--2">
<h2 className="board__title dark-white">Note</h2>
<div className="board board--2">
<pre className="faded">
<Typist avgTypingDelay={50} cursor={{ show: false }}>
{nb}
</Typist>
</pre>
</div>
</div>
</React.Fragment>
) : null}
) : null}
</div>
</div>
</div>
</div>
Expand Down
24 changes: 16 additions & 8 deletions src/components/footer.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
import React from 'react';
// import github from 'assets/svg/github.svg';
// import githubGreen from 'assets/svg/github-green.svg';
import PropTypes from 'prop-types';

const Footer = () => (
<footer className="footer">
<a
href="http://www.summitech.ng"
target="_blank"
rel="noopener noreferrer"
className="footer__copyright dark-white"
>
Made with <span></span> by Summitech
</a>
{/* <div className="logo">
{props.dark ? (
<img src={githubGreen} alt="Github Logo" className="logo--github" />
) : (
<img src={github} alt="Github Logo" className="logo--github" />
)}
</div> */}
<p className="footer__copyright dark-white">
Made with <span></span> by{' '}
<a href="https://www.summitech.ng" target="_blank" rel="noopener noreferrer">
Summitech
</a>
.
</p>
</footer>
);

Expand Down
11 changes: 0 additions & 11 deletions src/components/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ class Nav extends React.Component {
render() {
return (
<nav className="nav">
{/* <div className="language">
<p className="language__title dark-white">Language</p>
<Select
className="language__select"
classNamePrefix="language__select"
isSearchable={false}
value={selectedOption}
options={options}
/>
</div> */}

<div className="toggle">
<p className="toggle__option toggle__option--left dark-white">Light Mode</p>
<div className="toggler">
Expand Down
1 change: 0 additions & 1 deletion src/constants/primary-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const options = [
{ value: 'delete', label: 'delete/remove' },
{ value: 'compareCommits', label: 'compare two commits' },
{ value: 'configure', label: 'configure' },
{ value: 'exit', label: 'exit' },
{ value: 'clone', label: 'clone' },
{ value: 'ignore', label: 'ignore' },
// { value: 'correct', label: 'correct' },
Expand Down
11 changes: 2 additions & 9 deletions src/constants/secondary-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ export const secondaryOptions = {
}
],

exit: [
{
value: 'exit-log',
label: 'git log',
usage: 'Type q in the terminal to exit the logs'
}
],

revert: [
{
value: 'specific-commit',
Expand Down Expand Up @@ -70,7 +62,8 @@ export const secondaryOptions = {
{
value: 'logs',
label: 'commit logs/history',
usage: 'git log'
usage: 'git log',
nb: 'Type q in the terminal to exit the logs'
},
{
value: 'uncommittedChanges',
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'babel-polyfill';
import '@babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'App';
Expand Down
15 changes: 14 additions & 1 deletion src/scss/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.footer {
margin-top: 5rem;
&__copyright {
display: block;
@include text();
Expand All @@ -12,11 +11,25 @@
&:hover {
color: initial;
}

a {
color: inherit;

&:hover {
text-decoration: underline;
}
}
}

.logo {
display: flex;
justify-content: flex-end;

@include respond('as') {
justify-content: center;
margin-bottom: 1rem;
}

&--github {
width: 4rem;
height: 4rem;
Expand Down
10 changes: 5 additions & 5 deletions src/scss/components/_nav.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
.nav {
display: flex;
align-items: center;
display: flex;
justify-content: flex-end;

@include respond("xs") {
@include respond('xs') {
align-items: center;
flex-direction: column;
justify-content: center;
align-items: flex-end;
}

.language {
display: flex;
align-items: center;
display: flex;
margin-right: 4rem;

@include respond("xs") {
@include respond('xs') {
margin-right: 0;
margin-bottom: 2rem;
}
Expand Down
12 changes: 6 additions & 6 deletions src/scss/components/_toggle.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$width: 35px;
$width: 45px;
$height: 10px;

.toggle {
Expand All @@ -9,10 +9,10 @@ $height: 10px;
@include text();
transition: all 0.3s;
&--left {
margin-right: 1.5rem;
margin-right: 1rem;
}
&--right {
margin-left: 1.5rem;
margin-left: 1rem;
}
}
}
Expand All @@ -25,11 +25,11 @@ $height: 10px;
height: $height;
text-align: center;
position: relative;
input[type="checkbox"] {
input[type='checkbox'] {
display: none;
&:checked ~ .button {
background: $color-white;
left: ($width - ($height * 1.4 - $height) / 2) - $height;
left: $width - ($height * 2);
transition: 0.5s;
}
&:checked ~ .switch {
Expand All @@ -56,7 +56,7 @@ $height: 10px;
background: white;
position: absolute;
top: ($height * 2 - $height) / -2;
left: ($height * 2 - $height) / -2;
left: 0;
box-shadow: 0 $width / 50 $width / 25 rgba(black, 0.4);
transition: 0.5s;
cursor: pointer;
Expand Down
Loading

0 comments on commit 3954b2b

Please sign in to comment.