Skip to content

Commit ce9dbce

Browse files
authored
Merge pull request #77 from Codebrahma/website-perf-improvements
Website perf improvements
2 parents 69a48b4 + a9084cd commit ce9dbce

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

src/templates/fonts.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,23 +461,23 @@ code.language-text.css-0 {
461461
/*----------------------RESET OVER----------------------------------*/
462462
@font-face {
463463
src: url("../fonts/TiemposTextWeb-Regular.woff") format("woff");
464-
font-family: "TiemposText";
465464
font-display: swap;
465+
font-family: "TiemposText";
466466
}
467467
@font-face {
468468
src: url("../fonts/TiemposTextWeb-RegularItalic.woff") format("woff");
469-
font-family: "TiemposItalic";
470469
font-display: swap;
470+
font-family: "TiemposItalic";
471471
}
472472
@font-face {
473473
src: url("../fonts/TiemposTextWeb-Bold.woff") format("woff");
474-
font-family: "TiemposBold";
475474
font-display: swap;
475+
font-family: "TiemposBold";
476476
}
477477
@font-face {
478478
src: url("../fonts/TiemposHeadlineWeb-Regular.woff") format("woff");
479-
font-family: "TiemposHeadline";
480479
font-display: swap;
480+
font-family: "TiemposHeadline";
481481
}
482482

483483
a {

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)