From ebf8b8419ac0a7612b146acb858b35d6290f99d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CHenry-Hiles=E2=80=9D?= <“henry@henryhiles.com”>
Date: Tue, 8 Nov 2022 15:43:47 -0500
Subject: [PATCH] Some small improvements
---
src/index.css | 2 +
src/pages/Actor.jsx | 78 ++++++++++++++++++------------------
src/pages/Movie.jsx | 31 +++++++++++---
src/styles/Actor.module.css | 13 +++---
src/styles/Movie.module.css | 35 +++++++++++++++-
src/styles/TopBar.module.css | 5 ++-
6 files changed, 112 insertions(+), 52 deletions(-)
diff --git a/src/index.css b/src/index.css
index 49cf7e7..b90cbd9 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1,6 +1,7 @@
:root {
--primary: #14bbaa;
--secondary: #2c3c4c;
+ scroll-behavior: smooth;
}
*,
@@ -14,6 +15,7 @@ body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
"Helvetica Neue", sans-serif;
+
margin: 0;
background-color: var(--secondary);
}
diff --git a/src/pages/Actor.jsx b/src/pages/Actor.jsx
index 7eeaa61..1bcb104 100644
--- a/src/pages/Actor.jsx
+++ b/src/pages/Actor.jsx
@@ -66,50 +66,38 @@ const Actor = () => {
<>
-
-
{actor?.name}
-
-
Biography
-
+
Movies
@@ -125,6 +113,18 @@ const Actor = () => {
))}
+
+
Images
+
+ {images?.profiles.map((image) => (
+

+ ))}
+
+
>
)
diff --git a/src/pages/Movie.jsx b/src/pages/Movie.jsx
index f4755f9..4ddc5fc 100644
--- a/src/pages/Movie.jsx
+++ b/src/pages/Movie.jsx
@@ -65,15 +65,32 @@ const Movie = () => {
backgroundImage: `url(${movie?.backdropUrl})`,
}}
>
+

+
-
+
{movie?.title} - {movie?.year}
-
-
{movie?.tagline}
-
{movie?.overview}
+
+
{movie?.tagline}
+
+ More info
+
+
-
+
{movie?.genres.map((genre) => (
{genre}
@@ -93,6 +110,10 @@ const Movie = () => {
+
+
Overview
+
{movie?.overview}
+
Your Rating
diff --git a/src/styles/Actor.module.css b/src/styles/Actor.module.css
index d9dd064..5e1e23c 100644
--- a/src/styles/Actor.module.css
+++ b/src/styles/Actor.module.css
@@ -9,6 +9,14 @@
margin-top: 10px;
}
+.Biography {
+ -webkit-box-orient: vertical;
+ font-size: 1.3em;
+ white-space: pre-line;
+ display: -webkit-box;
+ overflow: hidden;
+}
+
.Images {
display: flex;
overflow: scroll;
@@ -27,11 +35,6 @@
.Collapsed {
-webkit-line-clamp: 5;
- -webkit-box-orient: vertical;
- display: -webkit-box;
- overflow: hidden;
- text-overflow: ellipsis;
- overflow-wrap: break-word;
}
.Collapse {
diff --git a/src/styles/Movie.module.css b/src/styles/Movie.module.css
index 63d032f..af09998 100644
--- a/src/styles/Movie.module.css
+++ b/src/styles/Movie.module.css
@@ -12,13 +12,46 @@
justify-content: flex-end;
}
+.Thumb {
+ position: absolute;
+ left: 40px;
+ bottom: 50px;
+ box-shadow: 5px 5px 50px #00000030;
+}
+
.Summary {
background: linear-gradient(#00000035, black);
- height: 15%;
+ height: 30%;
+ font-size: 20px;
overflow: scroll;
text-align: center;
}
+.Overview {
+ font-size: 1.3em;
+}
+
+.More {
+ color: white;
+ font-size: 1.3em;
+ font-weight: bold;
+}
+
+.More:not(:hover) {
+ text-decoration: none;
+}
+
+.Title {
+ margin-top: 10px;
+ margin-bottom: 15px;
+ font-size: 70px;
+}
+
+.Tagline {
+ font-size: 30px;
+ font-weight: bold;
+}
+
.Bottom {
background-color: black;
height: 100vh;
diff --git a/src/styles/TopBar.module.css b/src/styles/TopBar.module.css
index 3759a0b..5dadc67 100644
--- a/src/styles/TopBar.module.css
+++ b/src/styles/TopBar.module.css
@@ -6,9 +6,9 @@
display: grid;
width: 100%;
grid-template-columns: 1fr;
- padding: 10px 30px;
+ padding: 20px 30px;
gap: 10px;
- background: linear-gradient(to bottom, #00000090, #00000010);
+ background: #00000050;
color: white;
}
@@ -33,6 +33,7 @@
.Container.Absolute {
position: absolute;
+ background: linear-gradient(to bottom, #00000090, #00000010);
}
.Container a {