Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit 8aa78f9

Browse files
committed
feat: display Helmholtz icon for HGF member organisations
1 parent c6dd45d commit 8aa78f9

File tree

3 files changed

+70
-9
lines changed

3 files changed

+70
-9
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) <[email protected]>
2+
// SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
3+
//
4+
// SPDX-License-Identifier: EUPL-1.2
5+
6+
import {DefaultComponentProps, OverridableTypeMap} from '@mui/material/OverridableComponent'
7+
import SvgIcon from '@mui/material/SvgIcon'
8+
import HelmholtzIconSVG from './helmholtz_icon.svg'
9+
10+
export const HelmholtzIcon = (props: DefaultComponentProps<OverridableTypeMap>) => (
11+
<SvgIcon {...props} component={HelmholtzIconSVG} inheritViewBox />
12+
)
13+
Lines changed: 43 additions & 0 deletions
Loading

frontend/components/organisation/OrganisationCard.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
22
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) (dv4all)
33
// SPDX-FileCopyrightText: 2022 dv4all
4+
// SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) <[email protected]>
5+
// SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
46
//
57
// SPDX-License-Identifier: Apache-2.0
8+
// SPDX-License-Identifier: EUPL-1.2
69

710
import Link from 'next/link'
811
import {OrganisationForOverview} from '../../types/Organisation'
912
import {getImageUrl} from '~/utils/editImage'
1013
import StatCounter from '../layout/StatCounter'
11-
import VerifiedIcon from '@mui/icons-material/Verified'
14+
// import VerifiedIcon from '@mui/icons-material/Verified'
15+
import {HelmholtzIcon} from '../icons/HelmholtzIcon'
1216
import LogoAvatar from '../layout/LogoAvatar'
1317
import CardTitle from '../layout/CardTitle'
1418

@@ -42,18 +46,19 @@ export default function OrganisationCard(organisation: OrganisationForOverview)
4246
{organisation.name}
4347
</CardTitle>
4448
{
45-
organisation.is_tenant && <span title="Officially registered organisation">
46-
<VerifiedIcon
49+
// Fix for HIFIS >> START
50+
organisation.is_tenant && <span title="Member of the Helmholtz Association">
51+
<HelmholtzIcon
4752
sx={{
4853
position: 'absolute',
49-
right: '0.5rem',
50-
top: '0.5rem',
51-
width: '4rem',
52-
height: '4rem',
53-
opacity: 0.4,
54-
color: 'primary.main'
54+
right: '1rem',
55+
top: '1rem',
56+
width: '3rem',
57+
height: '3rem',
58+
color: 'secondary.main'
5559
}}
5660
/></span>
61+
// Fix for HIFIS << END
5762
}
5863
</div>
5964
<div className="flex-1 grid gap-8 lg:grid-cols-[1fr,1fr] p-8 overflow-hidden">

0 commit comments

Comments
 (0)