Skip to content

Commit

Permalink
ch(landing page): Add landing page
Browse files Browse the repository at this point in the history
- Add landing page html layout
- Add landing page style
- Style landing page responsive mobile design
  • Loading branch information
nziokaivy committed Jan 8, 2020
1 parent ff43644 commit abd4aee
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import Notfound from './NotFound';
import SocialLogin from './containers/user/social/SocialAuthLogin';
import Dashboard from './views/Dashboard/index';
import './assets/css/App.scss';
import LandingPage from './components/LandingPage';

const App = () => (
<Provider store={store}>
<Router>
<div className="container">
<Switch>
<Route path="/" exact component={LandingPage} />
<Route path="/signin" exact component={Signin} />
<Route path="/social/auth/success" exact component={SocialLogin} />
<Route path="/dashboard" exact component={Dashboard} />
Expand Down
131 changes: 131 additions & 0 deletions src/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,135 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Muli;

}
.main-logo {
display: flex;
margin-top: 30px;
margin-left: 50px;
}
.logo img{
width: 50px;
height: 50px;
}

.logo-name {
width: 100%;
height: 100%;
margin-top: 19px;
margin-left: 15px;

}

.logo-name a {
text-decoration: none;
margin-top: 10px;
font-family: Muli;
font-size: 28px;
line-height: 18%;
color: #00B9F2;
font-weight: 1000;
}

.main-title {
color: #000;
font-size: 20px;
margin-top: 7em;
margin-left: 3em;
}

.button {
padding: 14px 32px;
margin-top: 10em;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
border: 2px solid #00B9F2;
border-radius: 8px;
}

.button:hover {
background-color: #00B9F2;
color: white;
opacity: 1;
}

.column-left {
float: left;
width: 30%;
padding: 10px;
height: 100vh;

}

.column-right {
float: left;
width: 70%;
padding: 10px;
height: 100vh;
background-image: url('../images/landing.png');
background-repeat: no-repeat;

}

@media screen and (max-width: 600px) {
.column {
width: 100%;
}
.column-right {
display: none;
}
.column-left {
width: 100%;
background-image: url('../images/responsive.png');
background-repeat: no-repeat;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.main-title {
font-size: 17px;
}
.button {
background-color: #ffffff;
}
.logo img{
width: 30px;
height: 30px;
}

.main-logo {
display: flex;
margin-top: 20px;
margin-left: 10px;
}

.logo-name {
width: 100%;
height: 100%;
margin-top: 6px;
margin-left: 15px;

}

.logo-name a {
text-decoration: none;
margin-top: 10px;
font-family: Muli;
font-size: 18px;
line-height: 18%;
color: #00B9F2;
font-weight: 1000;
}

.main-title {
color: #000;
font-size: 15px;
margin-top: 7em;
margin-left: 15px;
}
}



Binary file added src/assets/images/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/landing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/responsive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions src/components/LandingPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';
import { Link } from 'react-router-dom';
import '../assets/css/style.css';
import logo from '../assets/images/logo.png';

const landingPage = () => (
<div className="row">
<div className="column-left" style={{ backgroundColor: 'white' }}>
<div className="main-logo">
<div className="logo">
<img src={logo} alt="logo" />
</div>
<div className="logo-name">
<a href="#home">Barefoot</a>
</div>

</div>
<div className="main-title">
<h4>
Making company travel and
<br />
accomodation easy and convenient
</h4>
<Link to="signin">
<button className="button">Login to Get Started</button>

</Link>
</div>
</div>
<div className="column-right" />
</div>
);
export default landingPage;
Empty file removed src/components/index.js
Empty file.

0 comments on commit abd4aee

Please sign in to comment.