Skip to content

Commit

Permalink
Merge pull request #222 from atapas/126-feature-request-design-the-pl…
Browse files Browse the repository at this point in the history
…ay-not-found-page

styling play not found
  • Loading branch information
atapas authored May 24, 2022
2 parents f52be30 + eb3dd8a commit fe4f0b1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/common/playlists/PlayList.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useSearchFilter } from "common/search/hooks/useSearchFilter";
import PlayThumbnail from "./PlayThumbnail";
import { ReactComponent as ImageOops } from "images/img-oops.svg";
import { Link } from 'react-router-dom';

import "./playlist.css";

Expand All @@ -8,7 +10,11 @@ const PlayList = () => {
if (plays.length === 0) {
return (
<div className="play-not-found">
<h2>Play Not Found</h2>
<ImageOops className="play-not-found-image" />
<p className='page-404-lead'>Play not found</p>
<p className='page-404-desc'>
Please change your search or adjust filters to find plays.
</p>
</div>
);
}
Expand Down
21 changes: 21 additions & 0 deletions src/common/playlists/playlist.css
Original file line number Diff line number Diff line change
Expand Up @@ -614,4 +614,25 @@
font-weight: var(--fw-bold);
color: var(--color-neutral-80);

}
/* Play not found */
.play-not-found {
min-height: calc(100vh - 100px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 1rem;
}

.play-not-found .play-not-found-image {
max-width: 100%;
height: auto;
}

@media screen and (max-width:768px) {
.play-not-found .play-not-found-image {
max-width: 50%;
margin-bottom: 2rem;
}
}
1 change: 1 addition & 0 deletions src/images/img-oops.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit fe4f0b1

@vercel
Copy link

@vercel vercel bot commented on fe4f0b1 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.