From 2fb69675cc5432bdfdd19dab5b6656f7dd72013a Mon Sep 17 00:00:00 2001 From: PVBharadwaj Date: Thu, 10 Aug 2023 17:40:10 +0530 Subject: [PATCH] 404 error page added --- Frontend-Projects/404 error page/index.html | 23 +++++ Frontend-Projects/404 error page/styles.css | 107 ++++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 Frontend-Projects/404 error page/index.html create mode 100644 Frontend-Projects/404 error page/styles.css diff --git a/Frontend-Projects/404 error page/index.html b/Frontend-Projects/404 error page/index.html new file mode 100644 index 0000000000..0cc2d58697 --- /dev/null +++ b/Frontend-Projects/404 error page/index.html @@ -0,0 +1,23 @@ + + + + + 404 Error Page | CodingNepal + + + +
+
+

+ 404 +

+

+ Opps! Page not found +

+

+ Sorry, the page you're looking for doesn't exist. If you think something is broken, report a problem. +

+
+
+ + \ No newline at end of file diff --git a/Frontend-Projects/404 error page/styles.css b/Frontend-Projects/404 error page/styles.css new file mode 100644 index 0000000000..1c63026fbf --- /dev/null +++ b/Frontend-Projects/404 error page/styles.css @@ -0,0 +1,107 @@ +@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap'); +*{ + margin: 0; + padding: 0; + outline: none; + box-sizing: border-box; + font-family: 'Poppins', sans-serif; +} +body{ + height: 100vh; + background: -webkit-repeating-linear-gradient(-45deg, #460700, #b70000, #63008d, #ee8176, #2f393c, #ce6969, #e76458); + background-size: 400%; +} +#error-page{ + position: absolute; + top: 10%; + left: 15%; + right: 15%; + bottom: 10%; + display: flex; + align-items: center; + justify-content: center; + background: #fff; + box-shadow: 0px 5px 10px rgba(0,0,0,0.1); +} +#error-page .content{ + max-width: 600px; + text-align: center; +} +.content h2.header{ + font-size: 18vw; + line-height: 1em; + position: relative; +} +.content h2.header:after{ + position: absolute; + content: attr(data-text); + top: 0; + left: 0; + right: 0; + background: -webkit-repeating-linear-gradient(-45deg, #4b006e, #881900, #b98acc, #ee8176, #b98acc, #d70202, #9b59b6); + background-size: 400%; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + text-shadow: 1px 1px 2px rgba(255,255,255,0.25); + animation: animate 10s ease-in-out infinite; +} +@keyframes animate { + 0%{ + background-position: 0 0; + } + 25%{ + background-position: 100% 0; + } + 50%{ + background-position: 100% 100%; + } + 75%{ + background-position: 0% 100%; + } + 100%{ + background-position: 0% 0%; + } +} +.content h4{ + font-size: 1.5em; + margin-bottom: 20px; + text-transform: uppercase; + color: #000; + font-size: 2em; + max-width: 600px; + position: relative; +} +.content h4:after{ + position: absolute; + content: attr(data-text); + top: 0; + left: 0; + right: 0; + text-shadow: 1px 1px 2px rgba(255,255,255,0.4); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} +.content p{ + font-size: 1.2em; + color: #0d0d0d; +} +.content .btns{ + margin: 25px 0; + display: inline-flex; +} +.content .btns a{ + display: inline-block; + margin: 0 10px; + text-decoration: none; + border: 2px solid #69a6ce; + color: #69a6ce; + font-weight: 500; + padding: 10px 25px; + border-radius: 25px; + text-transform: uppercase; + transition: all 0.3s ease; +} +.content .btns a:hover{ + background: #69a6ce; + color: #fff; +} \ No newline at end of file