diff --git a/src/pages/developers/learning-tools.tsx b/src/pages/developers/learning-tools.tsx index 328b65ac382..150a6e578a7 100644 --- a/src/pages/developers/learning-tools.tsx +++ b/src/pages/developers/learning-tools.tsx @@ -1,78 +1,96 @@ // Library imports import React, { useEffect, useState } from "react" -import styled from "@emotion/styled" import { graphql, PageProps } from "gatsby" import { useTranslation } from "gatsby-plugin-react-i18next" import { shuffle } from "lodash" +import { Box, Flex, Heading, HeadingProps, Text } from "@chakra-ui/react" // Component imports import PageMetadata from "../../components/PageMetadata" import Translation from "../../components/Translation" import ButtonLink from "../../components/ButtonLink" import InfoBanner from "../../components/InfoBanner" import CalloutBanner from "../../components/CalloutBanner" -import { Content, Page } from "../../components/SharedStyledComponents" import FeedbackCard from "../../components/FeedbackCard" import LearningToolsCardGrid from "../../components/LearningToolsCardGrid" // Util imports import { getImage } from "../../utils/image" // Type imports -import { Context, LearningTool } from "../../types" +import type { ChildOnlyProp, Context, LearningTool } from "../../types" -// Styled components -const StyledPage = styled(Page)` - margin-top: 4rem; -` +const Page = (props: ChildOnlyProp) => ( + +) -const Header = styled.header` - display: flex; - flex-direction: column; - align-items: center; - text-align: center; - max-width: 896px; - padding: 0 2rem; -` -const H1 = styled.h1` - margin: 2rem 0 0; - margin-top: 0; - color: ${(props) => props.theme.colors.text}; - font-style: normal; - font-family: ${(props) => props.theme.fonts.monospace}; - text-transform: uppercase; - font-weight: 600; - font-size: 2rem; - line-height: 1.4; - text-align: center; -` +const Header = (props: ChildOnlyProp) => ( + +) -const Subtitle = styled.h2` - font-size: 1.25rem; - line-height: 1.4; - font-weight: 400; - color: ${(props) => props.theme.colors.text300}; - max-width: 55ch; - margin-bottom: 0.5rem; - margin-top: 1rem; -` +const H1 = (props: ChildOnlyProp) => ( + +) -const SubtitleTwo = styled(Subtitle)` - margin-top: 0rem; -` +const Subtitle = (props: HeadingProps) => ( + +) -const StackContainer = styled(Content)` - border: 1px solid ${(props) => props.theme.colors.border}; - justify-content: flex-start; - border-radius: 4px; - padding: 3rem 2rem; - margin: 2rem; - width: 96%; - background: ${(props) => props.theme.colors.ednBackground}; - @media (max-width: ${(props) => props.theme.breakpoints.s}) { - width: 100%; - margin-left: 0rem; - margin-right: 0rem; - border-radius: 0px; - } -` +const SubtitleTwo = (props: ChildOnlyProp) => + +const ContentBox = (props: ChildOnlyProp) => ( + +) + +const StackContainer = (props: ChildOnlyProp) => ( + +) // Page component const LearningToolsPage = ({ @@ -260,7 +278,7 @@ const LearningToolsPage = ({ ] return ( - + -

+ -

+ @@ -289,21 +307,21 @@ const LearningToolsPage = ({ -

+ -

+ -

+ -

+
- + -
+ -
+
- - + + - - + + ) }