Skip to content

Commit

Permalink
Rename PageNotFound to PageError
Browse files Browse the repository at this point in the history
  • Loading branch information
anweisen committed Oct 9, 2024
1 parent a06fec3 commit 29ed8e7
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,25 @@ const AppHooks = () => {
return <></>;
};

const PageNotFound = () => (
const PageError = () => (
<>
<NavBar sitename="404"/>
<div className={"NotFound"}>

<NavBar sitename="error"/>
<div className={"Error"}>
<span className={"Graphic"}>
<FontAwesomeIcon icon={faHeart}/>
<FontAwesomeIcon icon={faHeartCrack}/>
</span>
<div>
<h1>something went wrong..</h1>
<p>
sorry, we could not fulfill your request today<br/>
you might find the following helpful
</p>
<div className={"Buttons"}>
<a href="/"><FontAwesomeIcon icon={faBackward}/> go back</a>
<a href="https://monitor.anweisen.net"><FontAwesomeIcon icon={faTrafficLight}/> check status</a>
</div>
</div>
</div>
</>
);
Expand Down Expand Up @@ -290,7 +304,7 @@ const UserProfileComponent = () => {
</>
);
} else {
return <PageNotFound/>;
return <PageError/>;
}
};

Expand Down

0 comments on commit 29ed8e7

Please sign in to comment.