ChandimaPrabath
commited on
Commit
•
bf07186
1
Parent(s):
3673e75
patch
Browse files- frontend/src/app/not-found.js +38 -34
frontend/src/app/not-found.js
CHANGED
@@ -1,60 +1,64 @@
|
|
1 |
-
import Link from
|
2 |
|
3 |
export default function NotFound() {
|
4 |
return (
|
5 |
<div style={styles.container}>
|
6 |
<div style={styles.overlay}></div>
|
7 |
<h2 style={styles.title}>Whoops!</h2>
|
8 |
-
<p style={styles.message}>
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
</div>
|
11 |
-
)
|
12 |
}
|
13 |
|
14 |
const styles = {
|
15 |
container: {
|
16 |
-
position:
|
17 |
-
display:
|
18 |
-
flexDirection:
|
19 |
-
alignItems:
|
20 |
-
justifyContent:
|
21 |
-
height:
|
22 |
-
width:
|
23 |
-
top:
|
24 |
-
textAlign:
|
25 |
-
color:
|
26 |
-
padding:
|
27 |
-
overflow:
|
28 |
},
|
29 |
overlay: {
|
30 |
-
position:
|
31 |
top: 0,
|
32 |
left: 0,
|
33 |
right: 0,
|
34 |
bottom: 0,
|
35 |
background: 'url("/404_bg.jpg") no-repeat center center/cover',
|
36 |
-
filter:
|
37 |
zIndex: -1, // Sends the overlay behind the text
|
38 |
},
|
39 |
title: {
|
40 |
-
fontSize:
|
41 |
-
fontWeight:
|
42 |
-
textShadow:
|
43 |
},
|
44 |
message: {
|
45 |
-
fontSize:
|
46 |
-
margin:
|
47 |
-
textShadow:
|
48 |
},
|
49 |
link: {
|
50 |
-
marginTop:
|
51 |
-
padding:
|
52 |
-
backgroundColor:
|
53 |
-
color:
|
54 |
-
textDecoration:
|
55 |
-
borderRadius:
|
56 |
-
border:
|
57 |
-
transition:
|
58 |
-
boxShadow:
|
59 |
},
|
60 |
-
}
|
|
|
1 |
+
import Link from "next/link";
|
2 |
|
3 |
export default function NotFound() {
|
4 |
return (
|
5 |
<div style={styles.container}>
|
6 |
<div style={styles.overlay}></div>
|
7 |
<h2 style={styles.title}>Whoops!</h2>
|
8 |
+
<p style={styles.message}>
|
9 |
+
Sorry, the page you're looking for doesn't exist.
|
10 |
+
</p>
|
11 |
+
<Link href="/" style={styles.link}>
|
12 |
+
Go Home
|
13 |
+
</Link>
|
14 |
</div>
|
15 |
+
);
|
16 |
}
|
17 |
|
18 |
const styles = {
|
19 |
container: {
|
20 |
+
position: "absolute",
|
21 |
+
display: "flex",
|
22 |
+
flexDirection: "column",
|
23 |
+
alignItems: "center",
|
24 |
+
justifyContent: "center",
|
25 |
+
height: "100dvh",
|
26 |
+
width: "100dvw",
|
27 |
+
top: "0",
|
28 |
+
textAlign: "center",
|
29 |
+
color: "white",
|
30 |
+
padding: "20px",
|
31 |
+
overflow: "hidden",
|
32 |
},
|
33 |
overlay: {
|
34 |
+
position: "absolute",
|
35 |
top: 0,
|
36 |
left: 0,
|
37 |
right: 0,
|
38 |
bottom: 0,
|
39 |
background: 'url("/404_bg.jpg") no-repeat center center/cover',
|
40 |
+
filter: "blur(5px)",
|
41 |
zIndex: -1, // Sends the overlay behind the text
|
42 |
},
|
43 |
title: {
|
44 |
+
fontSize: "3rem",
|
45 |
+
fontWeight: "bold",
|
46 |
+
textShadow: "2px 2px 4px rgba(0, 0, 0, 0.7)",
|
47 |
},
|
48 |
message: {
|
49 |
+
fontSize: "1.5rem",
|
50 |
+
margin: "20px 0",
|
51 |
+
textShadow: "1px 1px 3px rgba(0, 0, 0, 0.7)",
|
52 |
},
|
53 |
link: {
|
54 |
+
marginTop: "20px",
|
55 |
+
padding: "12px 20px",
|
56 |
+
backgroundColor: "var(--bg-primary)", // Semi-transparent red
|
57 |
+
color: "white",
|
58 |
+
textDecoration: "none",
|
59 |
+
borderRadius: "5px",
|
60 |
+
border: "2px solid var(--primary-special-color)",
|
61 |
+
transition: "background-color 0.3s ease",
|
62 |
+
boxShadow: "0 4px 8px rgba(0, 0, 0, 0.5)",
|
63 |
},
|
64 |
+
};
|