From 8e4280f57e8aa2eacc24b9057fc1fbb1b395d688 Mon Sep 17 00:00:00 2001 From: Yannick Date: Sun, 28 Jan 2018 19:46:16 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Changed=20styling=20to=20r?= =?UTF-8?q?eflect=20the=20look=20changes=20requested=20by=20UVA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/logo.svg | 177 +++++++++++------- src/assets/white/arrow.svg | 11 ++ src/components/addButton/style.scss | 2 +- src/components/editLink/index.js | 3 +- src/components/editLink/style.scss | 8 +- src/components/footer/style.scss | 2 +- src/components/formItem/style.scss | 85 +++++++-- src/components/header/index.js | 2 +- src/components/item/index.js | 2 +- src/components/item/style.scss | 11 +- src/components/license/index.js | 15 ++ src/components/license/style.scss | 18 ++ src/components/linkRequestButton/style.scss | 8 +- src/components/locationPopup/style.scss | 10 +- src/components/map/index.js | 2 +- src/components/map/style.scss | 13 +- src/components/measurementRow/style.scss | 5 +- src/components/notification/style.scss | 6 +- .../removeMeasurementButton/index.js | 3 +- .../removeMeasurementButton/style.scss | 25 ++- src/routes/Media/index.js | 12 +- src/routes/Media/style.scss | 20 +- src/routes/account/style.scss | 7 +- src/routes/add/index.js | 2 +- src/routes/add/style.scss | 17 +- src/routes/addMedia/index.js | 2 +- src/routes/addMedia/style.scss | 44 +++-- src/routes/createAccount/index.js | 4 +- src/routes/createAccount/style.scss | 33 +++- src/routes/edit/style.scss | 24 +-- src/routes/editMedia/style.scss | 86 +++++++-- src/routes/login/index.js | 4 +- src/routes/login/style.scss | 33 +++- src/routes/measurement/index.js | 12 +- src/routes/measurement/style.scss | 8 + src/routes/overview/index.js | 4 +- src/routes/overview/style.scss | 3 +- src/style/index.scss | 15 ++ 38 files changed, 526 insertions(+), 212 deletions(-) create mode 100644 src/assets/white/arrow.svg create mode 100644 src/components/license/index.js create mode 100644 src/components/license/style.scss diff --git a/src/assets/logo.svg b/src/assets/logo.svg index 2aae527..53ce962 100644 --- a/src/assets/logo.svg +++ b/src/assets/logo.svg @@ -1,68 +1,109 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/white/arrow.svg b/src/assets/white/arrow.svg new file mode 100644 index 0000000..be8d6f6 --- /dev/null +++ b/src/assets/white/arrow.svg @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/src/components/addButton/style.scss b/src/components/addButton/style.scss index 2c63667..8bca6a0 100644 --- a/src/components/addButton/style.scss +++ b/src/components/addButton/style.scss @@ -20,6 +20,6 @@ } img { - opacity: .6; + opacity: .8; } } diff --git a/src/components/editLink/index.js b/src/components/editLink/index.js index 44d0a70..7d672d1 100644 --- a/src/components/editLink/index.js +++ b/src/components/editLink/index.js @@ -8,13 +8,12 @@ export default class EditLink extends Component { render() { return ( - Edit {this.props.type} mode_edit + Edit mode_edit ); } } EditLink.propTypes = { - type: PropTypes.string.isRequired, to: PropTypes.string.isRequired, }; diff --git a/src/components/editLink/style.scss b/src/components/editLink/style.scss index 2e33248..a1a1855 100644 --- a/src/components/editLink/style.scss +++ b/src/components/editLink/style.scss @@ -1,11 +1,17 @@ .edit { align-items: center; - color: var(--main-color); + background: var(--main-color); + border: 0; + color: var(--main-bg-color); display: flex; float: right; + font-size: 12px; font-weight: 700; + margin: 0 0 10px 5px; + padding: 2.5px 2px 2.5px 7px; text-align: right; text-decoration: none; + text-transform: uppercase; i { font-size: .98em; diff --git a/src/components/footer/style.scss b/src/components/footer/style.scss index ba9abcd..08bd78d 100644 --- a/src/components/footer/style.scss +++ b/src/components/footer/style.scss @@ -24,6 +24,6 @@ } .active { - color: var(--main-blue); + color: var(--main-purple); } } diff --git a/src/components/formItem/style.scss b/src/components/formItem/style.scss index 25f5889..ebbdb23 100644 --- a/src/components/formItem/style.scss +++ b/src/components/formItem/style.scss @@ -1,30 +1,91 @@ .customFormfieldWrap { - border-bottom: .5px solid var(--main-color); - border-top: .5px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: .5px solid var(--main-color); + // border-top: .5px solid var(--main-color); + border: 0; display: flex; flex-direction: column; margin: 10px 0; padding: 14px 16px; label { - color: var(--main-color); + color: var(--main-blue); font-size: 16px; font-weight: 700; margin: 5px 0 4px; } -} -.select { - background: var(--input-color); - border: 1px solid var(--main-color); - border-radius: 0; - font-size: 15px; - margin-bottom: 5px; - padding: 10px 5px; + select { + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; + border-radius: 0; + display: inline-block; + font-size: 15px; + line-height: 1.5em; + padding: 0.5em 3.5em 0.5em 1em; + margin-top: 5px; + margin-bottom: 5px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: none; + } + + .select { + background-image: + linear-gradient(45deg, transparent 50%, var(--main-color) 50%), + linear-gradient(135deg, var(--main-color) 50%, transparent 50%), + linear-gradient(to right, var(--main-color), var(--main-color)); + background-position: + calc(100% - 20px) calc(1em + 2px), + calc(100% - 15px) calc(1em + 2px), + calc(100% - 2.5em) 0.5em; + background-size: + 5px 5px, + 5px 5px, + 1px 1.5em; + background-repeat: no-repeat; + } + + .select:focus { + background-image: + linear-gradient(45deg, var(--main-color) 50%, transparent 50%), + linear-gradient(135deg, transparent 50%, var(--main-color) 50%), + linear-gradient(to right, var(--main-color), var(--main-color)); + background-position: + calc(100% - 15px) 1em, + calc(100% - 20px) 1em, + calc(100% - 2.5em) 0.5em; + background-size: + 5px 5px, + 5px 5px, + 1px 1.5em; + background-repeat: no-repeat; + border-color: var(--main-color); + outline: 0; + } + + select:-moz-focusring { + color: transparent; + text-shadow: 0 0 0 var(--main-color); + } } +// .select { +// background: var(--input-color); +// // border: 1px solid var(--main-color); +// border: 0; +// border-radius: 0; +// font-size: 15px; +// margin-bottom: 5px; +// padding: 10px 5px; +// } + .addedInputField { - border: 1px solid var(--main-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; font-size: 15px; margin-top: 0; diff --git a/src/components/header/index.js b/src/components/header/index.js index e2fcbdc..94a3aba 100644 --- a/src/components/header/index.js +++ b/src/components/header/index.js @@ -3,7 +3,7 @@ import { Link } from 'preact-router/match'; import { PropTypes } from 'preact-compat'; import style from './style'; -import arrow from '../../assets/black/arrow.svg'; +import arrow from '../../assets/white/arrow.svg'; export default class Header extends Component { render() { diff --git a/src/components/item/index.js b/src/components/item/index.js index 763be5b..1b2f975 100644 --- a/src/components/item/index.js +++ b/src/components/item/index.js @@ -5,7 +5,7 @@ import { Link } from 'preact-router/match'; import style from './style'; // Import images -import mediaIcon from '../../assets/black/media.png'; +import mediaIcon from '../../assets/black/media.svg'; import measurementIcon from '../../assets/black/measurements.svg'; function defineImgSrc(details) { diff --git a/src/components/item/style.scss b/src/components/item/style.scss index 53b4307..5d52719 100644 --- a/src/components/item/style.scss +++ b/src/components/item/style.scss @@ -1,7 +1,7 @@ .itemLinkWrap { align-items: center; - background-color: var(--main-bg-color); - border: .5px solid var(--main-color); + background-color: var(--main-light-color); + border: 0; display: flex; height: 50px; margin: 2.5px 0; @@ -12,12 +12,13 @@ .icon { display: inline-block; opacity: .6; - padding: 0 15px 0 10px; + padding: 0 25px 0 10px; } .date { display: inline-block; font-size: 13px; + font-weight: 700; width: 30%; } @@ -38,10 +39,12 @@ } .uploadStatText { + color: var(--main-blue); font-size: 13px; } .uploadStat { - font-size: 13px; + color: var(--main-blue); + font-size: 15px; padding: 0 7.5px; } diff --git a/src/components/license/index.js b/src/components/license/index.js new file mode 100644 index 0000000..e10678c --- /dev/null +++ b/src/components/license/index.js @@ -0,0 +1,15 @@ +import { Component } from 'preact'; +import style from './style'; + +export default class LicenseInfo extends Component { + render() { + return ( +
+

+ The code of this project is licensed under the terms of the GNU AGPLv3 license. + More info. +

+
+ ); + } +} diff --git a/src/components/license/style.scss b/src/components/license/style.scss new file mode 100644 index 0000000..85493ce --- /dev/null +++ b/src/components/license/style.scss @@ -0,0 +1,18 @@ +.licenseWrapper { + background: var(--input-color); + bottom: 0; + display: block; + left: 0; + position: absolute; +} + +.license { + font-size: 13px; + text-align: center; + + a { + color: var(--main-blue); + font-size: 13px; + text-decoration: none; + } +} diff --git a/src/components/linkRequestButton/style.scss b/src/components/linkRequestButton/style.scss index e02c08f..ee5b21c 100644 --- a/src/components/linkRequestButton/style.scss +++ b/src/components/linkRequestButton/style.scss @@ -3,11 +3,11 @@ justify-content: flex-end; } .linkRequest { - background: none; - border: 1px solid var(--main-color); + background: var(--main-color); + border: 0; border-radius: 0; - color: var(--main-color); - font-size: 16px; + color: var(--main-bg-color); + font-size: 14px; font-weight: 700; margin: 15px 0; outline: 0; diff --git a/src/components/locationPopup/style.scss b/src/components/locationPopup/style.scss index 0731aa7..e245bcf 100644 --- a/src/components/locationPopup/style.scss +++ b/src/components/locationPopup/style.scss @@ -36,15 +36,15 @@ justify-content: space-between; input { - background: none; + background: var(--main-color); border: 0; border-radius: 0; - color: var(--main-color); - font-size: 15px; + color: var(--main-light-color); + font-size: 12px; font-weight: 700; - margin: 0; + margin: 10px 0 0; outline: 0; - padding: 15px 0 5px; + padding: 7px; text-transform: uppercase; } } diff --git a/src/components/map/index.js b/src/components/map/index.js index 083ac05..b5beac2 100644 --- a/src/components/map/index.js +++ b/src/components/map/index.js @@ -24,7 +24,7 @@ export default class MapComponent extends Component {
- Delete {this.props.label} + Delete + delete ); } diff --git a/src/components/removeMeasurementButton/style.scss b/src/components/removeMeasurementButton/style.scss index f0c7450..ad7780a 100644 --- a/src/components/removeMeasurementButton/style.scss +++ b/src/components/removeMeasurementButton/style.scss @@ -1,13 +1,20 @@ .removeButton { - background: var(--main-bg-color); - border: 1px solid var(--main-color); - color: var(--main-color); - display: block; - font-size: 16px; + align-items: center; + background: var(--main-color); + border: 0; + color: var(--main-bg-color); + display: flex; + float: right; + font-size: 12px; font-weight: 700; - margin: 15px 25px; - outline: 0; - padding: 10px 10px; + margin: 0 5px 10px 0; + padding: 2.5px 2px 2.5px 7px; + text-align: right; + text-decoration: none; text-transform: uppercase; - width: calc(100% - 50px); + + i { + font-size: .98em; + padding: 5px; + } } diff --git a/src/routes/Media/index.js b/src/routes/Media/index.js index 04377fa..10d3dc1 100644 --- a/src/routes/Media/index.js +++ b/src/routes/Media/index.js @@ -56,9 +56,14 @@ export default class Media extends Component { const measurement = this.state.measurement; return (
-
+
+ {measurement.date && } {measurement.category && } {measurement.desc && } -
); diff --git a/src/routes/Media/style.scss b/src/routes/Media/style.scss index 6505c5f..9f8f33b 100644 --- a/src/routes/Media/style.scss +++ b/src/routes/Media/style.scss @@ -1,5 +1,6 @@ .imgWrap { - border: 1px solid var(--main-color); + // border: 1px solid var(--main-color); + border: 0; display: inline-block; height: calc(50vw - 30px); position: relative; @@ -20,6 +21,18 @@ .dataWrap { padding: 16px; + + section { + background: var(--main-light-color); + } + + > div { + background: var(--main-light-color); + } + + > div:nth-child(even) { + background: var(--main-bg-color); + } } .mediaWrap { @@ -29,7 +42,7 @@ } .label { - color: var(--main-color); + color: var(--main-blue); font-size: 16px; font-weight: 700; } @@ -40,7 +53,8 @@ } .mediaRow { - border: 1px solid var(--main-color); + // border: 1px solid var(--main-color); + border: 0; padding: 10px; } diff --git a/src/routes/account/style.scss b/src/routes/account/style.scss index 06121d4..ec59470 100644 --- a/src/routes/account/style.scss +++ b/src/routes/account/style.scss @@ -16,9 +16,10 @@ } .logout { - background: var(--main-bg-color); - border: 1px solid var(--main-color); - color: var(--main-color); + background: var(--main-color); + // border: 1px solid var(--main-color); + border: 0; + color: var(--main-bg-color); display: inline-block; font-size: 16px; font-weight: 700; diff --git a/src/routes/add/index.js b/src/routes/add/index.js index 4adbc31..8a06549 100644 --- a/src/routes/add/index.js +++ b/src/routes/add/index.js @@ -195,7 +195,7 @@ export default class Add extends Component {

add item

{this.state.count > 0 && ( )} diff --git a/src/routes/add/style.scss b/src/routes/add/style.scss index fa8b1b9..e8a63ee 100644 --- a/src/routes/add/style.scss +++ b/src/routes/add/style.scss @@ -1,6 +1,6 @@ .mainInputs { - background: var(--main-bg-color); - border-bottom: 1px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: 1px solid var(--main-color); padding: 16px; } @@ -29,8 +29,9 @@ } .customFormfieldWrap { - border-bottom: .5px solid var(--main-color); - border-top: .5px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: .5px solid var(--main-color); + // border-top: .5px solid var(--main-color); display: flex; flex-direction: column; margin: 10px 0; @@ -142,17 +143,17 @@ } .submit { - background: var(--main-bg-color); + background: var(--main-color); border: 1px solid var(--main-color); border-radius: 0; - color: var(--main-color); - font-size: 16px; + color: var(--main-light-color); + font-size: 15px; font-weight: 700; left: 50%; margin-bottom: 16px; margin-top: 10px; outline: 0; - padding: 20px; + padding: 10px; position: relative; text-transform: uppercase; transform: translateX(-50%); diff --git a/src/routes/addMedia/index.js b/src/routes/addMedia/index.js index 9ce364b..1190031 100644 --- a/src/routes/addMedia/index.js +++ b/src/routes/addMedia/index.js @@ -242,7 +242,7 @@ export default class AddMedia extends Component {

add media

{this.state.count > 0 && ( )} diff --git a/src/routes/addMedia/style.scss b/src/routes/addMedia/style.scss index c9748c2..2448c8d 100644 --- a/src/routes/addMedia/style.scss +++ b/src/routes/addMedia/style.scss @@ -1,15 +1,17 @@ .mainInputs { - background: var(--main-bg-color); - border-bottom: 1px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: 1px solid var(--main-color); + border: 0; padding: 16px; } .uploadButton { align-items: center; - background: var(--main-bg-color); - border: 1px solid var(--main-color); + background: var(--main-purple); + // border: 1px solid var(--main-color); + border: 0; border-radius: 50%; - color: var(--main-color); + color: var(--main-light-color); display: flex; font-size: 50px; font-weight: 400; @@ -48,13 +50,15 @@ margin-top: 15px; label { + color: var(--main-blue); font-size: 16px; font-weight: 700; } select { - background: var(--main-bg-color); - border: 1px solid var(--main-color); + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; display: inline-block; font-size: 15px; @@ -128,7 +132,8 @@ .uploadedImage { background: var(--main-color); - border: 1px solid var(--main-color); + // border: 1px solid var(--main-color); + border: 0; display: inline-block; height: calc(50vw - 18.5px); outline: 0; @@ -137,13 +142,13 @@ .remove { align-items: center; - background: var(--main-color); + background: var(--main-purple); border: 0; border-radius: 50%; color: var(--main-bg-color); display: flex; - font-size: 30px; - height: 40px; + font-size: 15px; + height: 30px; justify-content: center; margin: 0; outline: 0; @@ -151,7 +156,7 @@ position: absolute; right: 5px; top: 5px; - width: 40px; + width: 30px; .icon { color: var(--main-bg-color); @@ -167,17 +172,17 @@ } .submit { - background: var(--main-bg-color); + background: var(--main-color); border: 1px solid var(--main-color); border-radius: 0; - color: var(--main-color); - font-size: 16px; + color: var(--main-light-color); + font-size: 15px; font-weight: 700; left: 50%; margin-bottom: 16px; margin-top: 10px; outline: 0; - padding: 20px; + padding: 10px; position: relative; text-transform: uppercase; transform: translateX(-50%); @@ -190,8 +195,9 @@ button { align-items: center; - background: none; - border: 1px solid var(--main-color); + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; color: var(--main-color); display: flex; @@ -207,7 +213,7 @@ } label { - color: var(--main-color); + color: var(--main-blue); font-size: 16px; font-weight: 700; padding: 0; diff --git a/src/routes/createAccount/index.js b/src/routes/createAccount/index.js index 51b5f88..a922561 100644 --- a/src/routes/createAccount/index.js +++ b/src/routes/createAccount/index.js @@ -4,6 +4,7 @@ import { Link } from 'preact-router/match'; import InputGroup from '../../components/inputGroup/'; import logo from '../../assets/logo.svg'; +import LicenseInfo from '../../components/license/'; import style from './style'; @@ -28,7 +29,7 @@ export default class CreateAccount extends Component { render() { return (
- Logo MyMarine + Logo MyMarine
this.props.createAccount(e, this.state.email, this.state.password)} @@ -63,6 +64,7 @@ export default class CreateAccount extends Component {
+
); } diff --git a/src/routes/createAccount/style.scss b/src/routes/createAccount/style.scss index c7b3366..457f43d 100644 --- a/src/routes/createAccount/style.scss +++ b/src/routes/createAccount/style.scss @@ -1,14 +1,23 @@ .createAccountForm { padding: 16px; + > div { + + label { + color: var(--input-color); + } + } + .createAccountSubmit { - background: none; - border: 1px solid var(--main-color); + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; - color: var(--main-color); + color: var(--main-blue); + font-size: 15px; font-weight: 700; margin: 15px 0; - padding: 15px; + padding: 10px 15px; } } @@ -19,9 +28,23 @@ margin-top: 5px; .cancel { - color: var(--main-color); + color: var(--input-color); font-weight: 700; text-decoration: none; text-transform: uppercase; } } + +.createAccountWrapper { + align-items: center; + background: var(--main-blue); + display: flex; + flex-direction: column; + justify-content: flex-start; + min-height: 100vh; +} + +.logo { + margin-top: 20px; + width: 60%; +} diff --git a/src/routes/edit/style.scss b/src/routes/edit/style.scss index 941a3de..25822e0 100644 --- a/src/routes/edit/style.scss +++ b/src/routes/edit/style.scss @@ -1,6 +1,7 @@ .mainInputs { - background: var(--main-bg-color); - border-bottom: 1px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: 1px solid var(--main-color); + border: 0; padding: 16px; } @@ -87,17 +88,17 @@ } .submit { - background: var(--main-bg-color); + background: var(--main-color); border: 1px solid var(--main-color); border-radius: 0; - color: var(--main-color); - font-size: 16px; + color: var(--main-light-color); + font-size: 15px; font-weight: 700; left: 50%; margin-bottom: 16px; margin-top: 10px; outline: 0; - padding: 20px; + padding: 10px; position: relative; text-transform: uppercase; transform: translateX(-50%); @@ -110,8 +111,9 @@ button { align-items: center; - background: none; - border: 1px solid var(--main-color); + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; color: var(--main-color); display: flex; @@ -131,7 +133,7 @@ } label { - color: var(--main-color); + color: var(--main-blue); font-size: 16px; font-weight: 700; padding: 0; @@ -146,8 +148,8 @@ } .editMain { - background: var(--main-bg-color); - border-bottom: 1px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: 1px solid var(--main-color); display: block; padding: 16px; } diff --git a/src/routes/editMedia/style.scss b/src/routes/editMedia/style.scss index ed50070..7c27515 100644 --- a/src/routes/editMedia/style.scss +++ b/src/routes/editMedia/style.scss @@ -1,5 +1,5 @@ .mainInputs { - background: var(--main-bg-color); + background: var(--main-light-color); border-bottom: 1px solid var(--main-color); padding: 16px; } @@ -37,20 +37,68 @@ padding: 14px 16px; label { - color: var(--main-color); + color: var(--main-blue); font-size: 16px; font-weight: 700; margin: 5px 0 4px; } } -.select { - background: var(--main-bg-color); - border: 1px solid var(--main-color); +select { + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; + display: inline-block; font-size: 15px; - margin: 5px 0; - padding: 10px 5px; + line-height: 1.5em; + padding: 0.5em 3.5em 0.5em 1em; + margin-top: 5px; + margin-bottom: 5px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: none; +} + +.select { + background-image: + linear-gradient(45deg, transparent 50%, var(--main-color) 50%), + linear-gradient(135deg, var(--main-color) 50%, transparent 50%), + linear-gradient(to right, var(--main-color), var(--main-color)); + background-position: + calc(100% - 20px) calc(1em + 2px), + calc(100% - 15px) calc(1em + 2px), + calc(100% - 2.5em) 0.5em; + background-size: + 5px 5px, + 5px 5px, + 1px 1.5em; + background-repeat: no-repeat; +} + +.select:focus { + background-image: + linear-gradient(45deg, var(--main-color) 50%, transparent 50%), + linear-gradient(135deg, transparent 50%, var(--main-color) 50%), + linear-gradient(to right, var(--main-color), var(--main-color)); + background-position: + calc(100% - 15px) 1em, + calc(100% - 20px) 1em, + calc(100% - 2.5em) 0.5em; + background-size: + 5px 5px, + 5px 5px, + 1px 1.5em; + background-repeat: no-repeat; + border-color: var(--main-color); + outline: 0; +} + +select:-moz-focusring { + color: transparent; + text-shadow: 0 0 0 var(--main-color); } .addedInputField { @@ -81,6 +129,7 @@ margin-top: 15px; label { + color: var(--main-blue); font-size: 16px; font-weight: 700; } @@ -93,8 +142,9 @@ button { align-items: center; - background: none; - border: 1px solid var(--main-color); + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; border-radius: 0; color: var(--main-color); display: flex; @@ -114,7 +164,7 @@ } label { - color: var(--main-color); + color: var(--main-blue); font-size: 16px; font-weight: 700; padding: 0; @@ -129,31 +179,33 @@ } .editMain { - background: var(--main-bg-color); - border-bottom: 1px solid var(--main-color); + background: var(--main-light-color); + // border-bottom: 1px solid var(--main-color); + border: 0; display: block; padding: 16px; } .submit { - background: var(--main-bg-color); + background: var(--main-color); border: 1px solid var(--main-color); border-radius: 0; - color: var(--main-color); - font-size: 16px; + color: var(--main-light-color); + font-size: 15px; font-weight: 700; left: 50%; margin-bottom: 16px; margin-top: 10px; outline: 0; - padding: 20px; + padding: 10px; position: relative; text-transform: uppercase; transform: translateX(-50%); } .imgWrap { - border: 1px solid var(--main-color); + // border: 1px solid var(--main-color); + border: 0; display: inline-block; height: calc(50vw - 20px); position: relative; diff --git a/src/routes/login/index.js b/src/routes/login/index.js index c429d62..039fc59 100644 --- a/src/routes/login/index.js +++ b/src/routes/login/index.js @@ -29,7 +29,7 @@ export default class Login extends Component { render() { return (
- Logo MyMarine + Logo MyMarine
this.props.authenticate(e, this.state.email, this.state.password)} @@ -56,7 +56,7 @@ export default class Login extends Component { />
forgot password? diff --git a/src/routes/login/style.scss b/src/routes/login/style.scss index e0e26c6..2487a94 100644 --- a/src/routes/login/style.scss +++ b/src/routes/login/style.scss @@ -1,5 +1,6 @@ .login { align-items: center; + background: var(--main-blue); display: flex; flex-direction: column; justify-content: flex-start; @@ -7,24 +8,32 @@ } .loginForm { - padding: 16px; + padding: 10px 16px; + + > div { + + label { + color: white; + } + } } .loginSub { - background: var(--main-bg-color); - border: 1px solid var(--main-color); - color: var(--main-color); + background: var(--input-color); + // border: 1px solid var(--main-color); + border: 0; + color: var(--main-blue); display: inline-block; - font-size: 16px; + font-size: 15px; font-weight: 700; margin: 7.5px 0; outline: 0; - padding: 15px 17px; - text-transform: uppercase; + padding: 10px 17px; + // text-transform: uppercase; } .forgot { - color: var(--main-color); + color: var(--input-color); display: inline-block; font-size: 16px; font-weight: 700; @@ -41,14 +50,20 @@ margin-top: 5px; } +.logo { + margin-top: 20px; + width: 60%; +} + .devider { + color: var(--main-bg-color); display: block; text-align: center; text-transform: uppercase; } .createAccount { - color: var(--main-color); + color: var(--main-bg-color); display: block; font-size: 16px; font-weight: 700; diff --git a/src/routes/measurement/index.js b/src/routes/measurement/index.js index 32d48df..37830dd 100644 --- a/src/routes/measurement/index.js +++ b/src/routes/measurement/index.js @@ -44,9 +44,14 @@ export default class Measurement extends Component { const measurement = this.state.measurement; return (
-
+
+ {measurement.date && } )} -
); diff --git a/src/routes/measurement/style.scss b/src/routes/measurement/style.scss index eec9ebc..50c7024 100644 --- a/src/routes/measurement/style.scss +++ b/src/routes/measurement/style.scss @@ -68,6 +68,14 @@ p {margin: 0;} .measurementWrapper { padding: 16px; width: 100%; + + > div { + background: var(--main-light-color); + } + + > div:nth-child(even) { + background: var(--main-bg-color); + } } .edit { diff --git a/src/routes/overview/index.js b/src/routes/overview/index.js index a910045..3fb6687 100644 --- a/src/routes/overview/index.js +++ b/src/routes/overview/index.js @@ -9,8 +9,8 @@ import AddButton from '../../components/addButton/index'; import FilterButton from '../../components/filterButton/index'; // Import image -import addIcon from '../../assets/black/measurements.svg'; -import mediaIcon from '../../assets/black/media.png'; +import addIcon from '../../assets/white/measurements.svg'; +import mediaIcon from '../../assets/white/media.svg'; export default class Overview extends Component { constructor(props) { diff --git a/src/routes/overview/style.scss b/src/routes/overview/style.scss index 7ac3c52..74a22ca 100644 --- a/src/routes/overview/style.scss +++ b/src/routes/overview/style.scss @@ -23,12 +23,13 @@ } .labels p { + color: var(--main-blue); font-weight: 700; margin: 0; } .labels p:nth-child(1) { - width: 45px; + width: 55px; } .labels p:nth-child(2) { diff --git a/src/style/index.scss b/src/style/index.scss index 57841a6..aa74d1a 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -34,3 +34,18 @@ body { min-height: 100%; padding-bottom: 60px; } + +button, +p, +span, +h1, +h2, +h3, +h4, +h5, +h6, +a, +label, +input { + font-family: 'Quattrocento Sans', sans-serif; +}