Skip to content

Commit

Permalink
fix: update sponsors logos to be compatible with dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sajald77 committed Jul 9, 2023
1 parent 6fc96f4 commit e7c4ae2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/pages/grants/components/SponsorList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, BoxProps, Image, Link, Text } from '@chakra-ui/react'
import { Box, BoxProps, HStack, Image, Link, Text } from '@chakra-ui/react'
import { PropsWithChildren } from 'react'
import { useTranslation } from 'react-i18next'

Expand Down Expand Up @@ -35,11 +35,19 @@ export const SponsorList = ({
<Box ml={2} my={2} display="flex" flexWrap="wrap">
{sponsors.map((item) =>
item && item.image ? (
<Box key={item.id} mr={3}>
<HStack
key={item.id}
mr={3}
background={'white'}
px={'12px'}
py={'5px'}
borderRadius={'20px'}
alignItems={'center'}
>
<Link target="_blank" href={item.url || '#'}>
<Image src={item.image} alt="sponsor logo" height="30px" />
</Link>
</Box>
</HStack>
) : null,
)}
</Box>
Expand Down

0 comments on commit e7c4ae2

Please sign in to comment.