diff --git a/.eslintcache b/.eslintcache index 2feb3ad2..eb64876e 100644 --- a/.eslintcache +++ b/.eslintcache @@ -1 +1 @@ -[{"/Users/pveiga/repos/wisemapping-react/src/Footer.js":"1","/Users/pveiga/repos/wisemapping-react/src/Header.js":"2","/Users/pveiga/repos/wisemapping-react/src/index.js":"3","/Users/pveiga/repos/wisemapping-react/src/RegistrationApp.js":"4"},{"size":1601,"mtime":1606716377431,"results":"5","hashOfConfig":"6"},{"size":1572,"mtime":1606670050593,"results":"7","hashOfConfig":"6"},{"size":1826,"mtime":1606776455622,"results":"8","hashOfConfig":"6"},{"size":3257,"mtime":1606776552866,"results":"9","hashOfConfig":"6"},{"filePath":"10","messages":"11","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xegajf",{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"14","messages":"15","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/pveiga/repos/wisemapping-react/src/Footer.js",[],"/Users/pveiga/repos/wisemapping-react/src/Header.js",[],"/Users/pveiga/repos/wisemapping-react/src/index.js",["18"],"/Users/pveiga/repos/wisemapping-react/src/RegistrationApp.js",[],{"ruleId":"19","severity":1,"message":"20","line":38,"column":57,"nodeType":"21","messageId":"22","endLine":38,"endColumn":59},"eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected"] \ No newline at end of file +[{"/Users/pveiga/repos/wisemapping-react/src/Footer.js":"1","/Users/pveiga/repos/wisemapping-react/src/Header.js":"2","/Users/pveiga/repos/wisemapping-react/src/index.js":"3","/Users/pveiga/repos/wisemapping-react/src/RegistrationApp.js":"4","/Users/pveiga/repos/wisemapping-react/src/LoginApp.js":"5"},{"size":1601,"mtime":1606716377431,"results":"6","hashOfConfig":"7"},{"size":1572,"mtime":1606670050593,"results":"8","hashOfConfig":"7"},{"size":1882,"mtime":1606786667541,"results":"9","hashOfConfig":"7"},{"size":3839,"mtime":1606786664130,"results":"10","hashOfConfig":"7"},{"size":4089,"mtime":1606780103039,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xegajf",{"filePath":"14","messages":"15","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"16","messages":"17","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/pveiga/repos/wisemapping-react/src/Footer.js",[],"/Users/pveiga/repos/wisemapping-react/src/Header.js",[],"/Users/pveiga/repos/wisemapping-react/src/index.js",["22"],"/Users/pveiga/repos/wisemapping-react/src/RegistrationApp.js",[],"/Users/pveiga/repos/wisemapping-react/src/LoginApp.js",[],{"ruleId":"23","severity":1,"message":"24","line":37,"column":57,"nodeType":"25","messageId":"26","endLine":37,"endColumn":59},"eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected"] \ No newline at end of file diff --git a/src/LoginApp.js b/src/LoginApp.js index 428ec3e5..38c51c55 100644 --- a/src/LoginApp.js +++ b/src/LoginApp.js @@ -1,3 +1,5 @@ +import './css/login.css'; + import React from 'react'; import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl' diff --git a/src/RegistrationApp.js b/src/RegistrationApp.js index e18050fa..9628cf56 100644 --- a/src/RegistrationApp.js +++ b/src/RegistrationApp.js @@ -1,3 +1,5 @@ +import './css/registration.css'; + import React from 'react'; import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl' @@ -50,22 +52,23 @@ class RegistrationForm extends React.Component { return (
); diff --git a/src/css/login.css b/src/css/login.css index b41bd9e7..8ae972db 100644 --- a/src/css/login.css +++ b/src/css/login.css @@ -11,7 +11,8 @@ } .content input[type=email], -.content input[type=password] { +.content input[type=password], +.content input[type=text] { width: 258px; height: 53px; padding: 0px 20px; diff --git a/src/css/registration.css b/src/css/registration.css new file mode 100644 index 00000000..8ae972db --- /dev/null +++ b/src/css/registration.css @@ -0,0 +1,85 @@ +@import "core.css"; +.wrapper { + max-width: 1024px; + display: grid; + grid-template-areas: "content" "footer"; +} + +.content { + grid-area: content; + text-align: center; +} + +.content input[type=email], +.content input[type=password], +.content input[type=text] { + width: 258px; + height: 53px; + padding: 0px 20px; + margin: 10px 20px; + border-radius: 9px; + font-size: 16px; + border: solid 1px #f9a826; + display: block; + margin: 10px auto; +} + +.content input[type=submit] { + width: 258px; + height: 53px; + padding: 0px 20px; + margin: 10px 20px; + font-size: 20px; + font-weight: 600; + border-radius: 9px; + border: 0px; + background-color: rgba(255, 168, 0, 0.6); + color: white; +} + +input[type=submit]:hover { + background-color: #f9a826; +} + +.content input:placeholder { + color: grey; +} + +.content label { + font-size: 14px; +} + +.content input[type=checkbox] { + border: solid 1px #f9a826; + background-color: #f9a826; +} + +.content a { + color: #f9a826; + font-size: 15px; +} + +.db-warn-msg { + margin-top: 30px; + width: 100%; +} + +.db-warn-msg p { + margin: 0 auto; + width: 500px; + background-color: #e97450; + font-size: 15px; + color: white; + padding: 15px 30px; + border-radius: 10px; +} + +.error { + margin: 10px auto; + width: 260px; + font-size: 14px; + background-color: #e97450; + padding: 10px 10px; + border-radius: 9px; + color: white; +} \ No newline at end of file diff --git a/src/index.js b/src/index.js index e9ed4eb5..7d3c0abc 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,3 @@ -import './css/login.css'; - import React from 'react'; import ReactDOM from 'react-dom'; import LoginApp from './LoginApp.js';