Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
tatut07 committed Dec 1, 2022
1 parent 9063494 commit 844076b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import EditListing from "./pages/Edit-Listing";
import ListingDetails from "./pages/Listing-Details";
import PrivateRouteHost from "./components/PrivateRouteHost";
import PrivateRouteUser from "./components/PrivateRouteUser";

import ErrorPage from "./components/ErrorPage";

function App() {
return (
Expand Down Expand Up @@ -47,7 +47,7 @@ function App() {
{/* <Route path="/listings-search" element={<ListingsSearch />} /> */}
<Route path="/edit-listing/:id" element={<EditListing />} />
<Route path="/listing-details" element={<ListingDetails />} />
{/* <Route path="/messages" element={<Messages />} /> */}
<Route path="/error-page" element={<ErrorPage />} />
</Routes>
</div>
);
Expand Down
Binary file added src/images/errorImg.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: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,7 @@ div.transbox,
.firstinfo {
margin-bottom: 20px;
}

.listingInUse {
color: #f66465;
}
21 changes: 21 additions & 0 deletions src/pages/ErrorPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import NavBar from "../components/NavBar";
import Footer from "../components/Footer";
import errorImg from "../images/errorImg.png";

function ErrorPage() {
return (
<div className="container">
<div className="Home">
<NavBar />
<div>
<Link to="/">
<img src={errorImg} alt="errorImage" />
</Link>
</div>
<Footer />
</div>
</div>
);
}

export default ErrorPage;

0 comments on commit 844076b

Please # to comment.