From 72cf36e033ba794db7982befa45f035b62fa6cd2 Mon Sep 17 00:00:00 2001 From: "Alberto Duarte (PWC)" Date: Mon, 9 Oct 2023 17:32:25 +0100 Subject: Changes --- src/pages/browse/index.tsx | 94 ---------------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 src/pages/browse/index.tsx (limited to 'src/pages/browse') diff --git a/src/pages/browse/index.tsx b/src/pages/browse/index.tsx deleted file mode 100644 index 90c13c2..0000000 --- a/src/pages/browse/index.tsx +++ /dev/null @@ -1,94 +0,0 @@ -import { link } from 'fs' -import Link from 'next/link' -import { BellIcon, MagnifyingGlassIcon, PlayIcon, ArrowSmallDownIcon} from '@heroicons/react/24/solid' -import { InformationCircleIcon} from '@heroicons/react/24/outline' -import { useEffect, useState } from 'react' -import requests from '../../../services/requests' -import Image from "next/image" -import PreviewCard from '@prueba/components/PreviewCard' - -// import NetflixLogo from '../../../public/images/netflix_logo.svg' -const baseURL ='https://api.themoviedb.org/3/' -const imageURL = 'https://image.tmdb.org/t/p/original' - -export default function Home() { - const [heroMovie, setHeroMovie] = useState() - const [trendingMovies, setTrendingMovies] = useState() - useEffect(() => { - fetch(`${baseURL}${requests.fetchTopRated}`).then(res => res.json()).then((data) => { - console.log(data.results) - setHeroMovie(data.results[3]) - }) - }, []) - useEffect(() => { - fetch(`${baseURL}${requests.fetchTrending}`).then(res => res.json()).then((data) => { - setTrendingMovies(data.results) - }) - }, []) - - return ( -
-
-
- SVG image - Home - TV Shows - Movies - News & Popular - My List - Browse by Language -
-
- - Kids - -
- - - -
- -
-
-
-
- SVG image -

MOVIES

-
-
- {heroMovie?.original_title} -
-
- SVG image -

#1 in TV Shows Today

-
-
-

- {heroMovie?.overview} -

-
-
- - -
-
-
-

Popular on Netflix

-
- { - trendingMovies?.map((movie, index) => ( - - ))} -
-
-
-
-
-
-
- ) -} -- cgit v1.2.3-54-g00ecf