fix: add fonts via link tag and preconnect (#193)

This commit is contained in:
Adam Butterworth
2019-06-03 08:37:33 -06:00
committed by GitHub
parent ffba541637
commit 2abeed7a8c
3 changed files with 6 additions and 4 deletions

6
package-lock.json generated
View File

@@ -2570,9 +2570,9 @@
"integrity": "sha512-APBpZvdQrC1MJWMzk33V7FR2RhBRtnH2QPLqZzS+qia7PixwgWNlnX7UfHjhx+YWkM53GdsZKs40EBkSwADuMA=="
},
"@edx/edx-bootstrap": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@edx/edx-bootstrap/-/edx-bootstrap-2.0.1.tgz",
"integrity": "sha512-tq9ScRJBkUYw+0ypTshd+9+9Hnow00FkS6Rvh0RfK4xZ+rh8wNAUIVkG3TMclaW5qxvXSIE7Qo7YO7i7JrqV6A==",
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/@edx/edx-bootstrap/-/edx-bootstrap-2.2.2.tgz",
"integrity": "sha512-2kheqhGznzG1ebMWhJea0lb/ZLgjfebuPHgGwutVXE8FF9QTmzFUm02nsAz5hxs4w8wERf3x92SWET0OoALzRQ==",
"requires": {
"bootstrap": "^4.3.1"
}

View File

@@ -26,7 +26,7 @@
},
"dependencies": {
"@cospired/i18n-iso-languages": "^2.0.2",
"@edx/edx-bootstrap": "^2.0.1",
"@edx/edx-bootstrap": "^2.2.2",
"@edx/frontend-analytics": "^1.0.0",
"@edx/frontend-auth": "^5.2.0",
"@edx/frontend-component-footer": "^6.0.2",

View File

@@ -4,6 +4,8 @@
<title>Learner Profile | edX</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
</head>
<body>
<div id="root"></div>