From 8aa78f9d1b137be67389c732284f54cf195c01af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Mee=C3=9Fen?= <14222414+cmeessen@users.noreply.github.com> Date: Thu, 9 Mar 2023 13:56:54 +0100 Subject: [PATCH] feat: display Helmholtz icon for HGF member organisations --- frontend/components/icons/HelmholtzIcon.tsx | 13 ++++++ frontend/components/icons/helmholtz_icon.svg | 43 +++++++++++++++++++ .../organisation/OrganisationCard.tsx | 23 ++++++---- 3 files changed, 70 insertions(+), 9 deletions(-) create mode 100644 frontend/components/icons/HelmholtzIcon.tsx create mode 100644 frontend/components/icons/helmholtz_icon.svg diff --git a/frontend/components/icons/HelmholtzIcon.tsx b/frontend/components/icons/HelmholtzIcon.tsx new file mode 100644 index 000000000..f3dccc919 --- /dev/null +++ b/frontend/components/icons/HelmholtzIcon.tsx @@ -0,0 +1,13 @@ +// SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) +// SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences +// +// SPDX-License-Identifier: EUPL-1.2 + +import {DefaultComponentProps, OverridableTypeMap} from '@mui/material/OverridableComponent' +import SvgIcon from '@mui/material/SvgIcon' +import HelmholtzIconSVG from './helmholtz_icon.svg' + +export const HelmholtzIcon = (props: DefaultComponentProps) => ( + +) + diff --git a/frontend/components/icons/helmholtz_icon.svg b/frontend/components/icons/helmholtz_icon.svg new file mode 100644 index 000000000..129e6e445 --- /dev/null +++ b/frontend/components/icons/helmholtz_icon.svg @@ -0,0 +1,43 @@ + + + + diff --git a/frontend/components/organisation/OrganisationCard.tsx b/frontend/components/organisation/OrganisationCard.tsx index 3844f7499..eb633c54d 100644 --- a/frontend/components/organisation/OrganisationCard.tsx +++ b/frontend/components/organisation/OrganisationCard.tsx @@ -1,14 +1,18 @@ // SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) // SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) (dv4all) // SPDX-FileCopyrightText: 2022 dv4all +// SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) +// SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences // // SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: EUPL-1.2 import Link from 'next/link' import {OrganisationForOverview} from '../../types/Organisation' import {getImageUrl} from '~/utils/editImage' import StatCounter from '../layout/StatCounter' -import VerifiedIcon from '@mui/icons-material/Verified' +// import VerifiedIcon from '@mui/icons-material/Verified' +import {HelmholtzIcon} from '../icons/HelmholtzIcon' import LogoAvatar from '../layout/LogoAvatar' import CardTitle from '../layout/CardTitle' @@ -42,18 +46,19 @@ export default function OrganisationCard(organisation: OrganisationForOverview) {organisation.name} { - organisation.is_tenant && - > START + organisation.is_tenant && + + // Fix for HIFIS << END }