Skip to content
Snippets Groups Projects
Commit 6f6e3c63 authored by Makhtar DIAGNE's avatar Makhtar DIAGNE
Browse files

[RABB-626] Frontend Optimization : fix font

parent ca6fa7be
No related branches found
No related tags found
1 merge request!1Feature/design/1
...@@ -25,6 +25,14 @@ html, body { ...@@ -25,6 +25,14 @@ html, body {
height: 100%; height: 100%;
} }
@font-face {
font-family: 'Roboto', sans-serif;
font-style: normal;
font-weight: normal;
src: local('Roboto'), url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap) format('woff2');
font-display: swap;
}
body { body {
margin: 0; margin: 0;
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.googleapis.com"> <link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" as="font" type="font/woff2" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
</head> </head>
<body> <body>
<demo-root></demo-root> <demo-root></demo-root>
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.googleapis.com"> <link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" as="font" type="font/woff2" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
</head> </head>
<body> <body>
<app-root> <!-- selector from app.component.ts --> <app-root> <!-- selector from app.component.ts -->
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.googleapis.com"> <link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" as="font" type="font/woff2" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
</head> </head>
<body> <body>
<app-root> <!-- selector from app.component.ts --> <app-root> <!-- selector from app.component.ts -->
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
body { body {
margin: 0; margin: 0;
color: $charcoal-grey; color: $charcoal-grey;
font-family: 'Roboto', sans-serif;
background: $pale-grey; background: $pale-grey;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment