Skip to content

Commit 652f9c8

Browse files
authored
fixes varios (#10)
* fixes varios * node fix, pagination and margins
1 parent aa166e9 commit 652f9c8

File tree

15 files changed

+2193
-1925
lines changed

15 files changed

+2193
-1925
lines changed

package-lock.json

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"engines": {
6-
"node": "20",
6+
"node": "20.19.4",
77
"npm": "~10"
88
},
99
"dependencies": {
@@ -17,6 +17,7 @@
1717
"@testing-library/react": "^13.2.0",
1818
"@testing-library/user-event": "^13.5.0",
1919
"axios": "^0.27.2",
20+
"nvm": "^0.0.4",
2021
"react": "^18.1.0",
2122
"react-alice-carousel": "^2.6.1",
2223
"react-dom": "^18.1.0",

src/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
font-family: "Montserrat", sans-serif;
2424
font-size: 2vw;
2525
padding: 4px;
26+
padding-top: 70px !important;
2627
border-radius: 50px;
2728
color: white;
2829
}

src/components/ContentModal/ContentModal.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
}
8989

9090
.ContentModal__title {
91-
font-size: 3.5vw;
91+
font-size: 2.5vw;
9292
}
9393

9494
.ContentModal__description {

src/components/Genres.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ const Genres = ({
3535
fetchGenres();
3636

3737
return () => {
38-
setGenres({});
38+
setGenres([]);
3939
};
4040
// eslint-disable-next-line
4141
}, []);
4242

4343
return (
44-
<div style={{ padding: "6px 0" }}>
44+
<div style={{ padding: "100px 20px 0px" }}>
4545
{selectedGenres.map((genre) => (
4646
<Chip
4747
style={{ margin: 2 }}

src/components/Pages/Movies/Movies.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ const Movies = () => {
5454
vote_average={c.vote_average}
5555
/>
5656
))}
57-
</div>
57+
5858
{numOfPages > 1 && (
5959
<CustomPagination setPage={setPage} numOfPages={numOfPages} />
6060
)}
6161
</div>
62+
</div>
6263
);
6364
};
6465

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.search {
22
display: flex;
33
margin: 15px 0;
4+
padding-top: 100px;
45
}

src/components/Pages/Search/Search.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ const Search = () => {
102102
{searchText &&
103103
!content &&
104104
(type ? <h2>No Series Found</h2> : <h2>No Movies Found</h2>)}
105-
</div>
106-
{numOfPages > 1 && (
105+
{numOfPages > 1 && (
107106
<CustomPagination setPage={setPage} numOfPages={numOfPages} />
108107
)}
108+
</div>
109+
109110
</div>
110111
);
111112
};

src/components/Pages/Series/Series.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ const Series = () => {
5353
vote_average={c.vote_average}
5454
/>
5555
))}
56-
</div>
56+
5757
{numOfPages > 1 && (
5858
<CustomPagination setPage={setPage} numOfPages={numOfPages} />
5959
)}
60+
</div>
6061
</div>
6162
);
6263
};

src/components/Pages/Trending/Trending.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
display: flex;
33
flex-wrap: wrap;
44
justify-content: space-around;
5+
background-color: #39445a;
6+
padding-top: 30px;
7+
padding-bottom: 60px;
58
}

0 commit comments

Comments
 (0)