diff --git a/src/App.tsx b/src/App.tsx index 546fa23..747a5a6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -33,7 +33,7 @@ const muiTheme = getMuiTheme({ } }); -function getPalette(part: string): string { +export function getPalette(part: string): string { const theme = muiTheme; if ((theme.palette === undefined) || (theme.palette[part] === undefined)) { return ''; diff --git a/src/Constants.tsx b/src/Constants.tsx index d2d2f49..a55aeb0 100644 --- a/src/Constants.tsx +++ b/src/Constants.tsx @@ -4,4 +4,6 @@ export const faq = homePage + 'faq/'; export const sourceCode = 'https://github.com/etesync/etesync-web'; export const reportIssue = sourceCode + '/issues'; +export const forgotPassword = 'https://www.etesync.com/accounts/password/reset/'; + export const serviceApiBase = 'https://api.etesync.com/'; diff --git a/src/EteSyncContext.tsx b/src/EteSyncContext.tsx index c9e5355..deeaca2 100644 --- a/src/EteSyncContext.tsx +++ b/src/EteSyncContext.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { Switch, Route, Redirect } from 'react-router'; +import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; @@ -9,7 +10,7 @@ import { JournalView } from './JournalView'; import * as EteSync from './api/EteSync'; -import { routeResolver } from './App'; +import { routeResolver, getPalette } from './App'; import * as C from './Constants'; @@ -118,36 +119,66 @@ export class EteSyncContext extends React.Component { ); } + const styles = { + holder: { + margin: 'auto', + maxWidth: 400, + padding: 20, + }, + paper: { + padding: 20, + }, + form: { + }, + forgotPassword: { + color: getPalette('accent1Color'), + paddingTop: 20, + }, + advancedSettings: { + marginTop: 20, + }, + submit: { + marginTop: 40, + textAlign: 'right', + }, + }; + return ( -