-
-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from atapas/23-create-a-better-404-page
adding 404 styling
- Loading branch information
Showing
3 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.page-404 { | ||
padding: 2rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: calc(100vh - 120px); | ||
} | ||
|
||
.page-404-image { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
.page-404-lead { | ||
margin: 0; | ||
font-family: var(--ff-accent); | ||
font-size: var(--fs-xl); | ||
text-align: center; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.page-404-lead { | ||
line-height: var(--lh-rg); | ||
margin-bottom: 1rem; | ||
} | ||
} | ||
|
||
.page-404-desc { | ||
margin-top: 0; | ||
font-size: var(--fs-md); | ||
text-align: center; | ||
} | ||
|
||
.page-404-link { | ||
position: relative; | ||
color: var(--color-neutral-80); | ||
text-decoration: none; | ||
transition: all .5s ease-in-out; | ||
font-weight: var(--fw-semibold); | ||
} | ||
.page-404-link:after { | ||
content: ""; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
bottom: 2px; | ||
height: 2px; | ||
background-color: var(--color-brand-primary); | ||
transition: all .1s ease-in-out; | ||
} | ||
|
||
.page-404-link:hover, | ||
.page-404-link:focus { | ||
color: var(--color-neutral-90); | ||
} | ||
|
||
.page-404-link:hover:after, | ||
.page-404-link:focus:after { | ||
height: 5px; | ||
bottom: 0; | ||
/* background-color: var(--color-neutral-90); */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21cdac7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-play – ./
reactplay.io
react-play-git-main-atapas.vercel.app
reactoplay.vercel.app
react-play-atapas.vercel.app
www.reactplay.io