From 1fe6533db5ddac239bed94352f22c814e5e2e597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CHenry-Hiles=E2=80=9D?= <“henry@henryhiles.com”> Date: Mon, 14 Nov 2022 11:44:25 -0500 Subject: [PATCH] Add placeholder for actor image --- public/placeholder.svg | 49 +++++++++++++++++++++++++++++++++++++ src/pages/Movie.jsx | 16 ++++++------ src/styles/Movie.module.css | 4 +++ 3 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 public/placeholder.svg diff --git a/public/placeholder.svg b/public/placeholder.svg new file mode 100644 index 0000000..31b9cfc --- /dev/null +++ b/public/placeholder.svg @@ -0,0 +1,49 @@ + + + + + + + diff --git a/src/pages/Movie.jsx b/src/pages/Movie.jsx index 73777cd..84448f9 100644 --- a/src/pages/Movie.jsx +++ b/src/pages/Movie.jsx @@ -132,14 +132,14 @@ const Movie = () => { to={`/actor/${actor.id}`} className={styles.Actor} > - {actor.profile_path ? ( - {actor.name} - ) : ( -

Image Unavailable

- )} + {actor.name}

{actor.name}

diff --git a/src/styles/Movie.module.css b/src/styles/Movie.module.css index 4c384c3..e969ef2 100644 --- a/src/styles/Movie.module.css +++ b/src/styles/Movie.module.css @@ -90,6 +90,10 @@ color: white; } +.Actor img { + height: 300px; +} + .Actor:not(:hover) { text-decoration: none; }