Skip to content

Commit 55d6694

Browse files
committed
Updated footer links
1 parent 84616ed commit 55d6694

File tree

5 files changed

+48
-10
lines changed

5 files changed

+48
-10
lines changed

src/components/textWithIcon.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import styled from '@emotion/styled';
2+
import { P } from 'bricks';
3+
4+
export default styled(P)`
5+
display: flex;
6+
align-items: flex-start;
7+
margin-bottom: 10px;
8+
9+
img {
10+
margin-top: 4px;
11+
}
12+
`;

src/images/logos/location.svg

Lines changed: 11 additions & 0 deletions
Loading

src/images/logos/mail.svg

Lines changed: 3 additions & 0 deletions
Loading

src/images/logos/phone.svg

Lines changed: 3 additions & 0 deletions
Loading

src/templates/layout.js

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ import {
2424
} from "bricks"
2525
import styled from "@emotion/styled"
2626
import { Global, css } from "@emotion/core"
27-
import Header from "./header"
27+
import Img from "gatsby-image"
2828
import { Helmet } from "react-helmet"
29-
import theme from "../theme"
3029
import { useThemeUI } from "bricks"
30+
import Header from "./header"
31+
import theme from "../theme"
3132
import PlainLink from "../components/link"
32-
import Img from "gatsby-image"
33+
import TextWithIcon from "../components/textWithIcon"
34+
import mailIcon from './../images/logos/mail.svg'
35+
import phoneIcon from './../images/logos/phone.svg'
36+
import locationIcon from './../images/logos/location.svg'
3337

3438
const socialLinks = [
3539
{
@@ -90,16 +94,20 @@ const Footer = ({ images }) => (
9094
</Box>
9195
</Box>
9296
<Box width={[1, 1 / 4]} mt={[2, 0]}>
93-
<P>
97+
<TextWithIcon>
98+
<img src={mailIcon} />
99+
&nbsp;
94100
<PlainLink as="a" href="mailto:hello@codebrahma.com">
95101
hello@codebrahma.com
96102
</PlainLink>
97-
<br />
103+
</TextWithIcon>
104+
<TextWithIcon>
105+
<img src={phoneIcon} />
106+
&nbsp;
98107
<PlainLink as="a" href="tel:+14845060634">
99108
+1 484 506 0634
100109
</PlainLink>
101-
<br />
102-
</P>
110+
</TextWithIcon>
103111
<Box mt="1">
104112
<Flex flexDirection={["row"]} alignItems="center">
105113
{socialLinks.map(({ name, link, image }) => {
@@ -119,7 +127,9 @@ const Footer = ({ images }) => (
119127
</Box>
120128
</Box>
121129
<Box width={[1, 1 / 4]} mt={[2, 0]}>
122-
<P>
130+
<TextWithIcon>
131+
<img src={locationIcon} />
132+
&nbsp;
123133
<PlainLink
124134
as="a"
125135
href="http://maps.google.com/?q=Codebrahma 156, 2nd Street San Francisco, CA 94105"
@@ -128,9 +138,8 @@ const Footer = ({ images }) => (
128138
156, 2nd Street
129139
<br />
130140
San Francisco, CA 94105
131-
<br />
132141
</PlainLink>
133-
</P>
142+
</TextWithIcon>
134143
</Box>
135144
</Flex>
136145
</Box>

0 commit comments

Comments
 (0)