Skip to content

Commit 091a383

Browse files
committed
Changed cb logo to webp
1 parent 36413e5 commit 091a383

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/templates/layout.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import Header from "./header"
3131
import theme from "../theme"
3232
import PlainLink from "../components/link"
3333
import TextWithIcon from "../components/textWithIcon"
34-
import cbLogo from './../images/logos/cb.png'
3534
import mailIcon from './../images/logos/mail.svg'
3635
import phoneIcon from './../images/logos/phone.svg'
3736
import locationIcon from './../images/logos/location.svg'
@@ -162,7 +161,12 @@ const Footer = ({ images }) => (
162161

163162
<Flex mt={[0, 3]}>
164163
<Box mr={1} display={['none', 'block']}>
165-
<img src={cbLogo} height="48px" alt="Codebrahma Logo" />
164+
<Img
165+
fixed={images['cb'].childImageSharp.fixed}
166+
objectFit="contain"
167+
height="48px"
168+
alt="Codebrahma Logo"
169+
/>
166170
</Box>
167171
<Box>
168172
<Box mb={1}>
@@ -189,6 +193,14 @@ const Layout = ({ children }) => {
189193
}
190194
}
191195
196+
cb: file(relativePath: { eq: "logos/cb.png" }) {
197+
childImageSharp {
198+
fixed(width: 96, height: 48) {
199+
...GatsbyImageSharpFixed_withWebp_noBase64
200+
}
201+
}
202+
}
203+
192204
facebook: file(relativePath: { eq: "logos/facebook.png" }) {
193205
childImageSharp {
194206
fixed(width: 33, height: 33) {

0 commit comments

Comments
 (0)