Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions src/pages/NotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,28 @@ import React from 'react'

const NotFound = () => {
return (
<div className='not-found__message'>
{/* TODO: add css to match netflix not found page */}
<h1>LOST YOUR WAY?</h1>
<p>
Sorry, we can't find that page. You'll find lots to explore on the home
page.
</p>
<button>Netflix Home</button>
<span>
Error Code <strong>NSES-404</strong>
</span>
<span>
FROM <strong>LOST IN SPACE</strong>
</span>
<div className="not-found">
<div className="not-found--header">
<div className="not-found--logo">
<a href="/">Netflix</a></div>
</div>
<div className="not-found--content">
<h1>Lost your way?</h1>
<div className="not-found--content--body">
<p>Sorry, we can't find that page. You'll find lots to explore on the home page.</p>
<div className="not-found--content--buttons">
<a href="/">
<button className="color-primary not-found--button" type="button">
<span>Netflix Home</span></button>
</a>
</div>
<div className="not-found--content--errorCode">
<span id="" data-uia="">Error Code <strong>NSES-404</strong></span>
</div>
</div>
</div>
<span id="" className="not-found--imageSource" >FROM <strong>LOST IN SPACE</strong></span>
</div>
)
}

Expand Down
229 changes: 224 additions & 5 deletions src/static/sass/components/_notfound.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,228 @@
.not-found__message {
.not-found {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: rgba(0, 0, 0, .18);
bottom: 0;
color: #fff;
display: flex;
flex-direction: column;
font-family: Netflix Sans, Helvetica Neue, Segoe UI, Roboto, Ubuntu, sans-serif;
font-size: 10px;
left: 0;
line-height: 1.2;
overflow: hidden;
padding-top: 68px;
position: fixed;
right: 0;
top: 0;
z-index: 1000
}

.not-found:after,
.not-found:before {
content: "";
display: flex;
flex: 1;
max-height: 25%
}

.not-found--header {
background-color: #000;
background-color: rgba(0, 0, 0, .97);
height: 68px;
left: 0;
padding: 0 45px;
position: fixed;
right: 0;
top: 0;
z-index: 20
}

.not-found--logo {
left: 40px;
position: absolute;
top: 50%;
left: 50%;
top: 22px
}

.not-found__message > h1 {
color: #fff;
.not-found--logo a {
background-image: url(https://assets.nflxext.com/en_us/home/logo_v7.png);
background-repeat: no-repeat;
background-size: contain;
display: block;
font-size: 0;
height: 25px;
line-height: 0;
overflow: hidden;
text-indent: -9999px;
width: 93px
}

.not-found--logo a:focus {
outline: none
}

.not-found--button {
font-weight: 600;
font-size: 18px;
padding: 1rem 2.5rem;
border-radius: 4px;
}

.not-found--content {
display: flex;
flex: 2 0;
flex-direction: column;
margin: 0 1em;
position: relative;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none
}

.not-found--content h1 {
font-size: 6em;
font-weight: 500;
margin-bottom: 2vw;
z-index: 1
}

.not-found--content h1,
.not-found--content p {
color: inherit;
margin-top: 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, .57)
}

.not-found--content p {
font-size: 2.2em;
font-weight: 300
}

.not-found--content--body {
margin: 0 auto;
z-index: 1;
}

.not-found--content--buttons {
display: flex;
justify-content: center
}

.not-found--content--buttons>:not(:first-child) {
margin-left: 1em
}

.not-found--content--buttons>:not(:first-child):dir(rtl) {
margin-left: 0;
margin-right: 1em
}

.not-found--content--buttons>a {
text-decoration: none
}

.not-found--content--buttons>a:focus {
outline: none
}

.not-found--content--buttons button.medium {
padding: .6em
}

.not-found--content--buttons button.medium.hasLabel {
border-radius: .3em;
padding-left: 1.8em;
padding-right: 1.8em
}

.not-found--content--buttons button.medium>span {
font-size: 1.6em;
line-height: 2.4em
}

.not-found--content--errorCode {
align-items: flex-end;
display: flex;
flex: 1;
justify-content: center;
margin-top: 2em
}

.not-found--content--errorCode span {
border-left: 2px solid #e50914;
font-size: 2.4em;
font-weight: 100;
letter-spacing: .1em;
line-height: 2.2em;
padding: 0 1vw
}

.not-found--content--errorCode span:dir(rtl) {
border-left: none;
border-right: 2px solid #e50914
}

.not-found--content:before {
background: radial-gradient(ellipse at center, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .1) 55%, transparent 70%);
bottom: -10vw;
content: "";
left: 10vw;
position: absolute;
right: 10vw;
top: -10vw;
z-index: 0
}

.not-found--content:after {
background-attachment: fixed;
background-position: 50%;
background-repeat: no-repeat;
background-size: cover;
bottom: 0;
content: "";
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: -1
}

.not-found.nfse .not-found--content:after {
background-image: url(https://assets.nflxext.com/ffe/siteui/pages/errors/bg-nailed-it.png)
}

.not-found .not-found--content:after {
background-image: url(https://assets.nflxext.com/ffe/siteui/pages/errors/bg-lost-in-space.png)
}

.not-found.player .not-found--content:after {
background-image: url(https://assets.nflxext.com/ffe/siteui/pages/errors/bg-mindhunter-v2.png)
}

.not-found--imageSource {
bottom: 0;
color: hsla(0, 0%, 90%, .57);
font-size: 1.4em;
font-weight: 100;
letter-spacing: .1em;
line-height: 1.5vw;
margin: 2.5vw 4.8vw;
position: fixed;
right: 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, .57)
}

.not-found--imageSource>strong {
color: hsla(0, 0%, 90%, .77);
letter-spacing: normal;
margin-left: .2em
}

.not-found--requestInfo {
bottom: 0;
color: transparent;
left: 0;
margin: 2.5vw 4.8vw;
position: fixed
}