added local fonts
This commit is contained in:
parent
b8a2049b0c
commit
c4cb25ecca
4 changed files with 18 additions and 4 deletions
|
@ -4,7 +4,6 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<link href="https://fonts.googleapis.com/css?family=Zilla+Slab&display=swap" rel="stylesheet">
|
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
</head>
|
</head>
|
||||||
|
|
21
src/App.vue
21
src/App.vue
|
@ -9,9 +9,24 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
/* Import Open Sans from Google Fonts */
|
@font-face {
|
||||||
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
|
font-family: 'Zilla Slab';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: local('Zilla Slab'), local('ZillaSlab-Regular'), url(./assets/fonts/zilla_slab.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: local('Open Sans Regular'), local('OpenSans-Regular'), url(./assets/fonts/open_sans.woff2) format('woff2');
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
|
|
BIN
src/assets/fonts/open_sans.woff2
Normal file
BIN
src/assets/fonts/open_sans.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/zilla_slab.woff2
Normal file
BIN
src/assets/fonts/zilla_slab.woff2
Normal file
Binary file not shown.
Loading…
Reference in a new issue