Merge branch 'master' into add-missing-link-prop
This commit is contained in:
commit
7904e5878e
|
@ -80,12 +80,17 @@ export const DownloadsHero: FC<DownloadsHero> = ({
|
||||||
<Grid templateColumns={{ base: 'repeat(1, 1fr)', md: 'repeat(2, 1fr)' }} gap={4}>
|
<Grid templateColumns={{ base: 'repeat(1, 1fr)', md: 'repeat(2, 1fr)' }} gap={4}>
|
||||||
{Object.keys(DOWNLOAD_HEADER_BUTTONS).map((key: string) => {
|
{Object.keys(DOWNLOAD_HEADER_BUTTONS).map((key: string) => {
|
||||||
const { name, buildURL, Svg, ariaLabel } = DOWNLOAD_HEADER_BUTTONS[key];
|
const { name, buildURL, Svg, ariaLabel } = DOWNLOAD_HEADER_BUTTONS[key];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<NextLink key={key} href={buildURL} passHref legacyBehavior>
|
<NextLink key={key} href={buildURL} passHref legacyBehavior>
|
||||||
<Button as='a' variant='downloadsHeader' width={{ base: '100%' }} h={16}>
|
<Button as='a' variant='downloadsHeader' width={{ base: '100%' }} h={16} data-group>
|
||||||
<HStack spacing={4}>
|
<HStack spacing={4}>
|
||||||
<Stack alignItems='center'>
|
<Stack alignItems='center'>
|
||||||
<Svg aria-label={ariaLabel} maxH='44px' />
|
<Svg
|
||||||
|
aria-label={ariaLabel}
|
||||||
|
maxH='44px'
|
||||||
|
_groupHover={{ color: 'yellow.50' }}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Box>
|
<Box>
|
||||||
<Text textStyle='downloads-button-label'>For {name}</Text>
|
<Text textStyle='downloads-button-label'>For {name}</Text>
|
||||||
|
|
|
@ -37,7 +37,7 @@ export const HomeHero: FC = () => {
|
||||||
>
|
>
|
||||||
<Flex direction='column' alignItems='center' mr={{ md: 6 }}>
|
<Flex direction='column' alignItems='center' mr={{ md: 6 }}>
|
||||||
<NextLink href={DOWNLOADS_PAGE} passHref legacyBehavior>
|
<NextLink href={DOWNLOADS_PAGE} passHref legacyBehavior>
|
||||||
<Button variant='primary' as='a' mb={1}>
|
<Button variant='primary' as='a' mb={1} data-group>
|
||||||
<Text textStyle='homepage-primary-label'>Download</Text>
|
<Text textStyle='homepage-primary-label'>Download</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
</NextLink>
|
||||||
|
@ -49,7 +49,7 @@ export const HomeHero: FC = () => {
|
||||||
|
|
||||||
<Flex direction='column' alignItems='center'>
|
<Flex direction='column' alignItems='center'>
|
||||||
<NextLink href={DOCS_PAGE} passHref legacyBehavior>
|
<NextLink href={DOCS_PAGE} passHref legacyBehavior>
|
||||||
<Button variant='primary' as='a' mb={1}>
|
<Button variant='primary' as='a' mb={1} data-group>
|
||||||
<Text textStyle='homepage-primary-label'>Documentation</Text>
|
<Text textStyle='homepage-primary-label'>Documentation</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</NextLink>
|
</NextLink>
|
||||||
|
|
|
@ -8,9 +8,9 @@ const Icon = createIcon({
|
||||||
viewBox: `0 0 ${w} ${h}`,
|
viewBox: `0 0 ${w} ${h}`,
|
||||||
path: (
|
path: (
|
||||||
<svg width={w} height={h} fill='none' xmlns='http://www.w3.org/2000/svg'>
|
<svg width={w} height={h} fill='none' xmlns='http://www.w3.org/2000/svg'>
|
||||||
<g fill="currentColor">
|
<g fill='currentColor'>
|
||||||
<rect height="2" width="20" x="2" y="11"></rect>
|
<rect height='2' width='20' x='2' y='11'></rect>
|
||||||
<rect height="20" width="2" x="11" y="2"></rect>
|
<rect height='20' width='2' x='11' y='2'></rect>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ const Icon = createIcon({
|
||||||
viewBox: `0 0 ${w} ${h}`,
|
viewBox: `0 0 ${w} ${h}`,
|
||||||
path: (
|
path: (
|
||||||
<svg width={w} height={h} fill='none' xmlns='http://www.w3.org/2000/svg'>
|
<svg width={w} height={h} fill='none' xmlns='http://www.w3.org/2000/svg'>
|
||||||
<g fill="currentColor">
|
<g fill='currentColor'>
|
||||||
<rect height="2" width="20" x="2" y="11"></rect>
|
<rect height='2' width='20' x='2' y='11'></rect>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
)
|
)
|
||||||
|
|
|
@ -116,7 +116,10 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Flex width='100%' placeContent='space-between' gap={8}>
|
<Flex width='100%' placeContent='space-between' gap={8}>
|
||||||
<Box maxW='min(100%, 768px)' sx={{ '*:first-of-type': { marginTop: '0 !important' } }}>
|
<Box
|
||||||
|
maxW='min(100%, 768px)'
|
||||||
|
sx={{ '*:first-of-type': { marginTop: '0 !important' } }}
|
||||||
|
>
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
remarkPlugins={[gfm]}
|
remarkPlugins={[gfm]}
|
||||||
rehypePlugins={[rehypeRaw]}
|
rehypePlugins={[rehypeRaw]}
|
||||||
|
|
|
@ -77,7 +77,8 @@ export const textStyles = {
|
||||||
fontFamily: 'heading',
|
fontFamily: 'heading',
|
||||||
color: 'bg',
|
color: 'bg',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
textTransform: 'uppercase'
|
textTransform: 'uppercase',
|
||||||
|
_groupHover: { color: 'yellow.50' }
|
||||||
},
|
},
|
||||||
'home-section-link-label': {
|
'home-section-link-label': {
|
||||||
fontFamily: 'heading',
|
fontFamily: 'heading',
|
||||||
|
@ -124,13 +125,15 @@ export const textStyles = {
|
||||||
fontFamily: 'heading',
|
fontFamily: 'heading',
|
||||||
color: 'bg',
|
color: 'bg',
|
||||||
fontSize: { base: 'md', lg: 'xl' },
|
fontSize: { base: 'md', lg: 'xl' },
|
||||||
textTransform: 'uppercase'
|
textTransform: 'uppercase',
|
||||||
|
_groupHover: { color: 'yellow.50' }
|
||||||
},
|
},
|
||||||
'downloads-button-sublabel': {
|
'downloads-button-sublabel': {
|
||||||
fontFamily: 'heading',
|
fontFamily: 'heading',
|
||||||
color: 'bg',
|
color: 'bg',
|
||||||
fontSize: { base: 'xs', lg: 'sm' },
|
fontSize: { base: 'xs', lg: 'sm' },
|
||||||
textTransform: 'uppercase'
|
textTransform: 'uppercase',
|
||||||
|
_groupHover: { color: 'yellow.50' }
|
||||||
},
|
},
|
||||||
'download-tab-label': {
|
'download-tab-label': {
|
||||||
fontFamily: 'heading',
|
fontFamily: 'heading',
|
||||||
|
@ -190,7 +193,7 @@ export const textStyles = {
|
||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
lineHeight: 5,
|
lineHeight: 5,
|
||||||
letterSpacing: '1%',
|
letterSpacing: '1%'
|
||||||
},
|
},
|
||||||
'note-text': {
|
'note-text': {
|
||||||
fontFamily: 'body',
|
fontFamily: 'body',
|
||||||
|
|
Loading…
Reference in New Issue