diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 46f4604..a3b67b8 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -4,6 +4,7 @@ import Cookies from "js-cookie"; import Navbar from "./components/Navbar"; import Statistics from "./components/Statistics.jsx"; +import Help from "./components/Help.jsx"; import Sidebar from "./components/Sidebar"; import MapComponent from "./components/MapComponent"; @@ -492,6 +493,7 @@ function App() { } /> } /> + } /> ); diff --git a/frontend/src/components/Help.jsx b/frontend/src/components/Help.jsx new file mode 100644 index 0000000..5b87987 --- /dev/null +++ b/frontend/src/components/Help.jsx @@ -0,0 +1,109 @@ +import React from "react"; + +const Help = () => { + return ( +
+
+

Help & Frequently Asked Questions

+
+
+

🔍 How do I search for a service?

+

+ Type what you want to search for in the search bar on the map screen. + As you type, the items on the map will be filtered in real-time to only display items which + match your search. +

+
+
+
+

🚂 How can I see the punctuality of a train?

+

+ Click the marker for a train on the map and the train's punctuality and average punctuality + will be listed along with other details about that train. +

+
+ +
+ +
+

🚌 How can I see the punctuality of a bus?

+

+ Unfortunately, this data is not made publicly available and so is not displayed in this application 😔. +

+
+ +
+ +
+

⭐ How do I favourite a service?

+

+ Click on a marker on the map to open its pop-up. + Click the ⭐ icon in the top right-hand corner of the pop-up to add the item to your + favourites. + This is saved to your browser and will be remembered next time you come back to the website + (so long as you don't delete your cookies!). + To remove an item from your favourites, simply click the ⭐ button again. +

+
+ +
+
+

🚋 How do I see Luas information?

+

+ Luas data is available by clicking on the marker of a Luas stop and clicking the "Load + inbound/outbound trams" button. + This will display the next few trams due into and out of that stop. +

+
+ +
+
+

🚆 How do I find incoming train information?

+

+ Click the marker of an Irish Rail Station and then click the "Load incoming trains" button. + This will display all trains due into that station in the next 90 minutes. +

+
+ +
+
+

📍 How do I show only services within a certain range?

+

+ At the bottom of the Filters panel, enter a distance in kilometers. Only services within + that + range from your current location will be shown. +

+
+ +
+
+

❗ Why isn't the range filter appearing?

+

+ The range option only appears if your browser grants the app access to your location. If it + doesn't appear, ensure location services are enabled and that you've allowed access when + prompted. +

+
+
+
+
+ ); +}; + +export default Help; \ No newline at end of file diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index ea318e3..f717994 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -63,6 +63,20 @@ const Navbar = () => { > Statistics + (e.target.style.background = "rgba(0, 0, 0, 0.1)")} + onMouseLeave={(e) => (e.target.style.background = "transparent")} + > + Help + );