Skip to content

Commit 7bd89aa

Browse files
committed
changes based on typography
1 parent 7da7232 commit 7bd89aa

File tree

4 files changed

+12
-36
lines changed

4 files changed

+12
-36
lines changed

src/components/logo.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
import Link from "./link"
22
import React from "react"
3-
import { Box } from "@chakra-ui/core"
3+
import { H2 } from "../components/typography";
44

55
export const Logo = ({ title }) => (
6-
<Box
7-
as='h2'
8-
marginTop={[0, 0]}
9-
fontFamily='TiemposHeadline'
10-
fontSize={[4, 'desktop.4']}
11-
>
12-
<Link
13-
to="/"
14-
>
15-
{title}
16-
</Link>
17-
</Box>
6+
<H2 marginTop={[0, 0]} >
7+
<Link to="/">{title}</Link>
8+
</H2>
189
)

src/components/typo.js renamed to src/components/typography.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,6 @@ const Li = (props) => (
123123
/>
124124
)
125125

126-
const Title = (props) => (
127-
<PseudoBox
128-
as='span'
129-
fontFamily="heading"
130-
fontSize={[4, 'desktop.4']}
131-
lineHeight={2}
132-
mt={[3, 4]}
133-
mb={1}
134-
p={0}
135-
pb="2px"
136-
borderBottom='1px'
137-
borderColor="black.0"
138-
{...props}
139-
/>
140-
);
141-
142126
export {
143-
H1, H2, H3, H4, H5, Title, P, B, Em, I, Ul, Ol, Li
127+
H1, H2, H3, H4, H5, P, B, Em, I, Ul, Ol, Li
144128
}

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { jsx } from "@emotion/core"
44
import { graphql, navigate } from "gatsby"
55
import Helmet from "react-helmet"
66
import { Box, Text, Flex } from '@chakra-ui/core';
7-
import { H1, H3, P } from '../components/typo';
7+
import { H1, H3, P } from '../components/typography';
88

99
import Layout from "../templates/layout"
1010
import SEO from "../components/seo"

src/pages/open-source-contributions.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { jsx } from "@emotion/core"
33
import styled from "@emotion/styled"
44
import Layout from "../templates/layout"
55
import { Box, Flex, PseudoBox } from '@chakra-ui/core';
6+
import { H4, P, H2 } from "../components/typography";
67
import { Link, graphql } from "gatsby"
78
import Img from "gatsby-image"
89
import SEO from "../components/seo"
@@ -66,11 +67,11 @@ const Card = ({ name, description, github, demo, image }) => {
6667
alt={name}
6768
/>
6869
</Box>
69-
<Text as='h4' m='0' padding="1" fontFamily='heading'>{name}</Text>
70+
<H4 as='h4' m='0' padding="1" fontFamily='heading'>{name}</H4>
7071
</Flex>
7172
<Box height='2px' bg='black.2'/>
7273
</div>
73-
<Text p="1">{description}</Text>
74+
<P p="1">{description}</P>
7475
<Flex direction='row' justify='space-between' align='center' margin='0.5rem 1rem'>
7576
<OutboundLink as="a" href={github} target="_blank">
7677
GitHub
@@ -88,7 +89,7 @@ const Card = ({ name, description, github, demo, image }) => {
8889
const OpenSource = props => {
8990
return (
9091
<Layout>
91-
<h2 as='h2'>Our Open Source Contributions</h2>
92+
<H2 as='h2'>Our Open Source Contributions</H2>
9293
<SEO
9394
title="Our Open Source Contributions | Codebrahma"
9495
description="Codebrahma specializes in building custom web applications using technologies - ReactJS, Ruby on Rails, NodeJS, React Native, Android, iOS, Serverless. Checkout our open source contributions."
@@ -107,10 +108,10 @@ const OpenSource = props => {
107108
]}
108109
url="https://codebrahma.com/open-source-contributions"
109110
/>
110-
<Text pt="2">
111+
<P pt="2">
111112
Codebrahma dev team regularly contributes to open source. Some of our contributions can be found below. For more, you can checkout our&nbsp;
112113
<PlainLink as="a" href="https://github.com/Codebrahma" target="_blank" withUnderline>github page</PlainLink>.
113-
</Text>
114+
</P>
114115
<Flex wrap='wrap'>
115116
{projects.map(({ name, description, github, demo, image }) => (
116117
<Card

0 commit comments

Comments
 (0)