+ >
)
}
diff --git a/src/pages/Ratings.jsx b/src/pages/Ratings.jsx
index e85dabb..5a878aa 100644
--- a/src/pages/Ratings.jsx
+++ b/src/pages/Ratings.jsx
@@ -1,4 +1,5 @@
import Card from "components/Card"
+import TopBar from "components/TopBar"
import useLocalStorage from "hooks/useLocalStorage"
import styles from "styles/Ratings.module.css"
@@ -11,18 +12,21 @@ const Ratings = () => {
])
return (
-
-
-
- {ratings?.map((movie) => (
-
setRating(rating, movie)}
- />
- ))}
+ <>
+
+
+
+
+ {ratings?.map((movie) => (
+ setRating(rating, movie)}
+ />
+ ))}
+
-
+ >
)
}
diff --git a/src/styles/Actor.module.css b/src/styles/Actor.module.css
index 19a77e9..0b433d6 100644
--- a/src/styles/Actor.module.css
+++ b/src/styles/Actor.module.css
@@ -3,7 +3,6 @@
flex-direction: column;
padding: 15px;
color: white;
- padding-top: 80px;
}
.Name {
margin-top: 10px;
diff --git a/src/styles/Home.module.css b/src/styles/Home.module.css
index da286f9..e70b607 100644
--- a/src/styles/Home.module.css
+++ b/src/styles/Home.module.css
@@ -3,7 +3,6 @@
align-items: center;
flex-direction: column;
gap: 1.5em;
- padding-top: 30px;
}
.CardList {
@@ -15,14 +14,3 @@
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 c83f0df..63d032f 100644
--- a/src/styles/Movie.module.css
+++ b/src/styles/Movie.module.css
@@ -5,7 +5,6 @@
.Top {
height: 100vh;
display: flex;
-
background-size: cover;
background-position: center;
background-repeat: no-repeat;
@@ -16,6 +15,7 @@
.Summary {
background: linear-gradient(#00000035, black);
height: 15%;
+ overflow: scroll;
text-align: center;
}
@@ -50,12 +50,15 @@
.Tags {
display: flex;
gap: 10px;
+ width: 100%;
+ overflow: scroll;
}
.Tags > * {
background-color: var(--primary);
padding: 5px 7px;
border-radius: 10px;
+ white-space: nowrap;
}
.Average {
diff --git a/src/styles/Ratings.module.css b/src/styles/Ratings.module.css
index 39e2851..0fabf03 100644
--- a/src/styles/Ratings.module.css
+++ b/src/styles/Ratings.module.css
@@ -5,7 +5,6 @@
gap: 1.5em;
color: white;
padding: 10px;
- padding-top: 90px;
}
.CardList {
diff --git a/src/styles/TopBar.module.css b/src/styles/TopBar.module.css
index ab768b1..7f8f519 100644
--- a/src/styles/TopBar.module.css
+++ b/src/styles/TopBar.module.css
@@ -1,13 +1,42 @@
+.Container.HasSearch {
+ --cols: 3;
+}
+
.Container {
- display: flex;
+ display: grid;
width: 100%;
- justify-content: space-between;
- padding: 10px 20px;
- background-color: transparent;
- position: absolute;
+ grid-template-columns: repeat(var(--cols, 2), 1fr);
+ padding: 0 30px;
+ align-items: center;
+ background: linear-gradient(to bottom, #00000090, #00000000);
color: white;
}
-.Container h1 {
- color: white;
+.Container.Absolute {
+ position: absolute;
+}
+
+.Container a {
+ color: white;
+ text-decoration: none;
+}
+
+.Container a::hover {
+ text-decoration: underline;
+}
+
+.Search {
+ padding: 0.5em;
+ border: 2px solid white;
+ color: white;
+ font: inherit;
+ justify-self: center;
+ width: 20em;
+ height: 3em;
+ border-radius: 10px;
+ background-color: var(--secondary);
+}
+
+.Ratings {
+ justify-self: end;
}