Skip to content
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
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Services from './pages/Services';
import Contact from './pages/Contact';
import Blog from './pages/Blog';
import BlogPost from './components/BlogPost';
import NotFound from './pages/NotFound';

import CookieBanner from "./components/CookieBanner";
import NavigationBar from './components/NavigationBar';
Expand Down Expand Up @@ -40,6 +41,7 @@ const App: React.FC = () => {
<Route path="/privacy-policy" element={<PrivacyPolicy/>}/>
<Route path="/terms-of-service" element={<TermsService/>}/>
<Route path="/sitemap" element={<Sitemap/>}/>
<Route path="*" element={<NotFound/>}/>
</Routes>
</main>
<CookieBanner/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Footer = () => {
</Row>
<hr className="my-4 border-secondary opacity-25" />
<div className="d-flex align-items-center flex-column text-white small">
<p className="mb-0">Β© {new Date().getFullYear()} e-Stop Driving School. All rights reserved. Website Full-Stack Programmers β€” LISA GOREWIT-DECKER</p>
<p className="mb-0">Β© {new Date().getFullYear()} e-Stop Driving School. All rights reserved. Full-Stack Developer β€” Lisa Gorewit-Decker</p>
</div>
</Container>
</footer>
Expand Down
49 changes: 49 additions & 0 deletions src/pages/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React, { FC } from 'react';
import { Link } from 'react-router-dom';
import { Container, Button } from 'react-bootstrap';

import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap-icons/font/bootstrap-icons.css';

const NotFound: FC = () => {
return (
<div className="bg-white">
<div className="bg-light">
<div className="container py-5">
<h1 className="display-3 fw-bold mb-3">
<span className="text-danger text-uppercase">404</span> PAGE NOT FOUND.
</h1>
<p className="lead text-muted max-w-2xl mb-0">
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
</p>
</div>
</div>

<Container className="py-5 my-5 text-center">
<div className="py-5">
<div className="mb-4">
<i className="bi bi-exclamation-triangle text-danger" style={{ fontSize: '5rem' }}></i>
</div>
<h2 className="fw-bold mb-3 text-uppercase">{"Oops! You've drifted off course."}</h2>
<p className="text-muted mb-5 mx-auto" style={{ maxWidth: '600px' }}>
{"Don't worry, even the best drivers make a wrong turn sometimes. Let's get you back on the right road!"}
</p>
<div className="d-flex justify-content-center gap-3">
<Link to="/">
<Button variant="danger" size="lg" className="px-4 py-2 uppercase fw-bold">
Go to Homepage
</Button>
</Link>
<Link to="/contact">
<Button variant="outline-dark" size="lg" className="px-4 py-2 uppercase fw-bold">
Contact Us
</Button>
</Link>
</div>
</div>
</Container>
</div>
);
};

export default NotFound;
Loading