From a4bc0783f89264a59267a521b10a8c255fb68b28 Mon Sep 17 00:00:00 2001 From: Michael Rooplall Date: Wed, 8 Nov 2023 11:51:47 -0500 Subject: [PATCH] Person Card design updates --- app/components/PersonCard/PersonCard.jsx | 62 +++++++++++++++---- .../PersonCard/personCard.module.css | 36 ++++++----- 2 files changed, 72 insertions(+), 26 deletions(-) diff --git a/app/components/PersonCard/PersonCard.jsx b/app/components/PersonCard/PersonCard.jsx index 1e3ca98..0e15d1b 100644 --- a/app/components/PersonCard/PersonCard.jsx +++ b/app/components/PersonCard/PersonCard.jsx @@ -5,20 +5,58 @@ import Image from 'next/image'; const PersonCard = ({personData}) => { return (
- {`${personData.name} -
- {personData.name} - DIRECTOR OF TITLING -
+
+ {`${personData.name} +
+
+
+ + {personData.name} + + + DIRECTOR OF TITLING + + + Quote Block + +
+ +
Social - Media - Icons -
+
+
) } diff --git a/app/components/PersonCard/personCard.module.css b/app/components/PersonCard/personCard.module.css index 2f7e786..2647226 100644 --- a/app/components/PersonCard/personCard.module.css +++ b/app/components/PersonCard/personCard.module.css @@ -1,31 +1,39 @@ .personCard { display: flex; + flex-direction: column; flex-basis: 22%; max-width: 300px; - justify-content: center; - align-items: center; aspect-ratio: 1/1.4; - background-color: red; position: relative; margin-bottom: 100px; } +.personCardImageContainer { + position: relative; + width: 100%; + aspect-ratio: 1/1; +} + .personCardImage { flex : 1; object-fit: cover; + background-color: #000; } -.cardOverlay { - background-color: #fff; - padding: 20px; +.personCardBottomsheet { display: flex; flex-direction: column; - align-items: center; - text-align: center; - margin-left: 20px; - margin-right: 20px; - gap : 10px; - position: absolute; - top : calc(100% - 60px); - height : 100px; + justify-content: space-between; + padding : 10px; + padding-top : 20px; + color : #fff; + background-color: #1b1616; + min-height: 160px; +} + +.quoteBlock::before { + content: "\0022"; + font-size: 2em; + font-weight: bold; + vertical-align: -.3em; } \ No newline at end of file