From a56c617499e97d6738405ec133033ada4007ebf6 Mon Sep 17 00:00:00 2001 From: Pragyan <143019512+pragyanbhatt1213@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:44:34 +0530 Subject: [PATCH] Update Emergency.jsx --- frontend/src/Pages/Emergency.jsx | 109 +++++++++++++++++++++++++++---- 1 file changed, 97 insertions(+), 12 deletions(-) diff --git a/frontend/src/Pages/Emergency.jsx b/frontend/src/Pages/Emergency.jsx index d1b8e80..954e664 100644 --- a/frontend/src/Pages/Emergency.jsx +++ b/frontend/src/Pages/Emergency.jsx @@ -1,24 +1,109 @@ import React from 'react'; import { useNavigate } from 'react-router-dom'; -import backicon from '../assets/svg/backicon.svg'; + +const EmergencyIcon = () => ( + + + +); + +const BackIcon = () => ( + + + +); + +const EmergencyServiceCard = ({ title, number, description }) => ( +
+
+ +

{title}

+
+

{number}

+

{description}

+
+); + const Emergency = () => { const navigate = useNavigate(); + const emergencyServices = [ + { + title: "Railway Protection Force", + number: "182", + description: "For security-related issues at railway stations" + }, + { + title: "Railway Helpline", + number: "139", + description: "For general railway inquiries and complaints" + }, + { + title: "Police", + number: "100", + description: "For immediate police assistance and emergencies" + }, + { + title: "Ambulance", + number: "108", + description: "For medical emergencies and immediate medical assistance" + }, + { + title: "Fire Brigade", + number: "101", + description: "For fire-related emergencies and rescue operations" + }, + { + title: "Women Helpline", + number: "1091", + description: "24/7 women's safety and assistance helpline" + } + ]; + + const HomeClick = () => { + navigate('/'); + }; -const HomeClick = () => { - navigate('/'); // Navigates to the home page - }; return ( - <> - -
-

Emergency Page

+
+ +
+

Emergency Services

+ +
+

+ In case of any emergency at the railway station, please contact the relevant service immediately. +

+ +
+ {emergencyServices.map((service, index) => ( + + ))} +
+ +
+

Safety Tips:

+
    +
  • Always be aware of your surroundings at the station.
  • +
  • Keep your belongings close and secure at all times.
  • +
  • Report any suspicious activities to the Railway Protection Force.
  • +
  • Follow all safety instructions and signage at the station.
  • +
  • In case of medical emergency, seek help from the station medical room if available.
  • +
+
+
+
- ); }; -export default Emergency; \ No newline at end of file +export default Emergency;