diff --git a/src/App.css b/src/App.css old mode 100755 new mode 100644 index 74b5e05..1a12d1b --- a/src/App.css +++ b/src/App.css @@ -1,38 +1,5 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } +.container { + with: 700px; + border: 1px solid green; + margin: 0 auto; } diff --git a/src/App.js b/src/App.js index 298f5a0..0c43b30 100755 --- a/src/App.js +++ b/src/App.js @@ -1,28 +1,13 @@ import React, {Component} from 'react'; -import Header from './Header'; -//import Dropdown from './Dropdown'; +import "./App.css"; - -const menu = [ - { - link: '/articles', - label: 'Articles' - }, - { - link: '/contacts', - label: 'Contacts' - }, - { - link: '/posts', - label: 'Posts' - } -]; +import RegistrationForm from './RegistrationForm'; class App extends Component { render() { return ( -
-
+
+
); } diff --git a/src/RegistrationForm.css b/src/RegistrationForm.css new file mode 100644 index 0000000..ad3aa9f --- /dev/null +++ b/src/RegistrationForm.css @@ -0,0 +1,14 @@ +.emailField { + width: 300px; + height: 40px; + display: block; + border-radius: 4px; + margin-bottom: 10px; +} + +.submitButton { + width: 300px; + background: blue; + height: 50px; + border: 0; +} diff --git a/src/RegistrationForm.js b/src/RegistrationForm.js new file mode 100644 index 0000000..86812ae --- /dev/null +++ b/src/RegistrationForm.js @@ -0,0 +1,40 @@ +import React, { Component } from 'react'; +import './RegistrationForm.css'; + +class RegistrationForm extends Component { + constructor(props) { + super(props); + this.state = { + email: '' + }; + this.handleEmailChange = this.handleEmailChange.bind(this); + this.handleSubmit = this.handleSubmit.bind(this); + } + + handleSubmit(event) { + event.preventDefault(); + console.log('Form is submitted. Email value is', this.state.email); + } + + handleEmailChange(event) { + console.log('E-mail was changed', event.target.value); + this.setState({email:event.target.value}); + } + + render() { + return ( +
+ + +
+ ); + } +} + +export default RegistrationForm; diff --git a/src/index.css b/src/index.css index ec2585e..d0d3bbd 100755 --- a/src/index.css +++ b/src/index.css @@ -5,6 +5,7 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background: #F5F5F5; } code {