Skip to content

Commit acbb974

Browse files
Merge pull request #139 from OceanParcels/adding-bmbfwarmworld-logo
Adding the BMBF logo for the WarmWorld project that funds v4 dev
2 parents 8088e74 + f2e8853 commit acbb974

3 files changed

Lines changed: 29 additions & 22 deletions

File tree

public/funders-logos/BMBFlogo.png

24.1 KB
Loading

src/components/funders.js

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import {
33
Container,
44
Image,
55
Text,
6-
UnorderedList,
7-
ListItem,
86
Link,
9-
SimpleGrid,
10-
Flex,
7+
Grid,
8+
GridItem,
9+
Tooltip,
1110
} from '@chakra-ui/react'
1211
import React from 'react'
1312
import { Funders as data } from '@/data/funders'
@@ -29,27 +28,30 @@ export const Funders = () => {
2928
organisations:
3029
</Text>
3130

32-
<SimpleGrid
33-
columns={{ base: 1, sm: 2, md: 2, lg: 4 }}
31+
<Grid
32+
templateColumns={`repeat(${funders.length}, minmax(auto, max-content))`}
33+
gap={6}
3434
my={4}
35-
spacing={'space-between'}
36-
align={'center'}
37-
justify={'center'}
35+
justifyContent='center'
3836
>
39-
{funders.map((funders, index) => (
40-
<Flex
41-
as={Link}
42-
href={funders.url}
43-
key={index}
44-
w={64}
45-
align={'center'}
46-
justify={'center'}
47-
rounded={'full'}
48-
>
49-
<Image maxH={20} src={funders.logo} alt={funders.name} />
50-
</Flex>
37+
{funders.map((funder, index) => (
38+
<Tooltip key={index} label={funder.name}>
39+
<GridItem
40+
as={Link}
41+
href={funder.url}
42+
display='flex'
43+
alignItems='center'
44+
justifyContent='center'
45+
borderRight={
46+
index < funders.length - 1 ? '1px solid #ccc' : 'none'
47+
}
48+
pr={4}
49+
>
50+
<Image maxH={20} src={funder.logo} alt={funder.name} />
51+
</GridItem>
52+
</Tooltip>
5153
))}
52-
</SimpleGrid>
54+
</Grid>
5355
</Box>
5456
</Container>
5557
</Box>

src/data/funders.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ export const Funders = [
1414
logo: '/funders-logos/EPSRlogo.png',
1515
url: 'https://www.ukri.org/councils/epsrc/',
1616
},
17+
{
18+
name: 'BMBF via the Warmworld project',
19+
logo: '/funders-logos/BMBFlogo.png',
20+
url: 'https://www.warmworld.de',
21+
},
1722
{
1823
name: 'Utrecht University',
1924
logo: '/funders-logos/UUlogo.png',

0 commit comments

Comments
 (0)