From 4e92ac1997d9f79ae7e9b88bcaae77ad7a361876 Mon Sep 17 00:00:00 2001 From: Vansh Date: Wed, 26 Jun 2024 20:00:54 +0530 Subject: [PATCH] Fixed router url --- client/src/App.jsx | 6 +++--- client/src/components/Footer2.jsx | 30 +++++++++++------------------- client/src/components/Header.jsx | 12 ++++++------ client/src/components/Hero.jsx | 6 +++--- client/src/pages/Information.jsx | 3 ++- 5 files changed, 25 insertions(+), 32 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index 150821d..556c1ec 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; +import { BrowserRouter as Router, Routes, Route, Navigate, BrowserRouter } from 'react-router-dom'; import Layout from './Layout'; import Home from './pages/Home'; import ContactUs from './pages/ContactUs'; @@ -56,7 +56,7 @@ function App() { } return ( - + @@ -90,7 +90,7 @@ function App() { } /> - + ); } diff --git a/client/src/components/Footer2.jsx b/client/src/components/Footer2.jsx index 47baba9..2f2d217 100644 --- a/client/src/components/Footer2.jsx +++ b/client/src/components/Footer2.jsx @@ -9,36 +9,28 @@ const Footer2 = () =>{ ); diff --git a/client/src/components/Header.jsx b/client/src/components/Header.jsx index b510be7..4059bfc 100644 --- a/client/src/components/Header.jsx +++ b/client/src/components/Header.jsx @@ -246,12 +246,12 @@ const handleMenuClick = () => { className={` flex flex-wrap items-center justify-between p-2 `} >
- - - - - - + + + + + +
diff --git a/client/src/components/Hero.jsx b/client/src/components/Hero.jsx index 7105417..22638a6 100644 --- a/client/src/components/Hero.jsx +++ b/client/src/components/Hero.jsx @@ -17,9 +17,9 @@ function Hero() { calculate their environmental impact accurately with easy-to-use tools and insightful data.
-
- Track Your Carbon Footprint -
+
+ Track Your Carbon Footprint +
diff --git a/client/src/pages/Information.jsx b/client/src/pages/Information.jsx index 11decbc..1798498 100644 --- a/client/src/pages/Information.jsx +++ b/client/src/pages/Information.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { Link } from 'react-router-dom'; const Information = () => { return ( @@ -42,7 +43,7 @@ const Information = () => {

Take the first step towards a sustainable future with PrithWe. Empower your business to make informed decisions, reduce your carbon footprint, and contribute to a greener and more resilient world.

- +
);