Skip to content

Commit

Permalink
Merge pull request #337 from icflorescu/next
Browse files Browse the repository at this point in the history
Adjust docs website users/partners
  • Loading branch information
icflorescu committed Jun 15, 2023
2 parents bbd9a0c + 17f7d44 commit 1fcaee1
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/components/AppPartners.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container, createStyles } from '@mantine/core';
import { Container, Text, createStyles } from '@mantine/core';

const PARTNERS = [
{
Expand Down Expand Up @@ -28,16 +28,19 @@ const PARTNERS = [
},
{
name: 'Pachtop',
logo: { base: 'pachtop', ext: 'png', scale: 84, shift: 8 },
showText: true,
logo: { base: 'pachtop', ext: 'png', scale: 84, shift: 4 },
link: 'https://github.com/pacholoamit/pachtop',
},
{
name: 'Ganymede',
logo: { base: 'ganymede', ext: 'png', scale: 80, shift: 8 },
showText: true,
logo: { base: 'ganymede', ext: 'png', scale: 80, shift: 4 },
link: 'https://github.com/Zibbp/ganymede',
},
{
name: 'COH3 Stats',
showText: true,
logo: { base: 'coh3-stats', ext: 'png', scale: 80, shift: 4 },
link: 'https://coh3stats.com',
},
Expand Down Expand Up @@ -71,11 +74,16 @@ const useStyles = createStyles((theme) => ({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
gap: theme.spacing.xs,
height: 24,
textDecoration: 'none',
[`@media (min-width: ${theme.breakpoints.sm})`]: {
height: 36,
},
},
text: {
fontWeight: 700,
},
}));

export default function AppPartners() {
Expand All @@ -87,7 +95,7 @@ export default function AppPartners() {
<div className={classes.root}>
<h2 className={classes.title}>Mantine DataTable is trusted by</h2>
<Container className={classes.links}>
{PARTNERS.map(({ name, logo: { base, ext, themed, scale, shift }, link }) => (
{PARTNERS.map(({ name, logo: { base, ext, themed, scale, shift }, link, showText }) => (
<a
key={name}
className={classes.link}
Expand All @@ -101,6 +109,11 @@ export default function AppPartners() {
src={`${process.env.BASE_PATH}/partners/${base}${themed ? `-${colorScheme}` : ''}.${ext}`}
alt={name}
/>
{showText && (
<Text color="dimmed" size="lg" className={classes.text}>
{name}
</Text>
)}
</a>
))}
</Container>
Expand Down

0 comments on commit 1fcaee1

Please sign in to comment.