Skip to content

Commit

Permalink
Merge pull request smaranjitghose#729 from vedikaag99/master
Browse files Browse the repository at this point in the history
404 page UI
  • Loading branch information
anushbhatia authored Mar 19, 2021
2 parents 75cbf62 + c44aec6 commit 86de449
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 62 deletions.
Binary file added src/assets/images/404/404.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 2 additions & 9 deletions src/pages/404/notFound.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from "react";
import "./squiggly-animation.css";
import style from "./notFound.module.css";
import sadImg from "./../../assets/images/404/sad404.svg";
import pageNotFound from "./../../assets/images/404/404.gif";

import MetaComponent from "../../seo/MetaComponent";
import metaData from "../../seo/metaData";
Expand All @@ -25,22 +25,15 @@ function Hero() {
keywords={metaData.notFound.keywords}
/>
<div className={style.root}>
<div className={style.pageNotFound} style={{ backgroundImage: `url(${pageNotFound})` }} alt=""></div>
<div className={`test`}>
<p className={style.smaller}>Uh ooh! 404 Not Found.</p>
</div>
<div className={style.sadImg} style={{ backgroundImage: `url(${sadImg})` }} alt="">
<div className={style.fours}></div>
</div>
<div className={`test`}>
{/* <p className={style.small}>– Hi there! – </p> */}
You went too far buddy!
<p className={style.small}>There's nothing Here :(</p>
</div>
<a className={style.navlink} href="/">
<span className={style.hoverEffect}></span>
<span className={style.buttonText}>Go back</span>
</a>

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="squiggly-0">
Expand Down
76 changes: 23 additions & 53 deletions src/pages/404/notFound.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
.root {
font-family: "Amatic SC", sans-serif;
font-size: 100px;
background: #111;
color: #fff;
color: #0b3c54;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding-top: 30px;
padding-top: 0px;
}

.small {
Expand All @@ -26,86 +25,55 @@ p {
margin: 0;
}

.sadImg {
.pageNotFound {
position: relative;
height: 200px;
width: 342px;
margin-bottom: 30px;
width: 600px;
height: 500px;
background-repeat: no-repeat;
margin-bottom: 10px;
display: flex;
justify-content: center;
background-position:center;
margin-top: 30px;
}

.sadImg::after {
content: "";
display: block;
width: 125px;
border-radius: 100%;
filter: blur(2px);
background-color: #000;
height: 5px;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}

.fours {
height: 100%;
width: 200px;
position: relative;
}

.fours::before,
.fours::after {
content: "4";
position: absolute;
bottom: 0;

font-size: 14rem;
font-family: "Luckiest Guy";
line-height: 0.94;
}
.fours::before {
left: -140px;
}

.fours::after {
right: -140px;
margin-top: 0px;
}

.navlink {
color: rgb(202, 202, 202);
text-decoration: none;
font-size: 2rem;
box-shadow: 0 0 0 1.5px #fff;
box-shadow: 0 0 0 1.5px whitesmoke;
border-radius: 25px;
border:1px solid #272727;
padding: 5px 20px;
margin-top: 30px;
position: relative;
overflow: hidden;
}

.navlink:hover {
color: rgb(202, 202, 202);
background-color: #1e2836;
box-shadow: 0 0 0 1.5px #1e2836;
border: none;
}

.buttonText {
position: relative;
z-index: 1;
color: #08fdd8;
color: rebeccapurple;
}

.navlink:hover .buttonText {
color: #272727;
}

.hoverEffect {
position: absolute;
display: block;
top: 0;
left: 0;
border-radius: 0 100% 100% 0;
background-color: #fcfcfc;
background-color: #c7e2f6;
width: 500px;
height: 100%;
transform: scale(0, 1) translate(-10px, -10px);
Expand All @@ -118,10 +86,12 @@ p {
}

@media (max-width:570px){
.sadImg{
transform: scale(0.6);
.pageNotFound {
transform: scale(0.7);
}
.root{

.root {
font-size: 3.5rem;
}
}

}

0 comments on commit 86de449

Please sign in to comment.