Link best practices, and removed font for faster loading time

This commit is contained in:
Lucien Cartier-Tilet 2020-05-06 11:48:51 +02:00
parent 705e35e971
commit cc6519c302
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
3 changed files with 4 additions and 9 deletions

View File

@ -54,6 +54,7 @@ Element makeShareLink(Element icon, String url) {
..append(Element.a()
..attributes['href'] = url
..attributes['target'] = '_blank'
..attributes['rel'] = 'noreferrer'
..append(icon));
}

View File

@ -2,7 +2,8 @@ import 'dart:html';
import './navbar.dart' show makeNavbar;
const image_header = 'https://cdn.phundrak.com/img/mahakala-monochrome.png';
const image_header =
'https://phundrak.fra1.cdn.digitaloceanspaces.com/img/mahakala-monochrome.png';
Future<Element> makeHeader() async {
var header = Element.tag('header');

View File

@ -1,10 +1,3 @@
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700);
@font-face {
font-family: "DoulosSIL";
font-display: swap;
src: url("/fonts/DoulosSIL-R.woff");
}
/* Variables *****************************************************************/
$switch-small-screen: "only screen and (max-width: 600px)";
@ -267,7 +260,7 @@ $gradient-accent3-light-right: linear-gradient(to right, $light, $accent3);
body {
margin: 0;
padding: 0;
font-family: "DoulosSIL", "Lato", "proxima-nova", Arial, sans-serif;
font-family: "Lato", "proxima-nova", Arial, sans-serif;
font-size: 1.2em;
transition: background 500ms ease-in-out, color 1s ease-in-out;