diff --git a/src/pages/Movie.jsx b/src/pages/Movie.jsx
index 230868d..2f76673 100644
--- a/src/pages/Movie.jsx
+++ b/src/pages/Movie.jsx
@@ -93,6 +93,10 @@ const Movie = () => {
Actors
diff --git a/src/pages/Ratings.jsx b/src/pages/Ratings.jsx
new file mode 100644
index 0000000..e85dabb
--- /dev/null
+++ b/src/pages/Ratings.jsx
@@ -0,0 +1,29 @@
+import Card from "components/Card"
+import useLocalStorage from "hooks/useLocalStorage"
+import styles from "styles/Ratings.module.css"
+
+const Ratings = () => {
+ const [ratings, setRatings] = useLocalStorage("ratings", [])
+ const setRating = (rating, movie) =>
+ setRatings((currentRatings) => [
+ ...currentRatings.filter(({ id }) => id != movie.id),
+ { ...movie, rating },
+ ])
+
+ return (
+
+
+
+ {ratings?.map((movie) => (
+ setRating(rating, movie)}
+ />
+ ))}
+
+
+ )
+}
+
+export default Ratings
diff --git a/src/styles/Actor.module.css b/src/styles/Actor.module.css
index 21f2480..19a77e9 100644
--- a/src/styles/Actor.module.css
+++ b/src/styles/Actor.module.css
@@ -3,6 +3,10 @@
flex-direction: column;
padding: 15px;
color: white;
+ padding-top: 80px;
+}
+.Name {
+ margin-top: 10px;
}
.Images {
diff --git a/src/App.css b/src/styles/App.module.css
similarity index 100%
rename from src/App.css
rename to src/styles/App.module.css
diff --git a/src/styles/Home.module.css b/src/styles/Home.module.css
index e70b607..da286f9 100644
--- a/src/styles/Home.module.css
+++ b/src/styles/Home.module.css
@@ -3,6 +3,7 @@
align-items: center;
flex-direction: column;
gap: 1.5em;
+ padding-top: 30px;
}
.CardList {
@@ -14,3 +15,14 @@
gap: 20px;
text-align: center;
}
+
+.Search {
+ padding: 0.5em;
+ border: 2px solid white;
+ color: white;
+ font: inherit;
+ width: 20em;
+ height: 3em;
+ border-radius: 10px;
+ background-color: var(--secondary);
+}
diff --git a/src/styles/Movie.module.css b/src/styles/Movie.module.css
index f48459f..c83f0df 100644
--- a/src/styles/Movie.module.css
+++ b/src/styles/Movie.module.css
@@ -66,3 +66,7 @@
.Rate {
color: white;
}
+
+.RatingsLink {
+ color: white;
+}
diff --git a/src/styles/Ratings.module.css b/src/styles/Ratings.module.css
new file mode 100644
index 0000000..39e2851
--- /dev/null
+++ b/src/styles/Ratings.module.css
@@ -0,0 +1,19 @@
+.Container {
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ gap: 1.5em;
+ color: white;
+ padding: 10px;
+ padding-top: 90px;
+}
+
+.CardList {
+ display: grid;
+ justify-items: center;
+ width: 100%;
+ padding: 20px;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
+ gap: 20px;
+ text-align: center;
+}
diff --git a/src/styles/TopBar.module.css b/src/styles/TopBar.module.css
index 57dd76d..ab768b1 100644
--- a/src/styles/TopBar.module.css
+++ b/src/styles/TopBar.module.css
@@ -1,21 +1,13 @@
.Container {
display: flex;
width: 100%;
- flex-direction: column;
- align-items: center;
-}
-
-.Search {
- padding: 0.5em;
- border: 2px solid white;
- color: white;
- font: inherit;
- width: 20em;
- height: 3em;
- border-radius: 10px;
- background-color: var(--secondary);
-}
-
-.Title {
+ justify-content: space-between;
+ padding: 10px 20px;
+ background-color: transparent;
+ position: absolute;
+ color: white;
+}
+
+.Container h1 {
color: white;
}