Added Inter font face

This commit is contained in:
Ryan Freeman 2021-11-17 15:33:23 +00:00
parent adb7806e6e
commit a6fd1483b1
4 changed files with 15 additions and 2 deletions

11
package-lock.json generated
View File

@ -6,6 +6,7 @@
"": { "": {
"name": "portfolio", "name": "portfolio",
"dependencies": { "dependencies": {
"@fontsource/inter": "^4.5.1",
"next": "12.0.4", "next": "12.0.4",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"
@ -768,6 +769,11 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/@fontsource/inter": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-4.5.1.tgz",
"integrity": "sha512-mvtOvXNNVLlF1p/UbLgLrmz2RCOl6Ow+TqyiK10SosoLKX7edsXYiHFHb7XIZdjII6F2sJVPPsJXWhBnbXT2DQ=="
},
"node_modules/@hapi/accept": { "node_modules/@hapi/accept": {
"version": "5.0.2", "version": "5.0.2",
"resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz", "resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz",
@ -6173,6 +6179,11 @@
} }
} }
}, },
"@fontsource/inter": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-4.5.1.tgz",
"integrity": "sha512-mvtOvXNNVLlF1p/UbLgLrmz2RCOl6Ow+TqyiK10SosoLKX7edsXYiHFHb7XIZdjII6F2sJVPPsJXWhBnbXT2DQ=="
},
"@hapi/accept": { "@hapi/accept": {
"version": "5.0.2", "version": "5.0.2",
"resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz", "resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-5.0.2.tgz",

View File

@ -8,6 +8,7 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@fontsource/inter": "^4.5.1",
"next": "12.0.4", "next": "12.0.4",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"

View File

@ -1,3 +1,5 @@
import '@fontsource/inter/400.css';
import '@fontsource/inter/700.css';
import '../styles/globals.css'; import '../styles/globals.css';
function App({Component, pageProps}) { function App({Component, pageProps}) {

View File

@ -2,8 +2,7 @@ html,
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, font-family: "Inter", sans-serif;
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
} }
a { a {