File tree Expand file tree Collapse file tree 5 files changed +19
-16
lines changed Expand file tree Collapse file tree 5 files changed +19
-16
lines changed Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import desktop from './desktop.svg' ;
3
+ import './styles.css' ;
4
+
5
+ export const Desktop = ( ) => {
6
+ return (
7
+ < div className = "Home" >
8
+ < header className = "Home-Page" >
9
+ < h2 > Stratafly</ h2 >
10
+ < h5 > Find The Best Flight Deals With Us</ h5 >
11
+ < img src = { desktop } alt = "stratafly" />
12
+ </ header >
13
+ </ div >
14
+ ) ;
15
+ } ;
Original file line number Diff line number Diff line change 1
- .App {
1
+ .Home {
2
2
text-align : center;
3
3
}
4
4
5
- .App-header {
5
+ .Home-Page {
6
6
background-color : # e7f6e7 ;
7
7
min-height : 100vh ;
8
8
display : flex;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { trip } from '../shared/app-constants';
14
14
import { PaymentContainer } from './PaymentContainer' ;
15
15
import { Empty } from '../components/Empty' ;
16
16
import { Confirmation } from '../components/Confirmation' ;
17
+ import { Desktop } from "../components/Desktop" ;
17
18
18
19
const appScreens = {
19
20
showSearch : false ,
@@ -70,6 +71,7 @@ class App extends Component {
70
71
onBookAnotherFlight = ( ) => this . setState ( defaultState ) ;
71
72
72
73
render ( ) {
74
+ if ( window . screen . width >= 1024 && window . screen . height >= 768 ) return < Desktop /> ;
73
75
const {
74
76
from,
75
77
to,
You can’t perform that action at this time.
0 commit comments