Code Monkey home page Code Monkey logo

react-movie's Introduction

react-movie

Responsive React Movies App With API

Video tutorial

https://youtu.be/ntYXj9W1Ez8

Resource

Google font: https://fonts.google.com/

Boxicons: https://boxicons.com/

Images: https://unsplash.com/

API: https://www.themoviedb.org/

Preview

"Responsive React Movies App With API"

"Responsive React Movies App With API"

"Responsive React Movies App With API"

"Responsive React Movies App With API"

react-movie's People

Contributors

trananhtuat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-movie's Issues

Photos are not Showing,

Photos are not Showing on HeroSlider , api is correct i'm getting them in console but they aren't showing on app.

Screenshot (61)
Console Details ๐Ÿ‘‡
Screenshot (62)

HeroSlider.js Code ๐Ÿ‘‡

`const HeroSlide = () => {
SwiperCore.use([Autoplay]);

const [movieItems, setMovieItems] = useState([]);

useEffect(() => {
const getMovies = async () => {
const params = { page: 1 };
try {
const response = await tmdbApi.getMoviesList(movieType.popular, {
params,
});
setMovieItems(response.results?.slice(1, 4));
console.log(response);
} catch (error) {
console.log(error.message);
}
};
getMovies();
}, []);

return (


<Swiper
modules={[Autoplay]}
grabCursor={true}
spaceBetween={0}
slidesPerView={1}
autoplay={{ delay: 3000 }}
>
{movieItems?.map((item, i) => (

{({ isActive }) => (
<HeroSlideItem
item={item}
className={${isActive ? "active" : ""}}
/>
)}

))}


);
};

const HeroSlideItem = (props) => {
let hisrory = useHistory();

const item = props.item;

const background = apiConfig.originalImage(
item?.backdrop_path ? item?.backdrop_path : item.poster_path
);

return (
<div
className={hero-slide__item ${props.className}}
style={{ backgroundImage: url(${background}) }}
>



{item.title}


{item.overview}


<Button onClick={() => hisrory.push("/movie/" + item.id)}>
Watch now

Watch trailer







);
};

export default HeroSlide;
`

Build for devices

Hello Tran Anh Tuat, hope you are doing well, first of all nice work, its possible to have this build to iOS, Android, Apple TV, and Android TV like a native app?
I have a project called DJTV its a WebTV and I'm looking a way to build this for all devices.
Can you give me a hand?

Best regards

Error for Hero Slider

Hey there, while working on the Hero slider, console log for the useEffect logs error and the code is the same. Is there a fix for this?

Major Issue

The Swiper Is Causing the images not to be shown

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.