ChandimaPrabath commited on
Commit
bf07186
1 Parent(s): 3673e75
Files changed (1) hide show
  1. frontend/src/app/not-found.js +38 -34
frontend/src/app/not-found.js CHANGED
@@ -1,60 +1,64 @@
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}>Sorry, the page you're looking for doesn't exist.</p>
9
- <Link href="/" style={styles.link}>Go Home</Link>
 
 
 
 
10
  </div>
11
- )
12
  }
13
 
14
  const styles = {
15
  container: {
16
- position: 'absolute',
17
- display: 'flex',
18
- flexDirection: 'column',
19
- alignItems: 'center',
20
- justifyContent: 'center',
21
- height: '100dvh',
22
- width:'100dvw',
23
- top:'0',
24
- textAlign: 'center',
25
- color: 'white',
26
- padding: '20px',
27
- overflow: 'hidden',
28
  },
29
  overlay: {
30
- position: 'absolute',
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: 'blur(5px)',
37
  zIndex: -1, // Sends the overlay behind the text
38
  },
39
  title: {
40
- fontSize: '3rem',
41
- fontWeight: 'bold',
42
- textShadow: '2px 2px 4px rgba(0, 0, 0, 0.7)',
43
  },
44
  message: {
45
- fontSize: '1.5rem',
46
- margin: '20px 0',
47
- textShadow: '1px 1px 3px rgba(0, 0, 0, 0.7)',
48
  },
49
  link: {
50
- marginTop: '20px',
51
- padding: '12px 20px',
52
- backgroundColor: 'var(--bg-primary)', // Semi-transparent red
53
- color: 'white',
54
- textDecoration: 'none',
55
- borderRadius: '5px',
56
- border: '2px solid var(--primary-special-color)',
57
- transition: 'background-color 0.3s ease',
58
- boxShadow: '0 4px 8px rgba(0, 0, 0, 0.5)',
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
+ };