Skip to content

Commit

Permalink
Complete 404 page (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokartur authored May 14, 2024
2 parents e42ee1f + e51fb05 commit 7d2c5c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Binary file added website/src/assets/images/404_photo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions website/src/pages/notFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { Overlay } from '@/components/overlay/overlay'
import { SEO } from '@/components/seo'
import { useScrollTop } from '@/hooks/useScrollTop'
import { Link } from 'react-router-dom'
import photo404 from '@/assets/images/404_photo.jpg'
import { Image } from '@/components/image'

const metaData = {
title: 'Not Found',
Expand All @@ -28,6 +30,7 @@ export default function NotFound() {
<Link to={'/'}>
Back to home page
</Link>
<Image source={photo404}/>
</div>
</Container>
</AnimateWrapper>
Expand Down
12 changes: 8 additions & 4 deletions website/src/styles/notFound.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@

transition: background-color .2s;

img {
width: 100%;
max-width: 400px;
}
&:is(:hover, :focus) {
background-color: $neutral-100;
}
}

img {
margin: 24px 0 0 0;
width: 100%;
max-width: 256px;
object-fit: cover;
border-radius: 16px;
box-shadow: $drop-shadow-medium;
}
}

0 comments on commit 7d2c5c3

Please sign in to comment.