Skip to content

Commit

Permalink
added default landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
harshasrikara committed May 19, 2020
1 parent 38b54ec commit 8ba9a17
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import Pricing from "./Components/Pages/Pricing";
import Error404 from "./Components/Pages/Error404";
import { Route, Switch } from "react-router-dom";
import app from "./Components/Firebase/firebase";
import LandingPage from "./Components/Pages/LandingPage";

function App() {
return (
<div>
<Switch>
<Route path="/" render = {(props) => <User database = {app} />} exact />
<Route path="/" component={LandingPage} exact/>
<Route path="/user" render = {(props) => <User database = {app} />} exact />
<Route path="/admin" render = {(props) => <Admin database = {app} />} exact />
<Route path="/pricing" component={Pricing} exact />
<Route path="*" component={Error404} exact />
Expand Down
4 changes: 4 additions & 0 deletions src/Components/Layout/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class NavBar extends React.Component {
name: "Home",
link: "/",
},
{
name: "User",
link: "/user"
},
{
name: "Admin",
link: "/admin",
Expand Down
21 changes: 21 additions & 0 deletions src/Components/Pages/LandingPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import Navbar from "../Layout/NavBar";
import { Container } from "react-bootstrap";

const LandingPage = () => {
return (
<div>
<Navbar />
<Container fluid>
<div className="m-5 p-5 floating-icon">
<h1>Welcome to TrackIT</h1>
<p>
Interactive real-time solution to remotely delivering event content and tracking user progress
</p>
</div>
</Container>
</div>
);
};

export default LandingPage;

0 comments on commit 8ba9a17

Please sign in to comment.