Skip to content

Commit 04e9802

Browse files
fix: changed navbar item
1 parent 58f34db commit 04e9802

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

src/App.jsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,18 @@ import { ToastContainer } from "react-toastify";
33
import routes from "@/routes/index";
44
import Navbar from "@/components/Navbar/index";
55

6-
7-
86
const navLinks = [
9-
{name: "About Us", path: "/about-us"},
10-
{name: "Our Team", path: "/teams"},
11-
{name: "Gallery", path: "/gallery"},
12-
{name: "Contact", path: "/contact"},
13-
{name: "Projects", path: "/projects"}
14-
7+
{ name: "About Us", path: "/about-us" },
8+
{ name: "Our Team", path: "/teams" },
9+
{ name: "Gallery", path: "/gallery" },
10+
{ name: "Contact", path: "/contact" },
11+
{ name: "Projects", path: "/projects" },
1512
];
1613

1714
function App() {
1815
return (
1916
<Router>
20-
<Navbar links={navLinks}/>
17+
<Navbar links={navLinks} />
2118

2219
<ToastContainer />
2320
<Routes>

src/components/Navbar/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ function Navbar({ links }) {
4444
>
4545
<Link to={link.path}>{link.name}</Link>
4646
<span
47-
class={`block group-hover:max-w-full transition-all duration-500 h-0.5 bg-primary rounded ${
47+
className={`block group-hover:max-w-full transition-all duration-500 h-0.5 bg-primary rounded ${
4848
location.pathname
4949
.toLowerCase()
5050
.includes(link.path.toLowerCase())
5151
? "w-full"
5252
: "max-w-0"
5353
}`}
54-
></span>
54+
/>
5555
</li>
5656
))}
5757
</ul>

src/pages/PageNotFound/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { Link } from "react-router-dom";
21
import error404Image from "@/assets/images/error404.svg";
32

4-
function PageNotFound({ text, link }) {
3+
function PageNotFound() {
54
return (
65
<div className="w-full h-[calc(100vh-4.6rem)] flex items-center justify-center text-center">
76
<div className="text-center">
87
<img
98
className="block m-auto xs:w-[90vw] sm:w-[70vw] md:w-[45vw]"
109
src={error404Image}
10+
alt="Error 404"
1111
/>
1212
<p className="text-white xs:m-6 xs:text-lg lg:text-xl">
1313
The page you are looking for does not exist.

src/routes/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Home from "@/pages/Home/index";
22
import Teams from "@/pages/Teams/index";
33
import About from "@/pages/About/index";
44
import Gallery from "@/pages/Gallery/Gallery";
5+
import PageNotFound from "../pages/PageNotFound";
56

67
const routes = [
78
{

0 commit comments

Comments
 (0)