Skip to content

Commit

Permalink
Merge branch 'fix/fourhundredFour-page' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagorra committed Oct 15, 2024
2 parents 1620715 + c9dc7ee commit 97d1d64
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 75 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-months-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Add a new 404 page
224 changes: 224 additions & 0 deletions app/src/assets/content/four_hundred_four.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions app/src/assets/content/four_hundred_four_background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions app/src/views/FourHundredFour/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"namespace": "common",
"strings": {
"uhohPageNotFoundTitle":"IFRC GO - Page not found",
"uhohPageNotFound":"Page not found",
"uhohPageDescription":"The requested page does not exist or may have been removed.",
"uhohAreYouSureUrlIsCorrect":"Are you sure the URL is correct?",
"uhohGetInTouch":"Get in touch",
"uhohWithThePlatformTeam":"with the platform team.",
"uhohExploreOurHomepage":"Explore our homepage"
"uhohOops":"Oops!",
"uhohPageDescriptionOne": "This page seems to have wandered off.",
"uhohPageDescriptionTwo":"Let's go back home and try again.",
"uhohBackToHome":"Back to Home",
"fourHundredFourBackgroundImage": "Four hundred four background image",
"fourHundredFour":"Four hundred four"
}
}
61 changes: 28 additions & 33 deletions app/src/views/FourHundredFour/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { SearchLineIcon } from '@ifrc-go/icons';
import { Heading } from '@ifrc-go/ui';
import { useTranslation } from '@ifrc-go/ui/hooks';

import fourHundredFour from '#assets/content/four_hundred_four.svg';
import fourHundredFourBackgroundImage from '#assets/content/four_hundred_four_background.svg';
import Link from '#components/Link';
import Page from '#components/Page';

Expand All @@ -14,49 +15,43 @@ export function Component() {

return (
<Page
className={styles.fourHundredFour}
title={strings.uhohPageNotFoundTitle}
mainSectionContainerClassName={styles.mainSectionContainer}
mainSectionClassName={styles.main}
mainSectionContainerClassName={styles.mainContainer}
>
<div className={styles.topSection}>
<div className={styles.backgroundLayer}>
<img
className={styles.image}
src={fourHundredFourBackgroundImage}
alt={strings.fourHundredFourBackgroundImage}
/>
</div>
<div className={styles.fourHundredFourHeading}>
<img
className={styles.image}
src={fourHundredFour}
alt={strings.fourHundredFour}
/>
</div>
<div className={styles.content}>
<Heading
level={1}
className={styles.heading}
>
<div className={styles.icons}>
<SearchLineIcon className={styles.searchIcon} />
<Heading
level={2}
>
404
</Heading>
</div>
{strings.uhohPageNotFound}
{strings.uhohOops}
</Heading>
<div className={styles.description}>
{strings.uhohPageDescription}
{strings.uhohPageDescriptionOne}
</div>
</div>
<div className={styles.bottomSection}>
{strings.uhohAreYouSureUrlIsCorrect}
<div className={styles.text}>
<Link
href="mailto:im@ifrc.org"
external
>
{strings.uhohGetInTouch}
</Link>
&nbsp;
{strings.uhohWithThePlatformTeam}
<div className={styles.description}>
{strings.uhohPageDescriptionTwo}
</div>
<Link
to="home"
variant="primary"
>
{strings.uhohExploreOurHomepage}
</Link>
</div>
<Link
to="home"
variant="primary"
>
{strings.uhohBackToHome}
</Link>
</Page>
);
}
Expand Down
Loading

0 comments on commit 97d1d64

Please sign in to comment.