updated styles
This commit is contained in:
@@ -5,6 +5,7 @@ import Home from './pages/Home'
|
|||||||
import NotFound from './pages/NotFound'
|
import NotFound from './pages/NotFound'
|
||||||
import Search from './pages/Search'
|
import Search from './pages/Search'
|
||||||
import Navbar from './components/Navbar'
|
import Navbar from './components/Navbar'
|
||||||
|
import Footer from './components/Footer'
|
||||||
|
|
||||||
const AppRouter = () => (
|
const AppRouter = () => (
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
@@ -15,6 +16,7 @@ const AppRouter = () => (
|
|||||||
<Route path='/search' component={Search} />
|
<Route path='/search' component={Search} />
|
||||||
<Route component={NotFound} />
|
<Route component={NotFound} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
<Footer />
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { useDispatch, useSelector } from 'react-redux'
|
|||||||
import * as movieActions from '../store/actions'
|
import * as movieActions from '../store/actions'
|
||||||
|
|
||||||
import Header from './Header'
|
import Header from './Header'
|
||||||
import Footer from './Footer'
|
|
||||||
import DisplayMovieRow from './DisplayMovieRow'
|
import DisplayMovieRow from './DisplayMovieRow'
|
||||||
|
|
||||||
const MainContent = ({ selectMovieHandler }) => {
|
const MainContent = ({ selectMovieHandler }) => {
|
||||||
@@ -77,7 +76,6 @@ const MainContent = ({ selectMovieHandler }) => {
|
|||||||
movies={documentaries.data}
|
movies={documentaries.data}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Footer />
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ const Search = () => {
|
|||||||
<>
|
<>
|
||||||
<div className='search-container'>
|
<div className='search-container'>
|
||||||
{searchResults.map((movie) => {
|
{searchResults.map((movie) => {
|
||||||
if (movie.poster_path !== null && movie.media_type !== 'person') {
|
if (movie.backdrop_path !== null && movie.media_type !== 'person') {
|
||||||
const movieImageUrl =
|
const movieImageUrl =
|
||||||
'https://image.tmdb.org/t/p/w500' + movie.poster_path
|
'https://image.tmdb.org/t/p/w500' + movie.backdrop_path
|
||||||
return (
|
return (
|
||||||
<div className='movie'>
|
<div className='movie'>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -1,38 +1,34 @@
|
|||||||
.movie {
|
.movie {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
padding-top: 6rem;
|
display: inline-block;
|
||||||
display: inline-block;
|
padding-right: 0.5rem;
|
||||||
|
padding-bottom: 7rem;
|
||||||
|
|
||||||
@include responsive(tab_port) {
|
@include responsive(phone) {
|
||||||
padding-top: 4rem;
|
padding-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__column-poster {
|
&__column-poster {
|
||||||
height: 25rem;
|
height: 15rem;
|
||||||
width: 17.5rem;
|
cursor: pointer;
|
||||||
cursor: pointer;
|
transition: transform 0.3s;
|
||||||
transition: transform .3s;
|
-webkit-transition: transform 0.3s;
|
||||||
-webkit-transition: transform .3s;
|
|
||||||
|
&:hover {
|
||||||
|
transform: scale(1.25);
|
||||||
|
|
||||||
@include responsive(tab_port) {
|
@include responsive(tab_port) {
|
||||||
height: 20rem;
|
transform: scale(1.15);
|
||||||
width: 14rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: scale(1.25);
|
|
||||||
|
|
||||||
@include responsive(tab_port) {
|
|
||||||
transform: scale(1.15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__poster {
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__poster {
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.movie:first-child {
|
div.movie:first-child {
|
||||||
padding-top: 15rem;
|
padding-top: 15rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
.swiper-container-horizontal > .swiper-pagination-bullets {
|
.swiper-container-horizontal > .swiper-pagination-bullets {
|
||||||
bottom: 0 !important;
|
bottom: 0 !important;
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
// width: 10% !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.swiper-button-prev,
|
div.swiper-button-prev,
|
||||||
@@ -115,6 +114,7 @@ div.swiper-button-next {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__netflix {
|
&__netflix {
|
||||||
|
|||||||
@@ -2,11 +2,10 @@
|
|||||||
background-color: $color-background;
|
background-color: $color-background;
|
||||||
grid-column: 1 / 13;
|
grid-column: 1 / 13;
|
||||||
height: 82vh;
|
height: 82vh;
|
||||||
// display: inline-block;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
@include responsive(phone) {
|
@include responsive(phone) {
|
||||||
height: 50rem;
|
height: 58rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__container {
|
&__container {
|
||||||
@@ -70,10 +69,6 @@
|
|||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
padding-top: 2.5rem;
|
padding-top: 2.5rem;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
|
|
||||||
@include responsive(phone) {
|
|
||||||
width: 36rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,5 +82,9 @@
|
|||||||
rgb(17, 17, 17),
|
rgb(17, 17, 17),
|
||||||
rgb(17, 17, 17)
|
rgb(17, 17, 17)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@include responsive(phone) {
|
||||||
|
height: 4rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user