Skip to content

Commit

Permalink
Added Neon Glow Error Page (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
avnisinngh authored Jan 31, 2025
1 parent e74e4b5 commit 61c2230
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Components/Error-Pages/Neon-Glow-Error-Page/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=">
<link rel="stylesheet" href="style.css">
<title>Neon Glow Error Page</title>
</head>
<body>
<div>
<p id="error">E <span>r</span>ror</p>
<p id="code">4<span>0</span><span>4</span></p>
</div>
</body>
</html>
142 changes: 142 additions & 0 deletions Components/Error-Pages/Neon-Glow-Error-Page/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

body {
background: radial-gradient(circle, #0D0015, #2B002C, #003660, #1A1A1A);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

div {
padding: 20px;
font-size: 10vw;
font-family: 'Monoton';
text-align: center;
text-transform: uppercase;
text-shadow: 0 0 80px red, 0 0 30px firebrick, 0 0 6px darkred;
color: rgb(49, 17, 17);
}

div p {
margin: 5px;
}

#error:hover {
text-shadow: 0 0 120px #FFFF00, 0 0 80px #00FF00, 0 0 10px #00FFFF;
}

#code:hover {
text-shadow: 0 0 150px #FF00FF, 0 0 60px #8A2BE2, 0 0 20px #FF4500;
}

#error {
color: #00FFFF; /* Neon Cyan */
text-shadow: 0 0 80px #00FFFF, 0 0 40px #8A2BE2, 0 0 10px #FF00FF;
}

#code {
color: #FF6347; /* Tomato Red */
text-shadow: 0 0 100px #FF4500, 0 0 50px #FF6347, 0 0 20px #FF7F50;
}

#error span,
#code span {
animation: glow 3s ease-in-out infinite alternate;
}

#code span:nth-of-type(2) {
animation: lower 9s linear infinite;
}

#code span:nth-of-type(1) {
text-shadow: none;
opacity: .4;
}

@keyframes upper {
0%,
19.999%,
22%,
62.999%,
64%,
64.999%,
70%,
100% {
opacity: .99;
text-shadow: 0 0 80px #ffffff, 0 0 30px #008000, 0 0 6px #0000ff;
}

20%,
21.999%,
63%,
63.999%,
65%,
69.999% {
opacity: 0.4;
text-shadow: none;
}
}

@keyframes lower {
0%,
12%,
18.999%,
23%,
31.999%,
37%,
44.999%,
46%,
49.999%,
51%,
58.999%,
61%,
68.999%,
96%,
100% {
opacity: 0.99;
text-shadow: 0 0 80px red, 0 0 30px firebrick, 0 0 6px darkred;
}

19%,
22.99%,
32%,
36.999%,
45%,
45.666%,
50%,
50.999%,
59%,
60.999%,
69%,
70.999%,
86%,
95.999% {
opacity: 0.4;
text-shadow: none;
}
}

@keyframes glow {
0% {
text-shadow: 0 0 10px #FFFF00, 0 0 20px #FF4500;
}

100% {
text-shadow: 0 0 80px #FF00FF, 0 0 40px #8A2BE2;
}
}

/* Media queries for different screen sizes */
@media (max-width: 600px) {
div {
font-size: 15vw;
}
}

@media (min-width: 601px) and (max-width: 1200px) {
div {
font-size: 12vw;
}
}
5 changes: 5 additions & 0 deletions assets/json_files/error-pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
"title": "404 Error Page",
"previewLink": "../../Components/Error-Pages/404-Error-Page/index.html",
"sourceLink": "https://github.com/Rakesh9100/Beautiify/tree/main/Components/Error-Pages/404-Error-Page"
},
{
"title": "Neon Glow Error Page",
"previewLink": "../../Components/Error-Pages/Neon-Glow-Error-Page/index.html",
"sourceLink": "https://github.com/Rakesh9100/Beautiify/tree/main/Components/Error-Pages/Neon-Glow-Error-Page"
}
]

0 comments on commit 61c2230

Please sign in to comment.