-
nav
); - -} -export default NavPanel; \ No newline at end of file diff --git a/packages/webapp/src/components/maps-page/nav-panel/style.ts b/packages/webapp/src/components/maps-page/nav-panel/style.ts deleted file mode 100644 index 5bd635f5..00000000 --- a/packages/webapp/src/components/maps-page/nav-panel/style.ts +++ /dev/null @@ -1,7 +0,0 @@ -import styled from "styled-components"; - - -export const NavArea = styled.div` -grid-area: nav; -background-color: red; -` diff --git a/packages/webapp/src/components/maps-page/style.ts b/packages/webapp/src/components/maps-page/style.ts new file mode 100644 index 00000000..60d714b9 --- /dev/null +++ b/packages/webapp/src/components/maps-page/style.ts @@ -0,0 +1,80 @@ +import { createStyles, ListItemText, Theme, withStyles } from "@material-ui/core"; +import { makeStyles } from "@material-ui/core"; + +const drawerWidth = 300; + +export const useStyles = makeStyles((theme: Theme) => + createStyles({ + root: { + display: 'flex', + }, + appBar: { + zIndex: theme.zIndex.drawer + 1, + transition: theme.transitions.create(['width', 'margin'], { + easing: theme.transitions.easing.sharp, + duration: theme.transitions.duration.leavingScreen, + }), + background: '#ffffff', + + }, + appBarShift: { + marginLeft: drawerWidth, + width: `calc(100% - ${drawerWidth}px)`, + transition: theme.transitions.create(['width', 'margin'], { + easing: theme.transitions.easing.sharp, + duration: theme.transitions.duration.enteringScreen, + }), + }, + menuButton: { + marginRight: 36, + }, + hide: { + display: 'none', + }, + drawer: { + width: drawerWidth, + flexShrink: 0, + whiteSpace: 'nowrap', + }, + drawerOpen: { + background: '#ffa800', + width: drawerWidth, + transition: theme.transitions.create('width', { + easing: theme.transitions.easing.sharp, + duration: theme.transitions.duration.enteringScreen, + }), + }, + drawerClose: { + transition: theme.transitions.create('width', { + easing: theme.transitions.easing.sharp, + duration: theme.transitions.duration.leavingScreen, + }), + overflowX: 'hidden', + width: theme.spacing(7) + 1, + [theme.breakpoints.up('sm')]: { + width: theme.spacing(9) + 1, + }, + }, + toolbar: { + display: 'flex', + alignItems: 'center', + justifyContent: 'flex-end', + padding: theme.spacing(0, 1), + // necessary for content to be below app bar + ...theme.mixins.toolbar, + }, + content: { + flexGrow: 1, + padding: theme.spacing(3), + }, + listItemText: { + } + }), +); + +export const ListItemTextStyled = withStyles({ + root: + { + color: 'white', + } +})(ListItemText); diff --git a/packages/webapp/src/components/maps-page/styled.ts b/packages/webapp/src/components/maps-page/styled.ts deleted file mode 100644 index d2bab408..00000000 --- a/packages/webapp/src/components/maps-page/styled.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Button, Dialog, MenuItem, TableCell } from '@material-ui/core'; -import { withStyles } from '@material-ui/core/styles'; -import styled from 'styled-components'; - -export const PageContainer = styled.div` -display: grid; -height: 100vh; -width: 100vw; -grid-template-areas: "nav header header" - "nav main ads" - "nav main ads"; -grid-template-columns: 240px 1fr 240px; -grid-template-rows: 60px 1fr 30px; -` - -export const MapsListArea = styled.div` -grid-area: main; -background-color: #ffff64; -` - -export const HeaderArea = styled.div` -grid-area: header; -background-color: blue; -` - -export const StyledTableCell = withStyles({ - root: { - color: 'black', - padding: '0px', - cursor: 'pointer' - } -})(TableCell); - -export const StyledMenuItem = withStyles({ - root: { - width: '300px', - padding: '10px 20px', - marging: '0px 20px' - } -})(MenuItem) diff --git a/packages/webapp/src/components/registration-page/index.tsx b/packages/webapp/src/components/registration-page/index.tsx index a8ee646c..0b91b425 100644 --- a/packages/webapp/src/components/registration-page/index.tsx +++ b/packages/webapp/src/components/registration-page/index.tsx @@ -7,14 +7,14 @@ import { ErrorInfo, Service } from '../../services/Service'; import Header from '../layout/header'; import Footer from '../layout/footer'; -import { StyledReCAPTCHA } from './styled'; -import { PageContent, theme } from '../../theme/global-style'; -import { CssBaseline, FormControl, ThemeProvider } from '@material-ui/core'; +import { PageContent } from '../../theme'; +import { FormControl, Typography } from '@material-ui/core'; import { useSelector } from 'react-redux'; import { useMutation } from 'react-query'; import { activeInstance } from '../../reducers/serviceSlice'; import Input from '../form/input'; import GlobalError from '../form/global-error'; +import SubmitButton from '../form/submit-button'; export type Model = { email: string; @@ -58,8 +58,13 @@ const RegistrationForm = () => { return (
+
+
+