diff --git a/src/pages/contributing/translation-program/contributors.tsx b/src/pages/contributing/translation-program/contributors.tsx index d72c66cda6a..712ec36ae61 100644 --- a/src/pages/contributing/translation-program/contributors.tsx +++ b/src/pages/contributing/translation-program/contributors.tsx @@ -1,6 +1,16 @@ // Libraries import React from "react" -import styled from "@emotion/styled" +import { + Box, + BoxProps, + Flex, + Heading, + HeadingProps, + ListItem, + SimpleGrid, + Text, + UnorderedList, +} from "@chakra-ui/react" import { useIntl } from "react-intl" import { graphql, PageProps } from "gatsby" import type { Context } from "../../../types" @@ -10,37 +20,15 @@ import Breadcrumbs from "../../../components/Breadcrumbs" import Link from "../../../components/Link" import Translation from "../../../components/Translation" import PageMetadata from "../../../components/PageMetadata" -import { - Content, - ListItem, - Page, -} from "../../../components/SharedStyledComponents" // Utils import { translateMessageId } from "../../../utils/translations" import FeedbackCard from "../../../components/FeedbackCard" -// Styles -const HorizontalUl = styled.ul` - display: grid; - grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; - - @media (max-width: ${(props) => props.theme.breakpoints.xl}) { - grid-template-columns: 1fr 1fr 1fr 1fr; - } - - @media (max-width: ${(props) => props.theme.breakpoints.l}) { - grid-template-columns: 1fr 1fr 1fr; - } - - @media (max-width: ${(props) => props.theme.breakpoints.m}) { - grid-template-columns: 1fr 1fr; - } - - @media (max-width: ${(props) => props.theme.breakpoints.s}) { - grid-template-columns: 1fr; - } -` +const Content = (props: BoxProps) => +const ContentHeading = (props: HeadingProps) => ( + +) const Contributors = ({ data, @@ -83,7 +71,7 @@ const Contributors = ({ ) ?? [] return ( - + -

+ -

-

- + + + {" "} {translatorData.length} - -

-

+ + + -

-

+ + -

-

+ + -

-

+ + {" "} . -

-

+ + -

- + + {translatorData .map(({ user }) => user.username) .sort((user1, user2) => user1.toLowerCase().localeCompare(user2.toLowerCase()) ) .map((user) => { - return {user} + return ( + + {user} + + ) })} - -

+ + {" "} . -

+ -
+ ) }