Skip to content

Commit 388e8c5

Browse files
authored
Merge pull request #186 from HackMerced/learnday-navbar_render
Started the LHD: Learn page
2 parents 0acbdcf + 6c78a52 commit 388e8c5

4 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { FC, Fragment } from "react";
22
import { Router, Route, Switch, Redirect } from "react-router-dom";
33
import { createHashHistory } from "history";
44

5+
import LearnDay from "./pages/LearnDay";
56
import Home from "./pages/Home";
67
import PastHackathons from "./pages/PastHackathons";
78
import SponsorUs from "./pages/SponsorUs";
@@ -28,6 +29,7 @@ const App: FC = (): JSX.Element => {
2829
})}
2930
>
3031
<Switch>
32+
<Route path="/learn-day" component={LearnDay} />
3133
<Route exact path="/" component={Home} />
3234
<Route path="/sponsors" component={SponsorUs} />
3335
<Route path="/contact-us" component={ContactUs} />

src/components/NavBar/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ const Navbar: FC<{ backgroundColor?: string; textColor?: string; breakLineColor?
7878
<img src={CLOSE_ICON} height="40" width="40" />
7979
</HamburgerButton.Wrapper>
8080
</Menu.Item>
81+
<Menu.Item>
82+
<Link to="/learn-day">Learn Day</Link>
83+
{pathname === "/learn-day" ? BreakLine() : null}
84+
</Menu.Item>
8185
<Menu.Item>
8286
<Link to="/">Home</Link>
8387
{pathname === "/" ? BreakLine() : null}

src/pages/LearnDay/index.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React, { FC } from "react";
2+
3+
import Navbar from "../../components/NavBar";
4+
5+
import "./styles.scss";
6+
7+
const LearnDay: FC = (): JSX.Element => {
8+
return(
9+
<Navbar />
10+
// Title component
11+
// FAQ component
12+
// Schedule component
13+
// render Footer component
14+
);
15+
};
16+
17+
export default LearnDay;

src/pages/LearnDay/styles.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)