-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathapp.vue
54 lines (47 loc) · 1.22 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script setup lang="ts">
import { links } from 'unplugin-fonts/head'
import src from 'unfonts.css?raw'
</script>
<template>
<h1>Hello Nuxt!</h1>
<h2>I'm using a local font !</h2>
<div class="fontsource-abeezee">I'm a ABeeZee fontsource</div>
<div class="fontsource-truculenta">I'm a Truculenta fontsource</div>
<div class="fontsource-variable">I'm a Noto Sans JP Variable fontsource</div>
<pre>links: {{ links }}</pre>
<ClientOnly>
<pre>src: {{ src }}</pre>
</ClientOnly>
<a href="https://vitejs.dev/guide/features.html" target="_blank">Documentation</a>
</template>
<style>
:root {
font-family: "Crimson Pro", Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
a {
font-family: "Open Sans", Avenir, Helvetica, Arial, sans-serif;
}
pre {
text-align: left;
}
h2 {
font-family: "Dancing Script", sans-serif;
font-size: 3rem;
font-weight: 600;
}
.fontsource-abeezee {
font-family: "ABeeZee", sans-serif;
}
.fontsource-truculenta {
font-family: "Truculenta", sans-serif;
}
.fontsource-variable {
font-family: "Noto Sans JP Variable", sans-serif;
font-weight: 875;
}
</style>