diff --git a/src/components/elements/MultiCodeEditor/MultiCodeEditor.js b/src/components/elements/MultiCodeEditor/MultiCodeEditor.js index 2d4891824..4b96d1021 100644 --- a/src/components/elements/MultiCodeEditor/MultiCodeEditor.js +++ b/src/components/elements/MultiCodeEditor/MultiCodeEditor.js @@ -41,12 +41,7 @@ const ActionComponent = ({ diff --git a/src/components/elements/Toggle/Toggle.js b/src/components/elements/Toggle/Toggle.js index 004b3112f..32aa66bb1 100644 --- a/src/components/elements/Toggle/Toggle.js +++ b/src/components/elements/Toggle/Toggle.js @@ -13,7 +13,7 @@ const ButtonToggle = styled(Button)` px: 0, borderRadius: 0, _hover: { - cursor: props => (props.active ? 'auto' : 'pointer'), + cursor: props => (props.$active ? 'auto' : 'pointer'), boxShadow: 'none' } })} @@ -46,7 +46,7 @@ function Toggle ({ onChange, children, defaultValue, ...props }) { px: 3 })} > - + { return ( {chunk(links, chunkSize).map((chunkBrands, chunkIndex) => { const isEven = chunkIndex % 2 === 0 diff --git a/src/pages/changelog.js b/src/pages/changelog.js index a67a11b87..864f55e10 100644 --- a/src/pages/changelog.js +++ b/src/pages/changelog.js @@ -3,7 +3,7 @@ import { Caption, Layout } from 'components/patterns' import Markdown, { H1 } from 'components/markdown' import { useChangelog } from 'components/hook' import { cdnUrl } from 'helpers' -import { layout } from 'theme' +import { layout, theme } from 'theme' import React from 'react' export const Head = () => ( @@ -18,20 +18,28 @@ const ChangelogPage = () => { return ( - - Changelog + + Changelog We’re constantly improving the platform. See here notable changes in our lineup of products & improvements over the time. - + {changelog.map(({ date, notes }) => { return ( diff --git a/src/pages/community.js b/src/pages/community.js index 4342c5bc6..cc9373ca7 100644 --- a/src/pages/community.js +++ b/src/pages/community.js @@ -1,7 +1,7 @@ import { Meta, Heading, Container, Flex } from 'components/elements' import { Caption, Layout, Chat } from 'components/patterns' import { cdnUrl } from 'helpers' -import { layout } from 'theme' +import { layout, theme } from 'theme' import React from 'react' export const Head = () => ( @@ -13,21 +13,35 @@ export const Head = () => ( const CommunityPage = () => ( - + Community Direct support via chat with guaranteed response from exclusive top-tier engineers. - + diff --git a/src/pages/oss.js b/src/pages/oss.js index e993312d4..3b521bd14 100644 --- a/src/pages/oss.js +++ b/src/pages/oss.js @@ -18,7 +18,7 @@ const OssPage = () => { const repositories = useOss() return ( - + CARD_WIDTH) const maxWidth = width.map(w => toPx(toRaw(space[3]) * 4 + w * CARDS_PER_ROW)) -const CustomLink = styled(Link)` - color: inherit; - :hover:not([disabled]) { - color: inherit; - } -` - export const Head = () => ( ( ) const RecipesPage = () => { - const [counters, setCounters] = useState(null) + const [counters, setCounters] = useState() const isLoaded = counters !== null useEffect(() => { @@ -61,46 +52,48 @@ const RecipesPage = () => { }, []) return ( - - + + - + Recipes Just start with code — Instant integration, automating any site in a few lines. {recipes.map(([recipeName, meta], index) => { const count = isLoaded && counters[index] @@ -114,64 +107,81 @@ const RecipesPage = () => { return ( - - - + + + - + {meta.name} {description} - + {formatNumber(count)} - + ) })} Miss something? - + diff --git a/src/pages/user-agents.js b/src/pages/user-agents.js index 3b6bfba8f..9baed3eb5 100644 --- a/src/pages/user-agents.js +++ b/src/pages/user-agents.js @@ -1,7 +1,7 @@ import { ArrowLink, Caption, Layout } from 'components/patterns' import Markdown from 'components/markdown' import React, { useState } from 'react' -import { layout } from 'theme' +import { layout, theme } from 'theme' import { Toggle, Container, Flex, Heading, Meta } from 'components/elements' @@ -30,44 +30,57 @@ const UserAgentsPage = () => { return ( - - + + User Agents Most common `user-agent` used on Internet. - setType(value === 'User Agent' ? 'user' : 'crawler')} + setType(value === 'User Agent' ? 'user' : 'crawler') + } > {['User Agent', 'Crawler Agent']} - - - Download - + + Download See on GitHub - + {content} diff --git a/src/templates/doc/index.js b/src/templates/doc/index.js index eb4aef021..4366800d3 100644 --- a/src/templates/doc/index.js +++ b/src/templates/doc/index.js @@ -1,7 +1,7 @@ import { getActiveRouteName } from 'components/patterns/Aside/constants' import Markdown, { H1, ProBadge } from 'components/markdown' import { Layout, Aside } from 'components/patterns' -import { fontSizes, colors, layout } from 'theme' +import { fontSizes, layout, theme } from 'theme' import { formatDate } from 'helpers' import React from 'react' @@ -13,44 +13,51 @@ const DocTemplate = ({ meta, content, githubUrl, ...props }) => { return (