-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from marizvi/master
Preloader Added
- Loading branch information
Showing
8 changed files
with
28,809 additions
and
9,970 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.App { | ||
text-align: center; | ||
background-color: rgb(16, 29, 68); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100vh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, { useState, useEffect } from 'react'; | ||
import { Switch, Route } from 'react-router-dom'; | ||
import HomePage from './components/home/HomePage'; | ||
import HomeComponent from './components/welcome/HomeComponent.js'; | ||
import HashLoader from 'react-spinners/HashLoader'; | ||
import './Main.css'; | ||
|
||
function App() { | ||
const [loading, setLoading] = useState(false); | ||
useEffect(() => { | ||
setLoading(true); | ||
setTimeout(() => { | ||
setLoading(false); | ||
}, 2410); | ||
}, []); | ||
|
||
return ( | ||
<div className="App"> | ||
{loading ? ( | ||
<div className="loadd"> | ||
<HashLoader color={'white'} loading={loading} size={60} /> | ||
</div> | ||
) : ( | ||
<Switch> | ||
{/* New PArrellax component */} | ||
{/* <Route exact path="/" component={HomePage}></Route> */} | ||
<Route exact path="/" component={HomeComponent}></Route> | ||
<Route exact path="/home" component={HomePage}></Route> | ||
</Switch> | ||
)} | ||
</div> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,6 @@ | |
.footer-image { | ||
opacity: 0.6; | ||
width: 40%; | ||
margin-left: 30%; | ||
} | ||
|
||
.footer-heading { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.