- {components.map((component) => renderComponent(component?.item))}
+ {components.map((component, index) => (
+
+ {renderComponent(component?.item)}
+
+ ))}
)
}
diff --git a/src/components/CompanyLogos.tsx b/src/components/CompanyLogos.tsx
index f4e98583..af37bc46 100644
--- a/src/components/CompanyLogos.tsx
+++ b/src/components/CompanyLogos.tsx
@@ -1,99 +1,76 @@
-import { type ComponentProps, type ReactNode } from 'react'
-
-import { WrapWithIf } from '@pluralsh/design-system'
+import { type ComponentProps } from 'react'
import styled, { useTheme } from 'styled-components'
import { type Merge } from 'type-fest'
-import { TextLabel } from '@src/components/Typography'
-import { type PartnerLogos } from '@src/data/getSiteSettings'
-
-import { StandardPageWidth } from './layout/LayoutHelpers'
-
-const CompanyLogosSectionSC = styled.div(({ theme: _ }) => ({
- ul: {},
- img: {
- width: 100,
- },
-}))
+import { getImageUrl } from '@src/consts/routes'
+import { type LogoListFragment } from '@src/generated/graphqlDirectus'
-// Using old inline-block layout technique so we can use 'text-wrap: balance'
-// to keep things looking nice when it breaks to multiple lines
-const LogosListSC = styled.ul(({ theme }) => ({
- textAlign: 'center',
- textWrap: 'balance',
- margin: -theme.spacing.xxlarge / 2,
+const LogosListSC = styled.div(({ theme }) => ({
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ gap: theme.spacing.xxlarge,
+ paddingRight: theme.spacing.xxlarge,
+ paddingLeft: theme.spacing.xxlarge,
}))
-const LogoSC = styled.li(({ theme }) => ({
- display: 'inline-block',
- padding: 0,
- margin: theme.spacing.xxlarge / 2,
- verticalAlign: 'middle',
+const LogoSC = styled.a(({ theme }) => ({
+ display: 'flex',
+ justifyContent: 'center',
+ padding: theme.spacing.medium,
+ width: 175,
+ height: 80,
+ borderRadius: theme.borderRadiuses.medium,
+ transition: 'background 0.2s ease-in-out',
+ '&:hover': {
+ background: theme.colors['fill-zero-hover'],
+ },
}))
export function CompanyLogosSection({
logos,
- heading,
...props
}: Merge<
- ComponentProps