Skip to content

Commit

Permalink
resolve changes requests #13 #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Balsam-Faysal committed Jul 26, 2018
1 parent ec32230 commit c19ab46
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 45 deletions.
40 changes: 5 additions & 35 deletions client/src/App.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.App {
display: flex;
align-items: center;
justify-content: center;
}

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;
}

.App-header {
background-color: #222;
height: 150px;
padding: 20px;
color: white;
}

.App-title {
font-size: 1.5em;
}

.App-intro {
font-size: large;
}

@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
3 changes: 1 addition & 2 deletions client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React, { Component } from 'react';
import Login from './pages/login';
// import Flight from './pages/flights';
import AddFlight from './pages/addFlight';
import UpdateFlight from './pages/updateFlight';
import './App.css';

class App extends Component {
render() {
return (
<Login />
<UpdateFlight />
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/detailscard/detailscard.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
font-family: 'Volkhov';
font-size: 15px;
width: 100%;
margin: 10px 0 10px 0;
margin: 10px 0;
}

.duration-label {
Expand All @@ -29,7 +29,7 @@
}

.labels-container {
padding: 0 10px 0 10px;
padding: 0 10px;
width: 300px;
height: 30px;
margin-bottom: 10px;
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/detailscard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import './detailscard.css'

class Card extends Component {
render() {
const { flightduration } = this.props;
const { flightduration, destination , origin} = this.props;
return (
<div className='center-div'>
<div className='container-card-details'>
<label className='flightno-style'>Flight no.</label>
<div className='labels-container'>
<label className='duration-label'>From</label>
<label className='float-style'>f</label>
<label className='float-style'>{origin}</label>
</div>
<div className='labels-container'>
<label className='duration-label'>To</label>
<label className='float-style'>f</label>
<label className='float-style'>{destination}</label>
</div>
<div className='labels-container'>
<label className='duration-label'>Flight duration</label>
Expand Down
1 change: 0 additions & 1 deletion client/src/components/input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class Input extends Component {
return (
<div className='container-input'>
<label className='label-style'>{labelText}</label>
{/* <i class={iconclass}></i> */}
<input className='input-style' placeholder={placeholder}/>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion client/src/components/select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class Select extends Component {
return (
<div className='container-select'>
<label className='label-style'>{labelText}</label>
{/* <i class={iconclass}></i> */}
<select className='select-style'>
<option>{firstItem}</option>
<option>balsam</option>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/updateFlight/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class UpdateFlight extends Component {
<div className="sub-container-sidenav-form">
<Sidenav thirdTap={true}/>
<div className="sub-container-form">
<DetailsCard flightduration='00 hours'/>
<DetailsCard flightduration='00 hours' destination='destination' origin='origin' />
<Input labelText='Departure time' iconclass='fa fa-user' placeholder='00:00:00 am' />
<Input labelText='Boarding time' iconclass='fa fa-user' placeholder='00:00:00 am' />
<Input labelText='Gate no.' iconclass='fa fa-user' placeholder='ex:1234' />
Expand Down

0 comments on commit c19ab46

Please sign in to comment.