From fd512c166e2f256aaa314777379dc6dbf2950aad Mon Sep 17 00:00:00 2001 From: Tanisha Garg <157527085+taneeshaa15@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:22:04 +0530 Subject: [PATCH 1/3] Error 404 UI change and timer addition. --- 404.html | 161 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 122 insertions(+), 39 deletions(-) diff --git a/404.html b/404.html index a45099f..cb7c977 100644 --- a/404.html +++ b/404.html @@ -10,27 +10,70 @@ * { margin: 0; padding: 0; - font-family: Arial, Helvetica, sans-serif; + box-sizing: border-box; + font-family: 'Arial', Helvetica, sans-serif; } - .container { - width: 100vw; + body { + background: linear-gradient(to bottom, #1e3c72, #2a5298); + color: #333; height: 100vh; display: flex; - flex-direction: column; justify-content: center; align-items: center; - background-color: #f0f0f0; + overflow: hidden; + position: relative; + } + + .stars { + width: 100%; + height: 100%; + background: transparent; + position: absolute; + top: 0; + left: 0; + z-index: 1; + overflow: hidden; + } + + .star { + position: absolute; + width: 2px; + height: 2px; + background: white; + border-radius: 50%; + animation: twinkle 2s infinite alternate; + } + + @keyframes twinkle { + from { + opacity: 0.2; + } + to { + opacity: 1; + } + } + + .container { + text-align: center; + z-index: 2; + color: white; } .text1 { - background-image: url(./assets/images/Stars.jpg); - background-clip: text; - color: transparent; font-size: 225px; - background-size: cover; font-weight: 900; margin-bottom: 50px; + animation: glow 1.5s ease-in-out infinite alternate; + } + + @keyframes glow { + from { + text-shadow: 0 0 10px #fff, 0 0 20px #00c6ff, 0 0 30px #00c6ff, 0 0 40px #00c6ff, 0 0 50px #00c6ff, 0 0 60px #00c6ff, 0 0 70px #00c6ff; + } + to { + text-shadow: 0 0 20px #fff, 0 0 30px #00c6ff, 0 0 40px #00c6ff, 0 0 50px #00c6ff, 0 0 60px #00c6ff, 0 0 70px #00c6ff, 0 0 80px #00c6ff; + } } .text2 { @@ -38,6 +81,7 @@ font-weight: 800; font-size: 30px; margin-bottom: 40px; + animation: fadeIn 2s ease-in-out; } .text3 { @@ -45,6 +89,7 @@ width: 700px; text-align: center; margin-bottom: 30px; + animation: fadeIn 2s ease-in-out; } a { @@ -59,77 +104,115 @@ justify-content: center; align-items: center; border-radius: 50px; + transition: background-color 0.3s ease; + animation: slideUp 2s ease-in-out; } - .container a:hover{ + a:hover { background-color: rgb(0, 86, 204); } - @media only screen and (max-width:705px){ - .container{ - width: 100vw; - height: 100vh; - } - .text1{ + @media only screen and (max-width: 705px) { + .text1 { font-size: 175px; } - .text2{ + + .text2 { font-size: 20px; } - .text3{ + + .text3 { font-size: 16px; width: 500px; } } - @media only screen and (max-width:565px){ - .container{ - width: 100vw; - height: 100vh; - } - .text1{ + + @media only screen and (max-width: 565px) { + .text1 { font-size: 125px; } - .text2{ + + .text2 { font-size: 18px; } - .text3{ + + .text3 { font-size: 16px; width: 400px; } - a{ + + a { width: 155px; font-size: 12px; height: 30px; } } - @media only screen and (max-width:425px){ - .container{ - width: 100vw; - height: 100vh; - } - .text1{ + + @media only screen and (max-width: 425px) { + .text1 { font-size: 100px; } - .text2{ + + .text2 { font-size: 15px; } - .text3{ + + .text3 { font-size: 12px; width: 300px; } } - + + @keyframes fadeIn { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } + } + + @keyframes slideUp { + 0% { + transform: translateY(50px); + opacity: 0; + } + + 100% { + transform: translateY(0); + opacity: 1; + } + } +
+