From bc73ca11580fec8e611a3dcc3d260326dfd98d35 Mon Sep 17 00:00:00 2001 From: Raja Abrar Khan Date: Wed, 9 Oct 2024 01:29:02 +0530 Subject: [PATCH] In this Pr i made all the routes necessary from the landing page , and i added some codes in the new pages and make half of the buttons navigate to their respective pages. --- frontend/src/App.jsx | 15 ++++++ frontend/src/Pages/3Dmaps.jsx | 11 ++++ frontend/src/Pages/Herosection.jsx | 84 ++++++++++++++++++----------- frontend/src/Pages/booking.jsx | 11 ++++ frontend/src/Pages/contributor.jsx | 4 +- frontend/src/Pages/navigation.jsx | 6 +-- frontend/src/Pages/notification.jsx | 11 ++++ frontend/src/Pages/schedule.jsx | 11 ++++ 8 files changed, 116 insertions(+), 37 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 4438f96..b8e7d30 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -6,7 +6,14 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import chatbotsvg from './assets/svg/chatbot.svg'; import { useNavigate, Outlet } from 'react-router-dom'; import RailwayStations from './Pages/stations'; +import NavigationPage from './Pages/navigation'; import './App.css' +import BookingPage from './Pages/booking'; +import DMapPage from './Pages/3Dmaps'; +import SchedulePage from './Pages/schedule'; +import NotificationPage from './Pages/notification'; +import Contributor from './Pages/contributor'; + function App() { @@ -18,6 +25,14 @@ function App() { } /> } /> } /> + } /> + } /> + } /> + } /> + } /> + } /> + + {/* This route is just for testing protected routes it can be removed later when there is a route other than login or signup */} }> diff --git a/frontend/src/Pages/3Dmaps.jsx b/frontend/src/Pages/3Dmaps.jsx index e69de29..149ff8d 100644 --- a/frontend/src/Pages/3Dmaps.jsx +++ b/frontend/src/Pages/3Dmaps.jsx @@ -0,0 +1,11 @@ +import React from 'react' + +const DMapPage = () => { + return ( +
Making in Progress
+ ) +} + +export default DMapPage; + + diff --git a/frontend/src/Pages/Herosection.jsx b/frontend/src/Pages/Herosection.jsx index a681926..8508597 100644 --- a/frontend/src/Pages/Herosection.jsx +++ b/frontend/src/Pages/Herosection.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import './Herosection.css' ; +import './Herosection.css'; import logo from '../assets/stationsaarthi.svg'; import navigationsvg from '../assets/svg/navigation.svg'; // import navigation from './navigation'; @@ -26,42 +26,62 @@ const Herosection = () => { const StationCLick = () => { navigate('/Stations'); // Navigates to the login page }; - + const NavigationCLick = () => { + navigate('/Navigation'); // Navigates to the login page + }; + const BookingCLick = () => { + navigate('/Booking'); // Navigates to the login page + }; + return ( <> - -
-
-
-

Namaste !! Yatree

-
- -
- -

Station Saarthi : Your Platform Guide

+ +
+
- {/* whitishbg +

Namaste !! Yatree

+
+ +
+ +

Station Saarthi : Your Platform Guide

+
+ {/* whitishbg */} -
-

-
- - -
+
+

+
+ + +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ +
+

Contributors

+ -
-
-
-

-
-
-
-
- -
-

Contributors

- - ); }; diff --git a/frontend/src/Pages/booking.jsx b/frontend/src/Pages/booking.jsx index e69de29..c6ed904 100644 --- a/frontend/src/Pages/booking.jsx +++ b/frontend/src/Pages/booking.jsx @@ -0,0 +1,11 @@ +import React from 'react' + +const BookingPage = () => { + return ( +
Website is in Progress
+ ) +} + +export default BookingPage; + + diff --git a/frontend/src/Pages/contributor.jsx b/frontend/src/Pages/contributor.jsx index bdfdd98..5c9a557 100644 --- a/frontend/src/Pages/contributor.jsx +++ b/frontend/src/Pages/contributor.jsx @@ -1,10 +1,10 @@ import React from 'react' -const contributor = () => { +const Contributor = () => { return (
contributor
) } -export default contributor \ No newline at end of file +export default Contributor; \ No newline at end of file diff --git a/frontend/src/Pages/navigation.jsx b/frontend/src/Pages/navigation.jsx index 91b4b70..5f0d9a5 100644 --- a/frontend/src/Pages/navigation.jsx +++ b/frontend/src/Pages/navigation.jsx @@ -1,11 +1,11 @@ import React from 'react' -const navigation = () => { +const NavigationPage = () => { return ( -
navigation
+
Making in Progress
) } -export default navigation +export default NavigationPage; diff --git a/frontend/src/Pages/notification.jsx b/frontend/src/Pages/notification.jsx index e69de29..a0bca0a 100644 --- a/frontend/src/Pages/notification.jsx +++ b/frontend/src/Pages/notification.jsx @@ -0,0 +1,11 @@ +import React from 'react' + +const NotificationPage = () => { + return ( +
Making in Progress
+ ) +} + +export default NotificationPage; + + diff --git a/frontend/src/Pages/schedule.jsx b/frontend/src/Pages/schedule.jsx index e69de29..ca0e6fe 100644 --- a/frontend/src/Pages/schedule.jsx +++ b/frontend/src/Pages/schedule.jsx @@ -0,0 +1,11 @@ +import React from 'react' + +const SchedulePage = () => { + return ( +
Making in Progress
+ ) +} + +export default SchedulePage; + +