Skip to content

Commit

Permalink
Merge pull request #456 from RamakrushnaBiswal/ram-dev
Browse files Browse the repository at this point in the history
feat: 404 notfound page added with config
  • Loading branch information
Priyaaa1 authored Jun 14, 2024
2 parents acaa51f + c9de07a commit 7b7cbcf
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
Binary file added public/404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import InvestorManagementPage from "./Pages/InvestorManagementPage";
import FinancialServices from './Pages/FinancialServices'
import FullServiceFund from './Pages/FullServiceFund';
import { PiSelectionInverseThin } from "react-icons/pi";
import Notfound from './Components/Notfound/Notfound';

export const ThemeContext = createContext();

Expand Down Expand Up @@ -62,7 +63,7 @@ const App = () => {

<div className="main-div">

<Navbar />
<Navbar/>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/login" element={<Login />} />
Expand All @@ -78,6 +79,7 @@ const App = () => {
<Route path='/investormanagementpage' element={<InvestorManagementPage/>}/>
<Route path='/financialservicesPage' element = {<FinancialServices/>}/>
<Route path="/fullservicefund" element={<FullServiceFund/>}/>
<Route path="*" element={<Notfound/>}/>
</Routes>
<ChatAssistant/>
<GoToTop/>
Expand Down
23 changes: 23 additions & 0 deletions src/Components/Notfound/Notfound.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.notfound{
width: 50%;
height: 100vh;
margin-top: 70px;
}
.notfound-container{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100.5vh;
}
.btnx{
position: absolute;
bottom: 40px;
background-color: #212EA0;
color: #fff;
border-radius: 5px;
padding: 10px 20px;
font-size: 20px;
font-weight: 600;
cursor: pointer;
}
10 changes: 10 additions & 0 deletions src/Components/Notfound/Notfound.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "./Notfound.css";
import { Link } from "react-router-dom";
export default function Notfound(){
return(
<div className="notfound-container">
<img src="./404.png" alt="Not found pic" className="notfound" />
<Link to={"/"} className="btnx" style={{textDecoration: "none"}}>Go to Home</Link>
</div>
)
}

0 comments on commit 7b7cbcf

Please sign in to comment.