import { link } from 'fs' import Link from 'next/link' import { BellIcon, MagnifyingGlassIcon, PlayIcon, InformationCircleIcon, ArrowSmallDownIcon} from '@heroicons/react/24/solid' import { useEffect, useState } from 'react' import requests from '../../../services/requests' // 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() useEffect(() => { fetch(`${baseURL}${requests.fetchTopRated}`).then(res => res.json()).then((data) => { console.log('MOVIES', data.results[0]) setHeroMovie(data.results[0]) }) }, []) 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

{ MOVIES.map((movie, index) => (
))}
) } const MOVIES = [ { link:'../images/Card.png', }, { link:'../images/Card.png', }, { link:'../images/Card.png', }, { link:'../images/Card.png', }, { link:'../images/Card.png', }, { link:'../images/Card.png', } ]