From cda77bca0f40be6aa7425bacd88d540e3a84c693 Mon Sep 17 00:00:00 2001 From: ojakoo Date: Mon, 11 Jan 2021 11:49:39 +0200 Subject: [PATCH] minor fixes --- src/components/ContactCard.tsx | 14 ++++++++------ src/views/ContactsPage/ContactsPageView.tsx | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/ContactCard.tsx b/src/components/ContactCard.tsx index 89b3978..8f7833b 100644 --- a/src/components/ContactCard.tsx +++ b/src/components/ContactCard.tsx @@ -8,7 +8,7 @@ const Card = styled.article` flex-flow: row nowrap; padding: 0.5rem; color: ${colors.darkBlue}; - width: 18rem; + width: 19rem; `; const ImageContainer = styled.div` @@ -17,8 +17,8 @@ const ImageContainer = styled.div` flex-shrink: 0; justify-content: center; align-items: center; - height: 6rem; - width: 6rem; + height: 5rem; + width: 5rem; & > img { width: 100%; @@ -36,10 +36,12 @@ const Info = styled.div` & > p { font-size: 0.8rem; + margin: 0; } - & > h4 { - font-size: 0.83rem; + & > h1 { + font-size: 0.9rem; + font-weight: 500; } `; @@ -64,7 +66,7 @@ const ContactCard: React.FC = ({ name, phone, email, image, ro : null } -

{name}

+

{name}

{role_fi || role_en}

{phone ?

{phone}

: null} {email ?

{email}

: null} diff --git a/src/views/ContactsPage/ContactsPageView.tsx b/src/views/ContactsPage/ContactsPageView.tsx index 8c2f3af..e285789 100644 --- a/src/views/ContactsPage/ContactsPageView.tsx +++ b/src/views/ContactsPage/ContactsPageView.tsx @@ -13,7 +13,7 @@ import OtmkJson from "@assets/json/otmk.json"; import PtmkJson from "@assets/json/ptmk.json"; import SstmkJson from "@assets/json/sstmk.json"; import TtmkJson from "@assets/json/ttmk.json"; -import UtmkJson from "@assets/json/ttmk.json"; +import UtmkJson from "@assets/json/utmk.json"; import YtmkJson from "@assets/json/ytmk.json"; const BlueLink = styled(Link)`