From 85b193e1f1abc7ec90692a3ac64607252bec397a Mon Sep 17 00:00:00 2001 From: Jake Dexheimer Date: Sun, 16 Jul 2017 18:10:10 -0700 Subject: [PATCH] =?UTF-8?q?Make=20pretty=20=F0=9F=91=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Button.js | 12 +++++------- components/Colorpicker.js | 4 +++- components/CopyButton.js | 8 ++++---- components/Dropdown.js | 28 ++++++++++------------------ components/Footer.js | 2 +- components/Meta.js | 8 ++++++-- components/Settings.js | 4 ++-- components/Slider.js | 1 - components/ThemeSelect.js | 1 - components/Toggle.js | 1 - components/Toolbar.js | 2 +- components/svg/Arrowdown.js | 2 +- components/svg/Checkmark.js | 2 +- components/svg/Settings.js | 4 ++-- lib/constants.js | 3 ++- pages/index.js | 2 ++ 16 files changed, 40 insertions(+), 44 deletions(-) diff --git a/components/Button.js b/components/Button.js index a3df771..e9144a8 100644 --- a/components/Button.js +++ b/components/Button.js @@ -1,8 +1,11 @@ import React from 'react' +import { PALETTE } from '../lib/constants' export default (props) => (
{props.title}
diff --git a/components/Colorpicker.js b/components/Colorpicker.js index 7ac4e46..23d3006 100644 --- a/components/Colorpicker.js +++ b/components/Colorpicker.js @@ -1,6 +1,7 @@ import React from 'react' import enhanceWithClickOutside from 'react-click-outside' import { TwitterPicker } from 'react-color' +import { PALETTE } from '../lib/constants' class ColorPicker extends React.Component { constructor() { @@ -44,7 +45,7 @@ class ColorPicker extends React.Component { display: flex; height: 100%; width: 72px; - border: 0.5px solid #000; + border: 0.5px solid ${PALETTE.SECONDARY}; border-radius: 3px; } @@ -56,6 +57,7 @@ class ColorPicker extends React.Component { cursor: default; height: 100%; width: 36px; + border-right: 0.5px solid ${PALETTE.SECONDARY}; } .bg-color { diff --git a/components/CopyButton.js b/components/CopyButton.js index 07b48fb..d1386e5 100644 --- a/components/CopyButton.js +++ b/components/CopyButton.js @@ -5,8 +5,8 @@ import Button from './Button' import api from '../lib/api' // constants -const BUTTON_COLOR = '#84ACFC' -const BUTTON_STYLE = { borderRadius: '3px 0px 0px 3px' } +const BUTTON_COLOR = '#F6A623' +const BUTTON_STYLE = { marginRight: '8px' } const DEBOUNCE_DURATION = 10000 const STATUS = { @@ -84,10 +84,10 @@ class CopyButton extends React.Component { return (
{ this.state.link ? : null } -
) } } -export default CopyButton \ No newline at end of file +export default CopyButton diff --git a/components/Dropdown.js b/components/Dropdown.js index d114f9c..d3233c9 100644 --- a/components/Dropdown.js +++ b/components/Dropdown.js @@ -1,6 +1,7 @@ import React from 'react' import enhanceWithClickOutside from 'react-click-outside' import ArrowDown from './svg/Arrowdown' +import Checkmark from './svg/Checkmark' import { PALETTE } from '../lib/constants' class Dropdown extends React.Component { @@ -31,27 +32,18 @@ class Dropdown extends React.Component { renderListItems() { return this.props.list.map((item, i) => ( -
+
{ item.name } + { this.state.selected === item ? : null }
diff --git a/components/Toolbar.js b/components/Toolbar.js index aff3c46..f66416e 100644 --- a/components/Toolbar.js +++ b/components/Toolbar.js @@ -17,7 +17,7 @@ const Toolbar = (props) => (
-