Skip to content

Commit 521bcad

Browse files
committed
Fixed responsiveness of footer
1 parent c827697 commit 521bcad

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/textWithIcon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { P } from 'bricks';
44
export default styled(P)`
55
display: flex;
66
align-items: flex-start;
7-
margin-bottom: 10px;
7+
margin-bottom: 10px !important;
88
99
img {
1010
margin-top: 4px;

src/templates/layout.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,22 @@ const Footer = ({ images }) => (
9494
</form>
9595
</Box>
9696
</Box>
97-
<Box width={[1, 1 / 4]} mt={[2, 0]}>
97+
<Flex flexDirection={["column-reverse", "column"]} width={[1, 1 / 4]} mt={[2, 0]}>
9898
<TextWithIcon>
9999
<img src={mailIcon} />
100100
&nbsp;
101101
<PlainLink as="a" href="mailto:hello@codebrahma.com">
102102
hello@codebrahma.com
103103
</PlainLink>
104104
</TextWithIcon>
105-
<TextWithIcon>
105+
<TextWithIcon mt={[1, 0]}>
106106
<img src={phoneIcon} />
107107
&nbsp;
108108
<PlainLink as="a" href="tel:+14845060634">
109109
+1 484 506 0634
110110
</PlainLink>
111111
</TextWithIcon>
112-
<Box mt="1">
112+
<Box mt={[1, 0]}>
113113
<Flex flexDirection={["row"]} alignItems="center">
114114
{socialLinks.map(({ name, link, image }) => {
115115
const imageData = images[image].childImageSharp.fixed
@@ -126,8 +126,8 @@ const Footer = ({ images }) => (
126126
})}
127127
</Flex>
128128
</Box>
129-
</Box>
130-
<Box width={[1, 1 / 4]} mt={[2, 0]}>
129+
</Flex>
130+
<Box width={[1, 1 / 4]} mb={[2, 0]}>
131131
<TextWithIcon>
132132
<img src={locationIcon} />
133133
&nbsp;
@@ -144,7 +144,7 @@ const Footer = ({ images }) => (
144144
</Box>
145145
</Flex>
146146

147-
<Flex mt={[2, 3]}>
147+
<Flex mt={[0, 3]}>
148148
<Box mr={1} display={['none', 'block']}>
149149
<img src={cbLogo} height="48px" />
150150
</Box>

0 commit comments

Comments
 (0)