From 2708c196b6553884f095073561c663c985cd15ac Mon Sep 17 00:00:00 2001 From: vbouquet Date: Wed, 29 Nov 2017 14:51:08 +0100 Subject: [PATCH] Add grid and material ui for home page --- src/client/app/components/Home.jsx | 12 ++++- src/client/app/components/LogginForm.jsx | 64 +++++++++++++++--------- 2 files changed, 51 insertions(+), 25 deletions(-) diff --git a/src/client/app/components/Home.jsx b/src/client/app/components/Home.jsx index 7b11c25..d390f21 100644 --- a/src/client/app/components/Home.jsx +++ b/src/client/app/components/Home.jsx @@ -2,14 +2,22 @@ import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import LogginForm from './LogginForm.jsx'; import MenuAppBar from './MenuAppBar.jsx'; +import PropTypes from 'prop-types'; +import Grid from 'material-ui/Grid'; class Home extends React.Component { render() { return (
-




- +














+ + + + + + +
); } diff --git a/src/client/app/components/LogginForm.jsx b/src/client/app/components/LogginForm.jsx index 458c03e..85ba41d 100644 --- a/src/client/app/components/LogginForm.jsx +++ b/src/client/app/components/LogginForm.jsx @@ -1,9 +1,12 @@ -import React, {Component} from 'react'; -import ReactDOM from 'react-dom'; -import RecordingCenter from './RecordingCenter.jsx'; -import Button from 'material-ui/Button'; -import Input, { InputLabel } from 'material-ui/Input'; +import React, {Component} from 'react'; +import ReactDOM from 'react-dom'; +import RecordingCenter from './RecordingCenter.jsx'; +import Button from 'material-ui/Button'; +import Input, { InputLabel } from 'material-ui/Input'; import { FormControl, FormHelperText } from 'material-ui/Form'; +import Grid from 'material-ui/Grid'; +import Paper from 'material-ui/Paper'; + class LogginForm extends React.Component { constructor(props){ @@ -22,7 +25,6 @@ class LogginForm extends React.Component { handleInputChange(event) { const target = event.target; - // TODO pourquoi ça fait lagger la page web ? C'est ridicule ! this.setState({ [target.name]: target.value }); @@ -43,28 +45,44 @@ class LogginForm extends React.Component { } render() { + const { classes } = this.props; if (this.state.logginRedirection) return else { return ( -
- - Firstname - - - - Lastname - - + + + + + + Firstname + + + + + + + + + Lastname + + + + - - + + + + + +
); } }