forked from dmalvia/React_Redux_ToolKit_Movie_App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
16,861 additions
and
136 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@import "../src/common/colors.scss"; | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: "Open Sans", sans-serif; | ||
} | ||
a { | ||
text-decoration: none; | ||
} | ||
|
||
body { | ||
background: $primary-color; | ||
} | ||
.container { | ||
margin: 0px 40px; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const APIKey = "53c800d"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import axios from "axios"; | ||
|
||
export default axios.create({ | ||
baseURL: "https://www.omdbapi.com", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$primary-color: #0f171e; | ||
$secondary-color: #1a242f; | ||
$font-primary: #ffffff; | ||
$font-secondary: #79b8f3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
import "./Footer.scss"; | ||
|
||
const Footer = () => { | ||
return ( | ||
<div className="footer"> | ||
<div>Movie App</div> | ||
<div>©2021, Movie, Inc. or its affiliates</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import "../../common/colors.scss"; | ||
.footer { | ||
background: $secondary-color; | ||
height: 72px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: $font-primary; | ||
flex-direction: column; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
import user from "../../images/user.png"; | ||
import "./Header.scss"; | ||
|
||
const Header = () => { | ||
return ( | ||
<div className="header"> | ||
<Link to="/"> | ||
<div className="logo">Movie App</div> | ||
</Link> | ||
<div className="user-image"> | ||
<img src={user} alt="user" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@import "../../common/colors.scss"; | ||
|
||
.header { | ||
background-color: $secondary-color; | ||
height: 72px; | ||
padding: 0px 40px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
.logo { | ||
color: $font-primary; | ||
font-size: 20px; | ||
font-weight: 600; | ||
} | ||
|
||
.user-image, | ||
.user-image img { | ||
width: 38px; | ||
height: 38px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { useEffect } from "react"; | ||
import MovieListing from "../MovieListing/MovieListing"; | ||
|
||
import { useDispatch } from "react-redux"; | ||
import { | ||
fetchAsyncMovies, | ||
fetchAsyncShows, | ||
} from "../../features/movies/movieSlice"; | ||
const Home = () => { | ||
const dispatch = useDispatch(); | ||
useEffect(() => { | ||
dispatch(fetchAsyncMovies()); | ||
dispatch(fetchAsyncShows()); | ||
}, [dispatch]); | ||
return ( | ||
<div> | ||
<div className="banner-img"></div> | ||
<MovieListing /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Home; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
import "./MovieCard.scss"; | ||
|
||
const MovieCard = (props) => { | ||
const { data } = props; | ||
return ( | ||
<div className="card-item"> | ||
<Link to={`/movie/${data.imdbID}`}> | ||
<div className="card-inner"> | ||
<div className="card-top"> | ||
<img src={data.Poster} alt={data.Title} /> | ||
</div> | ||
<div className="card-bottom"> | ||
<div className="card-info"> | ||
<h4>{data.Title}</h4> | ||
<p>{data.Year}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MovieCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@import "../../common/colors.scss"; | ||
.card-item { | ||
background: $secondary-color; | ||
cursor: pointer; | ||
transition: all 0.3s; | ||
|
||
&:hover { | ||
transform: scale(1.1); | ||
transition: all 0.3s; | ||
} | ||
} | ||
|
||
.card-top { | ||
height: 300px; | ||
|
||
img { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
|
||
.card-bottom { | ||
padding: 20px; | ||
} | ||
.card-info { | ||
color: $font-primary; | ||
h4 { | ||
font-size: 22px; | ||
font-weight: 400; | ||
margin-bottom: 10px; | ||
} | ||
} |
Oops, something went wrong.