File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed
Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,18 @@ import { ToastContainer } from "react-toastify";
33import routes from "@/routes/index" ;
44import Navbar from "@/components/Navbar/index" ;
55
6-
7-
86const 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
1714function App ( ) {
1815 return (
1916 < Router >
20- < Navbar links = { navLinks } />
17+ < Navbar links = { navLinks } />
2118
2219 < ToastContainer />
2320 < Routes >
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 1- import { Link } from "react-router-dom" ;
21import 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.
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Home from "@/pages/Home/index";
22import Teams from "@/pages/Teams/index" ;
33import About from "@/pages/About/index" ;
44import Gallery from "@/pages/Gallery/Gallery" ;
5+ import PageNotFound from "../pages/PageNotFound" ;
56
67const routes = [
78 {
You can’t perform that action at this time.
0 commit comments