From 15e26f81ef038d0a507e8b228e9e0639f0cecf76 Mon Sep 17 00:00:00 2001 From: hartejsingh12 <12.singh.hartej@gmail.com> Date: Tue, 26 Dec 2023 16:09:02 -0500 Subject: [PATCH] Added a trainspace page for a new page implementation 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. --- frontend/src/common/components/NavBarMain.tsx | 5 +++++ frontend/src/pages/trainspace.tsx | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 frontend/src/pages/trainspace.tsx diff --git a/frontend/src/common/components/NavBarMain.tsx b/frontend/src/common/components/NavBarMain.tsx index 579746a9f..1f2cee7cc 100644 --- a/frontend/src/common/components/NavBarMain.tsx +++ b/frontend/src/common/components/NavBarMain.tsx @@ -100,6 +100,11 @@ const NavbarMain = () => { display: { xs: "none", md: "flex", justifyContent: "right" }, }} > + + + TrainSpace + + {isSignedIn(user) ? ( diff --git a/frontend/src/pages/trainspace.tsx b/frontend/src/pages/trainspace.tsx new file mode 100644 index 000000000..a64c0e7a3 --- /dev/null +++ b/frontend/src/pages/trainspace.tsx @@ -0,0 +1,13 @@ +import NavbarMain from "@/common/components/NavBarMain"; +import React from "react"; + +const TrainSpace = () => { + return ( +
+ +

Welcome to TrainSpace

+
+ ); + }; + + export default TrainSpace; \ No newline at end of file