From cd0af96f879cd8fa8b1eda1f32491d8a0a6acd5c Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Wed, 19 Jun 2024 14:56:01 +0300 Subject: [PATCH] Update Tool page fix fonts --- .../components/Tool/DescriptionAndShare.js | 7 +- .../src/components/Tool/Metrics.js | 2 +- .../Tool/OrgThemeAndOperatingCountries.js | 82 +++++++++++++------ .../charterafrica/src/components/Tool/Tool.js | 24 ++++-- 4 files changed, 81 insertions(+), 34 deletions(-) diff --git a/apps/charterafrica/src/components/Tool/DescriptionAndShare.js b/apps/charterafrica/src/components/Tool/DescriptionAndShare.js index 8cb6a76db..f03496a6d 100644 --- a/apps/charterafrica/src/components/Tool/DescriptionAndShare.js +++ b/apps/charterafrica/src/components/Tool/DescriptionAndShare.js @@ -4,6 +4,7 @@ import PropTypes from "prop-types"; import React from "react"; import ShareThisPage from "@/charterafrica/components/ShareThisPage"; +import formatDateTime from "@/charterafrica/utils/formatDate"; const DescriptionAndShare = React.forwardRef( function DescriptionAndShare(props, ref) { @@ -21,10 +22,12 @@ const DescriptionAndShare = React.forwardRef( - {lastActive} + {formatDateTime(lastActive, { + includeTime: true, + })} - + -
+
+ + - - {organisation.name} - - {theme ? ( - - ) : null} + {organisation.name} + + + + {theme ? ( + + ) : null} + {countries} diff --git a/apps/charterafrica/src/components/Tool/Tool.js b/apps/charterafrica/src/components/Tool/Tool.js index 8efebe559..ff0480a89 100644 --- a/apps/charterafrica/src/components/Tool/Tool.js +++ b/apps/charterafrica/src/components/Tool/Tool.js @@ -6,6 +6,7 @@ import React from "react"; import ExternalLink from "@/charterafrica/assets/icons/Type=external-link, Size=24, Color=CurrentColor.svg"; import GithubIcon from "@/charterafrica/assets/icons/Type=github, Size=24, Color=CurrentColor.svg"; +import LineClampedRichTypography from "@/charterafrica/components/LineClampedRichTypography"; import Contributors from "@/charterafrica/components/Tool/Contributors"; import DescriptionAndShare from "@/charterafrica/components/Tool/DescriptionAndShare"; import Metrics from "@/charterafrica/components/Tool/Metrics"; @@ -40,7 +41,7 @@ const Tool = React.forwardRef(function Tool(props, ref) {
- + - + - + {name} - + {externalLink?.href ? ( - + ({ borderLeft: `1px solid rgba(0, 0, 0, 0.1)`, textAlign: { sm: "right", xs: "center" }, - pl: { sm: 6.25 }, + px: { sm: 6.25, xs: 2 }, })} >