Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/funders-logos/BMBFlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 24 additions & 22 deletions src/components/funders.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import {
Container,
Image,
Text,
UnorderedList,
ListItem,
Link,
SimpleGrid,
Flex,
Grid,
GridItem,
Tooltip,
} from '@chakra-ui/react'
import React from 'react'
import { Funders as data } from '@/data/funders'
Expand All @@ -29,27 +28,30 @@ export const Funders = () => {
organisations:
</Text>

<SimpleGrid
columns={{ base: 1, sm: 2, md: 2, lg: 4 }}
<Grid
templateColumns={`repeat(${funders.length}, minmax(auto, max-content))`}
gap={6}
my={4}
spacing={'space-between'}
align={'center'}
justify={'center'}
justifyContent='center'
>
{funders.map((funders, index) => (
<Flex
as={Link}
href={funders.url}
key={index}
w={64}
align={'center'}
justify={'center'}
rounded={'full'}
>
<Image maxH={20} src={funders.logo} alt={funders.name} />
</Flex>
{funders.map((funder, index) => (
<Tooltip key={index} label={funder.name}>
<GridItem
as={Link}
href={funder.url}
display='flex'
alignItems='center'
justifyContent='center'
borderRight={
index < funders.length - 1 ? '1px solid #ccc' : 'none'
}
pr={4}
>
<Image maxH={20} src={funder.logo} alt={funder.name} />
</GridItem>
</Tooltip>
))}
</SimpleGrid>
</Grid>
</Box>
</Container>
</Box>
Expand Down
5 changes: 5 additions & 0 deletions src/data/funders.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export const Funders = [
logo: '/funders-logos/EPSRlogo.png',
url: 'https://www.ukri.org/councils/epsrc/',
},
{
name: 'BMBF via the Warmworld project',
logo: '/funders-logos/BMBFlogo.png',
url: 'https://www.warmworld.de',
},
{
name: 'Utrecht University',
logo: '/funders-logos/UUlogo.png',
Expand Down