Skip to content

Commit b2ac35b

Browse files
committed
changed typography components
1 parent 1a7b1c6 commit b2ac35b

File tree

11 files changed

+81
-76
lines changed

11 files changed

+81
-76
lines changed

src/components/categorylink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {Link} from 'gatsby'
1+
import { Link } from 'gatsby'
22
import { PseudoBox } from '@chakra-ui/core';
33

4-
export default (props) => <PseudoBox
4+
export default (props) => <PseudoBox
55
as={Link}
66
bg='tint'
77
color='black.1'

src/components/developmentServices.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import { Box, Text } from '@chakra-ui/core';
2+
import { Box } from '@chakra-ui/core';
3+
import { P } from './typography'
34

45
import Title from './title';
56

@@ -16,9 +17,9 @@ export default () => (
1617
>
1718
Fast, modular and Bug free React JS development service
1819
</Title>
19-
<Text>
20+
<P>
2021
We develop your application with atleast 30% faster than other development companies.
21-
</Text>
22+
</P>
2223

2324
<Title
2425
fontSize={[2, 'desktop.2']}
@@ -28,9 +29,9 @@ export default () => (
2829
>
2930
Javascript Lovers
3031
</Title>
31-
<Text>
32+
<P>
3233
We specialise in servicing modern JavaScript based web & mobile applications. We are experts in developing applications in React.js, AngularJS, Node.js
33-
</Text>
34+
</P>
3435

3536
<Title
3637
fontSize={[2, 'desktop.2']}
@@ -40,9 +41,9 @@ export default () => (
4041
>
4142
Expert React JS Developers
4243
</Title>
43-
<Text>
44+
<P>
4445
We have a set of skilful React JS developers who are updated with current React Eco System
45-
</Text>
46+
</P>
4647

4748
<Title
4849
fontSize={[2, 'desktop.2']}
@@ -52,8 +53,8 @@ export default () => (
5253
>
5354
Best React JS development Service history
5455
</Title>
55-
<Text>
56+
<P>
5657
We have 15+ React projects delivered to clients in quick time
57-
</Text>
58+
</P>
5859
</Box>
5960
);

src/components/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import styled from '@emotion/styled';
4-
import {Link} from 'gatsby';
4+
import { Link } from 'gatsby';
55

66
const Wrapper = styled('div')`
77
display: flex;

src/components/project.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @jsx jsx */
22
import { jsx } from "@emotion/core"
3-
import { Box, Flex, Text } from "@chakra-ui/core"
3+
import { Box, Flex } from "@chakra-ui/core"
4+
import { P } from './typography'
45
import PlainLink from "./link"
56
import NonStretchedImage from "./nonStretchedImage"
67
import Title from './title'
@@ -31,7 +32,7 @@ export default ({ title, image, description, link, reverse = false }) => (
3132
</PlainLink>
3233

3334
<Box mt={[1, 2]}>
34-
<Text>{description}</Text>
35+
<P>{description}</P>
3536
</Box>
3637
</Flex>
3738
</Flex>

src/pages/our-process.mdx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import SEO from './../components/seo'
22
import VimeoVideoContainer from './../components/vimeoVideoContainer'
3-
import { Flex, Box, Text } from "@chakra-ui/core"
3+
import { Flex, Box } from "@chakra-ui/core"
4+
import { H4, P } from "../components/typography"
45

56
<SEO
67
title="Agile Software Development for Web and Mobile Development"
@@ -14,8 +15,8 @@ import { Flex, Box, Text } from "@chakra-ui/core"
1415
## What clients provide us
1516
<Flex flexDirection="column" mt="2" >
1617
<Box width={'100%'} pr="1">
17-
<Text as='h4' fontFamily='heading'>1. App Design</Text>
18-
<Text>We accept designs in Figma, Zeplin, Sketch, Invision and etc.</Text>
18+
<H4>1. App Design</H4>
19+
<P>We accept designs in Figma, Zeplin, Sketch, Invision and etc.</P>
1920
</Box>
2021
<Box width={'100%'}>
2122
<iframe
@@ -32,8 +33,8 @@ import { Flex, Box, Text } from "@chakra-ui/core"
3233

3334
<Flex flexDirection="column" mt="2" >
3435
<Box width={'100%'} pr="1">
35-
<Text as='h4' fontFamily='heading'>1. Design system written in React</Text>
36-
<Text>Design system is a collection of reusable components written in React, guided by clear standards like Airbnb, that can be assembled together to build your applications.</Text>
36+
<H4>1. Design system written in React</H4>
37+
<P>Design system is a collection of reusable components written in React, guided by clear standards like Airbnb, that can be assembled together to build your applications.</P>
3738
</Box>
3839
<Box width={'100%'}>
3940
<iframe
@@ -48,11 +49,11 @@ import { Flex, Box, Text } from "@chakra-ui/core"
4849

4950
<Flex flexDirection="column" mt="2" >
5051
<Box width={'100%'} pr="1">
51-
<Text as='h4' fontFamily='heading'>2. Backend API tests and documentation on Postman</Text>
52-
<Text>
52+
<H4>2. Backend API tests and documentation on Postman</H4>
53+
<P>
5354
Our backend developers builds API schema and tests on Postman before the actual API development starts.
5455
The frontend development team starts development with no wait, by making use of the mock API server and documentation provided by Postman for our API schema.
55-
</Text>
56+
</P>
5657
</Box>
5758
<VimeoVideoContainer>
5859
<iframe
@@ -68,11 +69,11 @@ import { Flex, Box, Text } from "@chakra-ui/core"
6869
</Flex>
6970

7071
<Flex flexDirection="column" mt="3">
71-
<Box width={'100%'} pr="1">
72-
<Text as='h4' fontFamily='heading'>3. App developed with React</Text>
73-
<Text>Based on the design, a complete React app developed with the help of design-system and APIs created above. The code will comply with Airbnb standards.</Text>
72+
<Box width='100%' pr="1">
73+
<H4>3. App developed with React</H4>
74+
<P>Based on the design, a complete React app developed with the help of design-system and APIs created above. The code will comply with Airbnb standards.</P>
7475
</Box>
75-
<Box width={'100%'}>
76+
<Box width='100%'>
7677
<iframe
7778
src="https://codesandbox.io/embed/vigorous-platform-9b61d?autoresize=1&codemirror=1&fontsize=14&theme=dark&view=editor"
7879
style="width:100%; height:400px; border:0; border-radius: 4px; overflow:hidden;"
@@ -86,8 +87,8 @@ import { Flex, Box, Text } from "@chakra-ui/core"
8687

8788
<Flex flexDirection="column" mt="3">
8889
<Box width={'100%'} pr="1">
89-
<Text as='h4' fontFamily='heading'>4. Deployed Website / Mobile App</Text>
90-
<Text>Cloud hosting is done for websites. Mobile Apps are published to Android / iOS stores.</Text>
90+
<H4>4. Deployed Website / Mobile App</H4>
91+
<P>Cloud hosting is done for websites. Mobile Apps are published to Android / iOS stores.</P>
9192
</Box>
9293
<Box width={'100%'}>
9394
<iframe

src/pages/solutions.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import Layout from "../templates/layout"
66
import Link from "../components/link"
77
import SEO from "../components/seo"
88
import Title from "../components/title"
9-
import { Box, Flex, Text } from '@chakra-ui/core';
9+
import { Box, Flex } from '@chakra-ui/core';
10+
import { H1, H4, P } from "../components/typography"
1011

1112
const SolutionsContainer = ({ title, children }) => (
1213
<Box mb='5'>
@@ -49,7 +50,7 @@ const Solution = ({ title, image, link }) => (
4950
objectPosition="50% 50%"
5051
alt={title}
5152
/>
52-
<Text as='h4' fontFamily='heading' textAlign="center">{title}</Text>
53+
<H4 textAlign="center">{title}</H4>
5354
</Flex>
5455
</Box>
5556
</Link>
@@ -88,8 +89,8 @@ const SolutionPage = ({ data }) => (
8889
url="https://codebrahma.com/solutions"
8990
/>
9091
<Box mb='4'>
91-
<Text as='h1' fontFamily='heading'>Our Solutions</Text>
92-
<Text>We have great expertise in building web and mobile apps.</Text>
92+
<H1>Our Solutions</H1>
93+
<P>We have great expertise in building web and mobile apps.</P>
9394
</Box>
9495

9596
<SolutionsContainer title="Web">

src/pages/thank-you.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from "react"
22
import { Link } from "gatsby"
3-
import { Box, Text } from '@chakra-ui/core';
3+
import { Box } from '@chakra-ui/core';
44
import { Main } from "theme-ui"
55
import SEO from "../components/seo"
66
import { Helmet } from "react-helmet"
7+
import { P } from "../components/typography"
78

89
const ThankYou = () => {
910
return (
@@ -30,16 +31,16 @@ const ThankYou = () => {
3031
/>
3132
<Main mt="7">
3233
<Box textAlign="center">
33-
<Text fontSize="6" mb="4">
34+
<P fontSize="6" mb="4">
3435
Thank You!
35-
</Text>
36-
<Text fontSize="3" mb="4">
36+
</P>
37+
<P fontSize="3" mb="4">
3738
We will get back to you within 24 hours. Our typical response time
3839
is 5 minutes.
39-
</Text>
40-
<Text fontSize="3">
40+
</P>
41+
<P fontSize="3">
4142
<Link to="/">Back to Homepage</Link>
42-
</Text>
43+
</P>
4344
</Box>
4445
</Main>
4546
</>

src/pages/work.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { graphql } from "gatsby"
44
import Layout from "../templates/layout"
55
import SEO from "../components/seo"
66
import Project from "../components/project"
7-
import { Text } from '@chakra-ui/core';
7+
import { I, H1, P } from "../components/typography"
88

99
const WorkPage = ({ data }) => (
1010
<Layout>
@@ -38,8 +38,8 @@ const WorkPage = ({ data }) => (
3838
image={data.serverless_screenshot.publicURL}
3939
url="https://codebrahma.com/work"
4040
/>
41-
<Text as="h1" fontFamily='heading'>Our Work</Text>
42-
<Text>We have built 50+ apps over the last 6 years. We have listed a few</Text>
41+
<H1>Our Work</H1>
42+
<P>We have built 50+ apps over the last 6 years. We have listed a few</P>
4343
<Project
4444
title="Rippling"
4545
description="Codebrahma built the complete browser and mobile app for this fast growing
@@ -64,7 +64,7 @@ const WorkPage = ({ data }) => (
6464
<br />
6565
<br />
6666
<br />
67-
<Text as='i'>And many more projects!!</Text>
67+
<I>And many more projects!!</I>
6868
</Layout>
6969
)
7070

src/templates/blog-post-layout.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import Layout from "./layout"
33
import { MDXRenderer } from "gatsby-plugin-mdx"
44
import { graphql } from "gatsby"
55
import Helmet from "react-helmet"
6-
import { Flex, Box, Text } from "@chakra-ui/core"
6+
import { Flex, Box } from "@chakra-ui/core"
7+
import { H1, I } from "../components/typography"
78
import { getCategory, slugify } from "../utils"
89
import CategoryLink from "../components/categorylink"
910
import PlainLink from "../components/link"
@@ -13,11 +14,11 @@ const Sidebar = ({ author, category, tags }) => (
1314
<div>
1415
<Box my={2}>
1516
<Box display='flex' fontSize={[0, 0]} justifyContent="center" lineHeight='0'>
16-
<Text as='h1'>Written by</Text>
17+
<H1 as='h1'>Written by</H1>
1718
</Box>
1819
<Flex justifyContent="center" mt="0.5rem">
1920
<PlainLink to={`/author/${slugify(author)}`}>
20-
<Text as='i'>{author}</Text>
21+
<I>{author}</I>
2122
<br />
2223
</PlainLink>
2324
</Flex>
@@ -52,7 +53,7 @@ const Sidebar = ({ author, category, tags }) => (
5253
return (
5354
<Box key={tag} p="0.125rem">
5455
<PlainLink key={tag} to={`/tag/${slug}`}>
55-
<Text as='i'>#{slug}</Text>
56+
<I>#{slug}</I>
5657
</PlainLink>
5758
</Box>
5859
)
@@ -89,7 +90,7 @@ class BlogLayout extends React.Component {
8990
<Flex flexWrap="wrap">
9091
<Box width={["100%", 2 / 3]}>
9192
<Box mb={4}>
92-
<Text as='h1'>{title}</Text>
93+
<H1>{title}</H1>
9394
</Box>
9495
<MDXRenderer>{body}</MDXRenderer>
9596
</Box>

src/templates/preview.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { jsx } from '@emotion/core'
22
/** @jsx jsx */
33
import styled from '@emotion/styled'
4-
import { PseudoBox, Box, Text } from '@chakra-ui/core'
4+
import { PseudoBox, Box } from '@chakra-ui/core'
5+
import { H3, H4, P } from "../components/typography"
56
import Layout from '../templates/layout'
67
import PlainLink from '../components/link'
78
import { Link } from 'gatsby'
@@ -82,29 +83,29 @@ const HeadingLink = (props) => (
8283
// refactoring the Link beautifully with invert etc
8384
const Blog = ({ frontmatter })=>(
8485
<Box>
85-
<Text as='h3'>
86+
<H3>
8687
<HeadingLink ml='-5px' to={frontmatter.link}>
8788
{frontmatter.title}
8889
</HeadingLink>
89-
</Text>
90+
</H3>
9091
{getCategory(frontmatter) && (
9192
<CategoryLink to={`/category/${slugify(getCategory(frontmatter))}`}>
9293
{getCategory(frontmatter)}
9394
</CategoryLink>
9495
)}
9596
<Box marginTop='2'>
96-
<Text>{frontmatter.description}</Text>
97+
<P>{frontmatter.description}</P>
9798
<Box marginTop='1'>
98-
<Text fontSize={[0,0]} color='black.2'>
99+
<P fontSize={[0,0]} color='black.2'>
99100
{getTags(frontmatter) && getTags(frontmatter).map((tag,i)=> {
100101
const slug = slugify(tag)
101102
return (
102103
<TagLink key={tag} to={`/tag/${slug}`}>
103-
<Text as='i'>#{slug}</Text>
104+
<I>#{slug}</I>
104105
</TagLink>
105106
)
106107
})}
107-
</Text>
108+
</P>
108109
</Box>
109110
</Box>
110111
<Box marginBottom={3} marginTop={1}>
@@ -139,15 +140,15 @@ const JournalPage = ({
139140
value,
140141
})
141142
} />
142-
<Text as='h4' color='black.1'>
143+
<H4 color='black.1'>
143144
{getHeading({
144145
isFirstPage,
145146
currentPage,
146147
totalPages,
147148
type,
148149
value,
149150
})}
150-
</Text>
151+
</H4>
151152
<Box marginTop={6} width={['100%', 2/3]}>
152153
{blogs.map((blog,i) => (
153154
<div key={blog.childMdx.frontmatter.title}>

0 commit comments

Comments
 (0)