Some final polishing touches
This commit is contained in:
parent
6e35f9023c
commit
88084fd982
9 changed files with 78 additions and 25 deletions
|
@ -122,7 +122,9 @@ const Actor = () => {
|
||||||
className={styles.Movie}
|
className={styles.Movie}
|
||||||
>
|
>
|
||||||
<img src={movie.posterUrl} />
|
<img src={movie.posterUrl} />
|
||||||
<h3>{movie.title}</h3>
|
<h3 className={styles.MovieTitle}>
|
||||||
|
{movie.title}
|
||||||
|
</h3>
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,11 +40,15 @@ const Home = () => {
|
||||||
return (
|
return (
|
||||||
<div className={styles.Container}>
|
<div className={styles.Container}>
|
||||||
<TopBar search={search} setSearch={setSearch} />
|
<TopBar search={search} setSearch={setSearch} />
|
||||||
<div className={styles.CardList}>
|
{movies?.length ? (
|
||||||
{movies?.map((movie) => (
|
<div className={styles.CardList}>
|
||||||
<Card key={movie.id} movie={movie} />
|
{movies?.map((movie) => (
|
||||||
))}
|
<Card key={movie.id} movie={movie} />
|
||||||
</div>
|
))}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<h1 className={styles.NoMovies}>No results found</h1>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,9 @@ const Movie = () => {
|
||||||
<h1 className={styles.Title}>
|
<h1 className={styles.Title}>
|
||||||
{movie?.title} - {movie?.year}
|
{movie?.title} - {movie?.year}
|
||||||
</h1>
|
</h1>
|
||||||
<p className={styles.Tagline}>{movie?.tagline}</p>
|
{movie?.tagline && (
|
||||||
|
<p className={styles.Tagline}>{movie?.tagline}</p>
|
||||||
|
)}
|
||||||
<a href="#bottom" className={styles.More}>
|
<a href="#bottom" className={styles.More}>
|
||||||
<p>More info</p>
|
<p>More info</p>
|
||||||
<svg
|
<svg
|
||||||
|
|
|
@ -15,16 +15,20 @@ const Ratings = () => {
|
||||||
<>
|
<>
|
||||||
<TopBar />
|
<TopBar />
|
||||||
<div className={styles.Container}>
|
<div className={styles.Container}>
|
||||||
<hr />
|
<h1 className={styles.Header}>Your rated movies</h1>
|
||||||
<div className={styles.CardList}>
|
{ratings?.length ? (
|
||||||
{ratings?.map((movie) => (
|
<div className={styles.CardList}>
|
||||||
<Card
|
{ratings?.map((movie) => (
|
||||||
key={movie.id}
|
<Card
|
||||||
movie={movie}
|
key={movie.id}
|
||||||
setRating={(rating) => setRating(rating, movie)}
|
movie={movie}
|
||||||
/>
|
setRating={(rating) => setRating(rating, movie)}
|
||||||
))}
|
/>
|
||||||
</div>
|
))}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<h1 className={styles.NoMovies}>No rated movies.</h1>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
.Top {
|
.Top {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Thumb {
|
.Thumb {
|
||||||
|
@ -45,6 +46,14 @@
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.MovieTitle {
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
display: -webkit-box;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.Collapsed {
|
.Collapsed {
|
||||||
-webkit-line-clamp: 5;
|
-webkit-line-clamp: 5;
|
||||||
}
|
}
|
||||||
|
@ -81,3 +90,7 @@
|
||||||
.Movie img {
|
.Movie img {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Section h1 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -14,3 +14,8 @@
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.NoMovies {
|
||||||
|
color: white;
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
|
|
|
@ -14,17 +14,21 @@
|
||||||
|
|
||||||
.Thumb {
|
.Thumb {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 40px;
|
left: 25px;
|
||||||
bottom: 50px;
|
bottom: 50px;
|
||||||
box-shadow: 5px 5px 50px #00000030;
|
box-shadow: 5px 5px 50px #00000030;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Summary {
|
.Summary {
|
||||||
background: linear-gradient(#00000035, black);
|
background: linear-gradient(#00000050, black);
|
||||||
height: 30%;
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
padding: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Overview {
|
.Overview {
|
||||||
|
@ -35,6 +39,14 @@
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
gap: 5px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.More p {
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.More:not(:hover) {
|
.More:not(:hover) {
|
||||||
|
@ -42,13 +54,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.Title {
|
.Title {
|
||||||
margin-top: 10px;
|
font-size: 2.75em;
|
||||||
margin-bottom: 15px;
|
width: 40%;
|
||||||
font-size: 70px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Tagline {
|
.Tagline {
|
||||||
font-size: 30px;
|
font-size: 1.65em;
|
||||||
|
width: 40%;
|
||||||
|
margin: 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,3 +16,13 @@
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Header {
|
||||||
|
font-size: 3em;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.NoMovies {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
font: inherit;
|
font: inherit;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 3em;
|
height: 3em;
|
||||||
margin-top: 10px;
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: var(--secondary);
|
background-color: var(--secondary);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue