Skip to content

Commit a57c432

Browse files
committed
logo - Separated footer and header eq logo with usemediaquery
1 parent c63af79 commit a57c432

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/components/footer/footer.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,26 @@ const Footer = ({ linkHdr, linkPath, linkText, showPartners, colorLogos }) => {
4242
// }}
4343
// />
4444
// </Link>
45-
<Link
46-
to='/'
47-
style={{
48-
display: 'block',
49-
maxWidth: '12rem', // allow it to grow on desktop
50-
margin: '0 auto',
51-
}}
52-
>
53-
<img
54-
src={FooterEQLogo}
55-
alt='EQ Works Logo'
45+
<Link
46+
to='/'
5647
style={{
57-
width: '100%',
58-
height: 'auto',
59-
maxHeight: '3.5rem', // ensures it never gets too tall
6048
display: 'block',
61-
objectFit: 'contain',
49+
width: isScreenSm ? '8rem' : '14rem',
50+
margin: '3rem auto 0',
6251
}}
63-
/>
64-
</Link>
52+
>
53+
<img
54+
src={FooterEQLogo}
55+
alt='EQ Works Logo'
56+
style={{
57+
width: '100%',
58+
height: 'auto',
59+
maxHeight: isScreenSm ? '3rem' : '4rem',
60+
objectFit: 'contain',
61+
display: 'block',
62+
}}
63+
/>
64+
</Link>
6565
) : (
6666
<div className={componentStyles.connect}>
6767
<h2>{linkHdr ? linkHdr : `Let’s Grow Together`}</h2>

0 commit comments

Comments
 (0)