Skip to content

Commit 097c699

Browse files
committed
update subtitles to paragraph elements
currently rendering as divs, despite being text elements, thus being skipped by crawlers
1 parent a13c781 commit 097c699

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

src/components/PageHero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { ReactNode } from "react"
2-
import { Box, Flex, Heading, Wrap, WrapItem } from "@chakra-ui/react"
2+
import { Box, Flex, Heading, Text, Wrap, WrapItem } from "@chakra-ui/react"
33

44
import { GatsbyImage, IGatsbyImageData } from "gatsby-plugin-image"
55

@@ -82,15 +82,15 @@ const PageHero: React.FC<IProps> = ({
8282
>
8383
{header}
8484
</Heading>
85-
<Box
85+
<Text
8686
fontSize={{ base: "xl", lg: "2xl" }}
8787
lineHeight={1.4}
8888
color="text200"
8989
mt={4}
9090
mb={8}
9191
>
9292
{subtitle}
93-
</Box>
93+
</Text>
9494
{buttons && (
9595
<Wrap spacing={2} overflow="visible">
9696
{buttons.map((button, idx) => {

src/pages-conditional/dapps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const ImageContainer = (props: Pick<FlexProps, "children" | "id">) => (
146146
)
147147

148148
const Subtitle = (props: ChildOnlyProp) => (
149-
<Box
149+
<Text
150150
fontSize={{ base: "xl", lg: "2xl" }}
151151
lineHeight="140%"
152152
color="text200"

src/pages-conditional/eth.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ const StyledTwoColumnContent = styled(TwoColumnContent)`
5656
align-items: flex-start;
5757
`
5858

59-
const Subtitle = styled.div`
59+
const Subtitle = styled.p`
6060
font-size: 1.25rem;
6161
line-height: 140%;
6262
color: ${(props) => props.theme.colors.text200};
6363
`
64-
const SubtitleTwo = styled.div`
64+
const SubtitleTwo = styled.p`
6565
font-size: 1.25rem;
6666
line-height: 140%;
6767
margin-bottom: 2rem;

src/pages-conditional/what-is-ethereum.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const Title = styled.h1`
7070
color: ${({ theme }) => theme.colors.textTableOfContents};
7171
`
7272

73-
const Subtitle = styled.div`
73+
const Subtitle = styled.p`
7474
font-size: 1.25rem;
7575
line-height: 140%;
7676
color: ${({ theme }) => theme.colors.text200};

src/pages/bug-bounty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const H2 = (props: ChildOnlyProp) => (
6969
)
7070

7171
const Subtitle = (props: ChildOnlyProp) => (
72-
<Box
72+
<Text
7373
fontSize="1.5rem"
7474
lineHeight="140%"
7575
color="text200"

src/pages/community.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
HeadingProps,
77
Image,
88
SimpleGrid,
9+
Text,
910
useTheme,
1011
} from "@chakra-ui/react"
1112
import { GatsbyImage } from "gatsby-plugin-image"
@@ -99,9 +100,9 @@ const ImageContainer = ({ children }: ChildOnlyProp) => {
99100

100101
const Subtitle = ({ children }: ChildOnlyProp) => {
101102
return (
102-
<Box mb={8} fontSize={{ base: "md", sm: "xl" }} lineHeight={1.4}>
103+
<Text mb={8} fontSize={{ base: "md", sm: "xl" }} lineHeight={1.4}>
103104
{children}
104-
</Box>
105+
</Text>
105106
)
106107
}
107108

src/pages/developers/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { graphql, PageProps } from "gatsby"
44
import { useTranslation } from "gatsby-plugin-react-i18next"
55
import {
66
Box,
7-
BoxProps,
87
chakra,
98
Flex,
109
Heading,
11-
Hide,
1210
Image,
1311
SimpleGrid,
12+
Text,
13+
TextProps,
1414
useColorModeValue,
1515
} from "@chakra-ui/react"
1616

@@ -102,8 +102,8 @@ const Content = (props: ChildOnlyProp) => (
102102
<Box py={4} px={8} w="full" {...props} />
103103
)
104104

105-
const Subtitle = (props: BoxProps) => (
106-
<Box fontSize="xl" lineHeight="140%" color="text200" {...props} />
105+
const Subtitle = (props: TextProps) => (
106+
<Text fontSize="xl" lineHeight="140%" color="text200" {...props} />
107107
)
108108

109109
const MonoSubtitle = (props: ChildOnlyProp) => <Box as="h2" mb={0} {...props} />

src/pages/wallets/find-wallet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import type { ChildOnlyProp } from "../../types"
4040

4141
const Subtitle = ({ children }: ChildOnlyProp) => {
4242
return (
43-
<Box
43+
<Text
4444
fontSize="xl"
4545
lineHeight={1.4}
4646
color="text200"
@@ -49,7 +49,7 @@ const Subtitle = ({ children }: ChildOnlyProp) => {
4949
}}
5050
>
5151
{children}
52-
</Box>
52+
</Text>
5353
)
5454
}
5555

0 commit comments

Comments
 (0)