Skip to content

Commit

Permalink
Part of #1057
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 24, 2023
1 parent d7d63cd commit 81e7420
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
6 changes: 4 additions & 2 deletions client/src/pages/NotFound.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ export default function NotFound({config}) {
const html = DOMPurify.sanitize(I18n.t(`notFound.${errorMessage}`, {base_url: config.base_url}));
return (
<div className="mod-not-found">
<p className="not-found-msg" dangerouslySetInnerHTML={{__html: html}}/>
<NotFoundSVG/>
<div className="mod-inner-not-found">
<p className="not-found-msg" dangerouslySetInnerHTML={{__html: html}}/>
<NotFoundSVG/>
</div>
</div>
);
}
16 changes: 14 additions & 2 deletions client/src/pages/NotFound.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,27 @@
max-width: $medium;
width: 100%;
margin: 40px auto;
display: flex;
flex-direction: column;

.mod-inner-not-found {
margin: 0 auto;
display: flex;
flex-direction: column;

@media (max-width: $compact-medium) {
margin: 0 10px;
}

@media (max-width: $tablet-max) {
margin: 40px 20px;
}

svg {
margin-top: 25px;
width: 480px;
height: auto;
@media (max-width: $compact-medium) {
width: 90vw;
}
}

p.not-found-msg {
Expand Down

0 comments on commit 81e7420

Please sign in to comment.