Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added error 404 page #226

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading