Browse Source

renamed subheading

pull/3/head
remorses 1 year ago
parent
commit
664a95acf9
25 changed files with 40 additions and 39 deletions
  1. +1
    -1
      demos/src/pages/demos/airtable.tsx
  2. +1
    -1
      demos/src/pages/demos/datocms.tsx
  3. +1
    -1
      demos/src/pages/demos/dovetail.tsx
  4. +1
    -1
      demos/src/pages/demos/kintohub.tsx
  5. +1
    -1
      demos/src/pages/demos/prismic.tsx
  6. +1
    -1
      demos/src/pages/demos/prismic_dark.tsx
  7. +1
    -1
      demos/src/pages/demos/quovery.tsx
  8. +1
    -1
      demos/src/pages/demos/rocketchat.tsx
  9. +1
    -1
      demos/src/pages/demos/spendesk.tsx
  10. +1
    -1
      demos/src/pages/demos/testim.tsx
  11. +1
    -1
      demos/src/pages/index.tsx
  12. +3
    -3
      react-landing/src/Banner.tsx
  13. +2
    -2
      react-landing/src/Countdown.tsx
  14. +3
    -3
      react-landing/src/Faqs.tsx
  15. +3
    -2
      react-landing/src/Feature.tsx
  16. +2
    -2
      react-landing/src/FeaturesGrid.tsx
  17. +2
    -2
      react-landing/src/FeaturesList.tsx
  18. +3
    -3
      react-landing/src/Hero.tsx
  19. +1
    -1
      react-landing/src/HowItWorks.tsx
  20. +1
    -1
      react-landing/src/Pricing.tsx
  21. +3
    -3
      react-landing/src/SectionTitle.tsx
  22. +1
    -1
      react-landing/src/SubHeading.tsx
  23. +2
    -2
      react-landing/src/TestimonialsLogos.tsx
  24. +2
    -2
      react-landing/src/TestimonialsTweets.tsx
  25. +1
    -1
      react-landing/src/index.tsx

+ 1
- 1
demos/src/pages/demos/airtable.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/datocms.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/dovetail.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/kintohub.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/prismic.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/prismic_dark.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/quovery.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/rocketchat.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/spendesk.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/demos/testim.tsx View File

@ -4,7 +4,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 1
- 1
demos/src/pages/index.tsx View File

@ -7,7 +7,7 @@ import {
Hero,
Heading,
LandingProvider,
SubHeading,
Subheading,
Divider,
Col,
Feature,

+ 3
- 3
react-landing/src/Banner.tsx View File

@ -1,6 +1,6 @@
import { Heading as H, HeadingProps, Stack, Box } from '@chakra-ui/core'
import React, { FC, ReactNode } from 'react'
import { Col, Row, Heading, Spacer, PageContainer, SubHeading, Button } from '.'
import { Col, Row, Heading, Spacer, PageContainer, Subheading, Button } from '.'
import { Text } from '@chakra-ui/core'
import { removeUndefined } from './support'
@ -46,7 +46,7 @@ export function Banner({
>
{heading}
</Heading>
<SubHeading
<Subheading
lineHeight='34px'
m={0}
opacity={0.6}
@ -54,7 +54,7 @@ export function Banner({
fontSize='18px'
>
{subheading}
</SubHeading>
</Subheading>
</Stack>
<Stack w='auto' justify='center'>
<Box>{cta}</Box>

+ 2
- 2
react-landing/src/Countdown.tsx View File

@ -1,6 +1,6 @@
import { Box, Stack, StackProps } from '@chakra-ui/core'
import React, { ReactNode, cloneElement, useState, useEffect } from 'react'
import { Row, SubHeading, Heading, Button, Bullet } from '.'
import { Row, Subheading, Heading, Button, Bullet } from '.'
import {
PageContainer,
Col,
@ -50,7 +50,7 @@ export function Countdown({
>
<Bullet>{bullet}</Bullet>
<Heading fontSize='32px'>{heading}</Heading>
<SubHeading fontSize='18px'>{subheading}</SubHeading>
<Subheading fontSize='18px'>{subheading}</Subheading>
<Stack spacing='20px' direction='row'>
{Object.keys(timeLeft).map((timeName, index) => {
const remaining: string = timeLeft[timeName]

+ 3
- 3
react-landing/src/Faqs.tsx View File

@ -8,7 +8,7 @@ import {
AccordionPanel,
AccordionIcon,
} from '@chakra-ui/core'
import { Row, SubHeading } from '.'
import { Row, Subheading } from '.'
import { PageContainer, Col } from './layout'
import { useFaded } from './hooks'
@ -33,9 +33,9 @@ export function Faqs({
>
{/* <Bullett>{bullett}</Bullett> */}
<Heading fontSize='32px'>{heading}</Heading>
<SubHeading fontSize='18px' maxW='700px'>
<Subheading fontSize='18px' maxW='700px'>
{subheading}
</SubHeading>
</Subheading>
<Accordion allowToggle minWidth='100%'>
{faqs.map((x) => (
<AccordionItem key={x.question} minWidth='100%'>

+ 3
- 2
react-landing/src/Feature.tsx View File

@ -3,6 +3,7 @@ import React, { FC } from 'react'
import { Col, Row, Heading, Spacer, PageContainer } from '.'
import { Text } from '@chakra-ui/core'
import { useFaded } from './hooks'
import { Subheading } from './Subheading'
export function Feature({
@ -32,7 +33,7 @@ export function Feature({
>
{heading}
</Heading>
<Text
<Subheading
lineHeight='34px'
m={0}
opacity={0.6}
@ -40,7 +41,7 @@ export function Feature({
fontSize='18px'
>
{subheading}
</Text>
</Subheading>
</Stack>
<Col as={Faded} align='center' flex='1' minW='300px'>

+ 2
- 2
react-landing/src/FeaturesGrid.tsx View File

@ -8,7 +8,7 @@ import {
import React, { FC } from 'react'
import { Col, Row, Heading, Spacer } from '.'
import { Text } from '@chakra-ui/core'
import { SubHeading } from './SubHeading'
import { Subheading } from './Subheading'
import { PageContainer } from './layout'
import { useFaded } from './hooks'
@ -34,7 +34,7 @@ export function FeaturesGrid({
<Heading lineHeight='50px' fontWeight='medium' fontSize='36px'>
{heading}
</Heading>
<SubHeading>{subheading}</SubHeading>
<Subheading>{subheading}</Subheading>
</Stack>
<SimpleGrid
// minChildWidth='200px'

+ 2
- 2
react-landing/src/FeaturesList.tsx View File

@ -2,7 +2,7 @@ import { Heading as H, HeadingProps, Stack, Box } from '@chakra-ui/core'
import React, { FC } from 'react'
import { Col, Row, Heading, Spacer } from '.'
import { Text } from '@chakra-ui/core'
import { SubHeading } from './SubHeading'
import { Subheading } from './Subheading'
import { PageContainer } from './layout'
import { useFaded } from './hooks'
@ -33,7 +33,7 @@ export function FeaturesList({
>
{heading}
</Heading>
<SubHeading>{subheading}</SubHeading>
<Subheading>{subheading}</Subheading>
</Stack>
)}
<Stack

+ 3
- 3
react-landing/src/Hero.tsx View File

@ -1,6 +1,6 @@
import React, { Fragment } from 'react'
import { Image, Flex, Box, Stack, Text, useColorMode } from '@chakra-ui/core'
import { SubHeading } from './SubHeading'
import { Subheading } from './Subheading'
import { Heading } from './Heading'
import { Button } from './Button'
import { Col, Row, Spacer, PageContainer, FloatingElement } from './layout'
@ -45,9 +45,9 @@ export function Hero({
{bullet && <Bullet my='10px'>{bullet}</Bullet>}
<Heading fontSize='46px'>{heading}</Heading>
</Col>
<SubHeading fontSize='22px' maxW='700px'>
<Subheading fontSize='22px' maxW='700px'>
{subheading}
</SubHeading>
</Subheading>
<Stack align={['center', 'center', 'flex-start']}>
<Box>{clone(cta)}</Box>
{/* <Button

+ 1
- 1
react-landing/src/HowItWorks.tsx View File

@ -2,7 +2,7 @@ import { Heading as H, HeadingProps, Stack, Box } from '@chakra-ui/core'
import React, { FC } from 'react'
import { Col, Row, Heading, Spacer } from '.'
import { Text } from '@chakra-ui/core'
import { SubHeading } from './SubHeading'
import { Subheading } from './Subheading'
import { PageContainer } from './layout'
import { useFaded } from './hooks'

+ 1
- 1
react-landing/src/Pricing.tsx View File

@ -20,7 +20,7 @@ import {
Heading,
Spacer,
PageContainer,
SubHeading,
Subheading,
Button,
PageContainerProps,
} from '.'

+ 3
- 3
react-landing/src/SectionTitle.tsx View File

@ -1,6 +1,6 @@
import { Box, Stack, StackProps } from '@chakra-ui/core'
import React, { ReactNode, cloneElement } from 'react'
import { Row, SubHeading, Heading, Button, Bullet } from '.'
import { Row, Subheading, Heading, Button, Bullet } from '.'
import { PageContainer, Col, FloatingElement, PageContainerProps } from './layout'
import { useFaded } from './hooks'
@ -36,9 +36,9 @@ export function SectionTitle({
>
<Bullet>{bullet}</Bullet>
<Heading fontSize='32px'>{heading}</Heading>
<SubHeading fontSize='18px'>
<Subheading fontSize='18px'>
{subheading}
</SubHeading>
</Subheading>
{cta && <Col justify='center' align='center'>{clone(cta)}</Col>}
</Stack>
</PageContainer>

+ 1
- 1
react-landing/src/SubHeading.tsx View File

@ -2,7 +2,7 @@ import React, { FC, Props, Fragment } from 'react'
import { Heading as H, HeadingProps } from '@chakra-ui/core'
import { Children } from 'react'
export function SubHeading(props: HeadingProps) {
export function Subheading(props: HeadingProps) {
if (!props.children) {
return <Fragment />
}

+ 2
- 2
react-landing/src/TestimonialsLogos.tsx View File

@ -1,7 +1,7 @@
import React, { ReactNode, useContext } from 'react'
import Color from 'color-js'
import { Box, Text, Stack } from '@chakra-ui/core'
import { Row, Heading, SubHeading } from '.'
import { Row, Heading, Subheading } from '.'
import { PageContainer, Col } from './layout'
import { useFaded } from './hooks'
@ -19,7 +19,7 @@ export function TestimonialsLogos({
{(heading || subheading) && (
<Stack align='center' spacing='20px'>
<Heading as='h2'>{heading}</Heading>
<SubHeading>{subheading}</SubHeading>
<Subheading>{subheading}</Subheading>
</Stack>
)}
<Stack

+ 2
- 2
react-landing/src/TestimonialsTweets.tsx View File

@ -1,7 +1,7 @@
import React, { ReactNode, useContext } from 'react'
import Color from 'color-js'
import { Box, Text, Stack, Flex } from '@chakra-ui/core'
import { Row, Heading, SubHeading } from '.'
import { Row, Heading, Subheading } from '.'
import { PageContainer, Col } from './layout'
import { TwitterTweetEmbed } from 'react-twitter-embed'
@ -30,7 +30,7 @@ export function TestimonialsTweets({
{(heading || subheading) && (
<Stack align='center' spacing='20px'>
<Heading as='h2'>{heading}</Heading>
<SubHeading>{subheading}</SubHeading>
<Subheading>{subheading}</Subheading>
</Stack>
)}
<Col

+ 1
- 1
react-landing/src/index.tsx View File

@ -19,7 +19,7 @@ export { TestimonialsTweets } from './TestimonialsTweets'
// atoms
export { Heading } from './Heading'
export { EmailForm, MailchimpForm } from './EmailForm'
export { SubHeading } from './SubHeading'
export { Subheading } from './Subheading'
export { Button } from './Button'
export { Bullet } from './Bullet'
export { Divider } from './Divider'

Loading…
Cancel
Save