Skip to content

Commit

Permalink
dividing main components in our app and log in page #13
Browse files Browse the repository at this point in the history
  • Loading branch information
InassTubail committed Jul 25, 2018
1 parent 245e546 commit 8a5ffe7
Show file tree
Hide file tree
Showing 21 changed files with 61 additions and 81 deletions.
28 changes: 5 additions & 23 deletions client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,21 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">


<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->

<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->

</body>
</html>
8 changes: 3 additions & 5 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import React, {
Component
} from 'react';



import Login from './login/Login.jsx';
import Flight from './flights/Flight.jsx';
import Login from './pages/login/Login.jsx';
import Flight from './pages/flights/Flight.jsx';
import './App.css';

class App extends Component {
Expand All @@ -17,7 +15,7 @@ class App extends Component {
}

render() {
return (<Flight />);
return (<Login/>);

}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {
Component
} from 'react';
import '../App.css';
import '../../App.css';
import './button.css'


Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {
Component
} from 'react';
import '../App.css';
import '../../App.css';
import './header.css'


Expand Down
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {
Component
} from 'react';
import '../App.css';
import '../../App.css';
import './input.css';

class Input extends Component {
Expand All @@ -16,9 +16,8 @@ import React, {
} = this.props;
console.log(this.props)
return (
<div>
<input className={className} placeholder={placeholder}/>
</div>
<input className={className} placeholder={placeholder}/>

);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

.container input{
background-color: #91ADF6;
border-color: #91ADF6;
/* border-color: #91ADF6; */
padding: 5px;
display: inline;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {
Component
} from 'react';
import '../App.css';
import '../../App.css';
import './sidenav.css'

class Sidenav extends Component {
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {
Component
} from 'react';
import '../App.css';
import '../../App.css';
import './table.css';


Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ import React from 'react' ;
import ReactDOM from 'react-dom' ;
import App from './App.jsx' ;


ReactDOM.render(<App />, document.getElementById('root'));
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, {
Component
} from 'react';
import '../App.css';
import '../../App.css';
import './flight.css';


import Header from '../header/Header.jsx';
import Sidenav from '../sidenav/Sidenav.jsx';
import Table from '../table/Table.jsx'
import Header from '../../components/header/Header.jsx';
import Sidenav from '../../components/sidenav/Sidenav.jsx';
import Table from '../../components/table/Table.jsx'


class Flight extends Component {
Expand Down
File renamed without changes.
23 changes: 9 additions & 14 deletions client/src/login/Login.jsx → client/src/pages/login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import React, {
Component
} from 'react';
import './login.css';
import '../App.css';
import '../input/Input.jsx'
import Input from '../input/Input.jsx';
import Button from '../button/Button.jsx';
import '../../App.css';
import Input from '../../components/input/Input.jsx';
import Button from '../../components/button/Button.jsx';



Expand All @@ -27,22 +26,18 @@ class Login extends Component {
<div className="inputs-group">


<div className="user">
<div className="usericon">
<span className="fas fa-user-tie"></span>
</div>
<div className="userinput">
{/* <div className="user">
<div className="usericon"> */}
<label class="start_date">
<Input className="uname" placeholder='Username' />
</div>

</div>
</label>
{/* </div>
</div> */}

<Input className='password' placeholder='Password' />
</div>
<Button textvalue="Login"/>



</div>

);
Expand Down
56 changes: 31 additions & 25 deletions client/src/login/login.css → client/src/pages/login/login.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
body {
background-color: #EEEEEE;
}
.container{

.container {
text-align: center;
background-color: white;
width: 50%;
margin: auto;
height: 600px;
margin-top:35px;

margin-top: 35px;
}

.container h1{
margin-top:-43px;
.container h1 {
margin-top: -43px;
}

.container .plane {
width: 300px;
}
.container .inputs-group{
margin-top:60px;

}
.container input ,
.container button
{
width:250px;
}
.container button{
/* background-color: #404040;
}

.container .inputs-group {
margin-top: 60px;
}

.container input,
.container button {
width: 250px;
}

.container button {
/* background-color: #404040;
border: none;
color:#91ADF6;
font-weight: bold;
Expand All @@ -37,22 +39,26 @@ body {
font-size: 16px;
cursor: pointer;
border-radius: 12px; */
height: 40px;
}
.container input{
height: 30px;
margin-bottom: 20px;
height: 40px;
}

.container input {
height: 30px;
margin-bottom: 20px;
}

.userinput,
.usericon {
display: inline;
background-color: #91ADF6;
border-color: #91ADF6;
padding: 5px;
height: 44px;
}

.user {
white-space: nowrap;
white-space: nowrap;
}

.user>div {
display: inline-block;
display: inline;
}
File renamed without changes

0 comments on commit 8a5ffe7

Please sign in to comment.