diff --git a/frontend/src/Pages/stations.jsx b/frontend/src/Pages/stations.jsx index ae80d80..91e510c 100644 --- a/frontend/src/Pages/stations.jsx +++ b/frontend/src/Pages/stations.jsx @@ -1,9 +1,17 @@ import React, { useState } from "react"; import { FaTrain } from "react-icons/fa"; // Using FontAwesome train icon import { AiFillStar, AiOutlineStar } from "react-icons/ai"; // Star icons for favorites +import { useNavigate } from "react-router-dom"; +import backicon from "../assets/svg/backicon.svg"; const RailwayStations = () => { // Comprehensive list of railway stations with states + const navigate = useNavigate(); + + const HomeClick = () => { + navigate("/"); // Navigates to the home page + }; + const stations = [ { name: "Agartala Railway Station", state: "Tripura" }, { name: "Agra Cantonment", state: "Uttar Pradesh" }, @@ -197,8 +205,19 @@ const RailwayStations = () => { }); return ( +
{/* Header Section */} +
+ +

Railway Stations

@@ -302,4 +321,4 @@ const RailwayStations = () => { ); }; -export default RailwayStations; +export default RailwayStations; \ No newline at end of file