From cd89cbc1bd121c7ecc9f075c99f3781ed2aea215 Mon Sep 17 00:00:00 2001 From: FilippoCesana Date: Mon, 2 Mar 2020 11:23:50 +0100 Subject: [PATCH] signup page implemented --- smart-hut/src/views/Signup.js | 92 ++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/smart-hut/src/views/Signup.js b/smart-hut/src/views/Signup.js index db1fd6c..be66ddf 100644 --- a/smart-hut/src/views/Signup.js +++ b/smart-hut/src/views/Signup.js @@ -1,10 +1,98 @@ import React, {Component} from 'react'; +import {Button, Form, Grid, Header, Image, Message, Segment, Icon, Checkbox, Input} from 'semantic-ui-react'; + export default class Signup extends Component{ + constructor(props) { + super(props); + this.state = { + logged : false, + completeName: '', + username: '', + email: "", + password : "" + }; + } + + handleLogin = (e) => { + // TODO Login should be handled here + console.log(this.state); + }; + + onChangeHandler = (event) => { + let nam = event.target.name; + let val = event.target.value; + this.setState({[nam]: val}); + }; + + render() { - return( - "This is the register page" + return ( + + + + +
+ Sign-up to SmartHut +
+
+ + + + + + +
+
+
) } }