feat(ui): add movie/series genre list pages (#1194)

This commit is contained in:
TheCatLady
2021-03-15 23:37:35 -04:00
committed by GitHub
parent b767a58b01
commit 6f1a31de47
17 changed files with 199 additions and 25 deletions

View File

@@ -6,6 +6,7 @@ import Slider from '../../Slider';
import { GenreSliderItem } from '../../../../server/interfaces/api/discoverInterfaces';
import { LanguageContext } from '../../../context/LanguageContext';
import { genreColorMap } from '../constants';
import Link from 'next/link';
const messages = defineMessages({
moviegenres: 'Movie Genres',
@@ -25,9 +26,25 @@ const MovieGenreSlider: React.FC = () => {
return (
<>
<div className="slider-header">
<div className="slider-title">
<span>{intl.formatMessage(messages.moviegenres)}</span>
</div>
<Link href="/discover/movies/genres">
<a className="slider-title">
<span>{intl.formatMessage(messages.moviegenres)}</span>
<svg
className="w-6 h-6 ml-2"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</svg>
</a>
</Link>
</div>
<Slider
sliderKey="movie-genres"