mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
webfonts
This commit is contained in:
parent
c73ab5e5bf
commit
ace798725d
9 changed files with 33 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FilterProvider } from './src/context/FilterContext';
|
import { FilterProvider } from './src/context/FilterContext';
|
||||||
|
import './static/fonts.css';
|
||||||
|
|
||||||
export const wrapRootElement = ({ element }) => (
|
export const wrapRootElement = ({ element }) => (
|
||||||
<FilterProvider>{element}</FilterProvider>
|
<FilterProvider>{element}</FilterProvider>
|
||||||
)
|
);
|
||||||
|
|
|
||||||
14
package-lock.json
generated
14
package-lock.json
generated
|
|
@ -8005,6 +8005,15 @@
|
||||||
"@babel/runtime": "^7.7.6"
|
"@babel/runtime": "^7.7.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gatsby-plugin-web-font-loader": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/gatsby-plugin-web-font-loader/-/gatsby-plugin-web-font-loader-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-3c39bX9CcsYJQFhhmTyjuMJSqpld2rX+HsTOxP9k1PKFR4Rvo3lpzBW4d1tVpmUesR8BNL6u9eHT7/XksS1iog==",
|
||||||
|
"requires": {
|
||||||
|
"babel-runtime": "^6.26.0",
|
||||||
|
"webfontloader": "^1.6.28"
|
||||||
|
}
|
||||||
|
},
|
||||||
"gatsby-react-router-scroll": {
|
"gatsby-react-router-scroll": {
|
||||||
"version": "2.1.19",
|
"version": "2.1.19",
|
||||||
"resolved": "https://registry.npmjs.org/gatsby-react-router-scroll/-/gatsby-react-router-scroll-2.1.19.tgz",
|
"resolved": "https://registry.npmjs.org/gatsby-react-router-scroll/-/gatsby-react-router-scroll-2.1.19.tgz",
|
||||||
|
|
@ -16299,6 +16308,11 @@
|
||||||
"minimalistic-assert": "^1.0.0"
|
"minimalistic-assert": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"webfontloader": {
|
||||||
|
"version": "1.6.28",
|
||||||
|
"resolved": "https://registry.npmjs.org/webfontloader/-/webfontloader-1.6.28.tgz",
|
||||||
|
"integrity": "sha1-23hhKSU8tujq5UwvsF+HCvZnW64="
|
||||||
|
},
|
||||||
"webpack": {
|
"webpack": {
|
||||||
"version": "4.41.5",
|
"version": "4.41.5",
|
||||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.5.tgz",
|
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.5.tgz",
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
"gatsby-plugin-react-helmet": "^3.1.16",
|
"gatsby-plugin-react-helmet": "^3.1.16",
|
||||||
"gatsby-plugin-sharp": "^2.3.5",
|
"gatsby-plugin-sharp": "^2.3.5",
|
||||||
"gatsby-plugin-styled-components": "^3.1.16",
|
"gatsby-plugin-styled-components": "^3.1.16",
|
||||||
|
"gatsby-plugin-web-font-loader": "^1.0.4",
|
||||||
"gatsby-source-filesystem": "^2.1.40",
|
"gatsby-source-filesystem": "^2.1.40",
|
||||||
"gatsby-transformer-sharp": "^2.3.7",
|
"gatsby-transformer-sharp": "^2.3.7",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,6 @@ const GlobalStyle = createGlobalStyle`
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border: 3px solid var(--blue);
|
border: 3px solid var(--blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// Component Styles
|
// Component Styles
|
||||||
|
|
|
||||||
BIN
src/fonts/fira_mono-regular-webfont.woff
Normal file
BIN
src/fonts/fira_mono-regular-webfont.woff
Normal file
Binary file not shown.
BIN
src/fonts/fira_mono-regular-webfont.woff2
Normal file
BIN
src/fonts/fira_mono-regular-webfont.woff2
Normal file
Binary file not shown.
BIN
src/fonts/fira_mono-regular_italic-webfont.woff
Normal file
BIN
src/fonts/fira_mono-regular_italic-webfont.woff
Normal file
Binary file not shown.
BIN
src/fonts/fira_mono-regular_italic-webfont.woff2
Normal file
BIN
src/fonts/fira_mono-regular_italic-webfont.woff2
Normal file
Binary file not shown.
16
static/fonts.css
Normal file
16
static/fonts.css
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
/* Fonts */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Fira Mono';
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
src: url('../src/fonts/fira_mono-regular-webfont.woff2') format('woff2'),
|
||||||
|
url('../src/fonts/fira_mono-regular-webfont.woff') format('woff');
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Fira Mono';
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: italic;
|
||||||
|
src: url('../src/fonts/fira_mono-regular_italic-webfont.woff2') format('woff2'), url('../src/fonts/fira_mono-regular_italic-webfont.woff') format('woff');
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue