Skip to content

Commit

Permalink
Merge pull request #226 from Jagpreet153/main
Browse files Browse the repository at this point in the history
added error 404 page
  • Loading branch information
SUGAM-ARORA authored Jun 3, 2024
2 parents 3e315ea + 73e457c commit 84b21cf
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import ContactUs from "./Components/footer_section/ContactUs/contact_us";
import Pricing from "./Components/footer_section/Pricing/pricing";
import MyProjects from "./Components/menu_section/my_projects/MyProjects";
import NewProject from "./Components/menu_section/new_project/NewProject";

import Error from "./Components/404_page/Error";
function App() {
return (
<Router>
<div className="App">
<div className="App-content"></div>
<Routes>
<Route path="*" element={<Error />} />
<Route path="/" element={<Container />} />
<Route path="/settings" element={<Settings />} />
<Route path="/about" element={<About_us />} />
Expand Down
1 change: 1 addition & 0 deletions src/Components/404_page/404.json

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/Components/404_page/Error.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.prel{
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.error{
padding: 0;
}

a:link{
text-decoration: none;
}
23 changes: 23 additions & 0 deletions src/Components/404_page/Error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import pre from '../404_page/404.json'
import Lottie from 'lottie-react';
import Container from '../Container'
import './Error.css'
function Error() {
const home=()=>{
return (
<div> <Container/></div>
)
}
return (
<div>
<div className='error'>
<div> <Lottie animationData={pre}/> </div>
<div className='prel'>
<a href='/'> <button className='homepage'>Return To Home Page</button> </a>
</div>
</div>
</div>
)
}
export default Error;

0 comments on commit 84b21cf

Please sign in to comment.