Skip to content

Commit

Permalink
Added a trainspace page for a new page implementation
Browse files Browse the repository at this point in the history
Specifically, initialized a trainspace.tsx file for the new page implementation, and connected the trainspace page to the navbar component to allow for the navbar to be displayed within the page.
  • Loading branch information
hartejsingh12 committed Dec 26, 2023
1 parent 32cd089 commit 15e26f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/common/components/NavBarMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ const NavbarMain = () => {
display: { xs: "none", md: "flex", justifyContent: "right" },
}}
>
<Grid item>
<Link href="/trainspace" passHref className="nav-link">
TrainSpace
</Link>
</Grid>
<Grid item>
{isSignedIn(user) ? (
<Link href="/train" passHref className="nav-link">
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/pages/trainspace.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import NavbarMain from "@/common/components/NavBarMain";
import React from "react";

const TrainSpace = () => {
return (
<div>
<NavbarMain />
<h1>Welcome to TrainSpace</h1>
</div>
);
};

export default TrainSpace;

0 comments on commit 15e26f8

Please sign in to comment.