Skip to content

Commit 306f8ae

Browse files
authored
fix(kaliacad#229): add semi-transparent background on 404 message (kaliacad#236)
* fix(kaliacad#229): add semi-transparent background on 404 message * refactor(kaliacad#229): add tailwind css, center error message, add button background
1 parent 215fe1b commit 306f8ae

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

src/pages/NotFound.jsx

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
import { useNavigate } from 'react-router-dom';
2-
import Button from '../components/common/Button';
32

43
const NotFound = () => {
54
const navigation = useNavigate();
65
const handleClick = () => navigation('/');
76
return (
8-
<div
9-
style={{
10-
textAlign: 'center',
11-
marginTop: '50px',
12-
}}
13-
>
14-
<h1
15-
style={{
16-
fontSize: '36px',
17-
marginBottom: '20px',
18-
}}
19-
>
20-
404 - Page non trouvée
21-
</h1>
22-
<p
23-
style={{
24-
fontSize: '18px',
25-
}}
26-
>
27-
{"Désolé, la page que vous recherchez n'existe pas."}
28-
</p>
29-
<Button text={'Go to home'} event={handleClick} />
7+
<div className='text-center flex items-center justify-center p-[25vh]'>
8+
<div className='bg-white/45 p-5'>
9+
<h1 className='text-4xl mb-2.5'>404 - Page non trouvée</h1>
10+
<p className='text-lg'>{"Désolé, la page que vous recherchez n'existe pas."}</p>
11+
<button className='py-1 my-1.5 text-base bg-gray-300' onClick={handleClick}>
12+
Go to home
13+
</button>
14+
</div>
3015
</div>
3116
);
3217
};

0 commit comments

Comments
 (0)