chore: vite-plugin-webfont-dl
Some checks failed
CI / cache-and-install (push) Has been cancelled

This commit is contained in:
严浩
2024-08-29 11:43:32 +08:00
parent 50bed5e1fe
commit 1fa39b6391
4 changed files with 69 additions and 2 deletions

View File

@ -47,4 +47,26 @@ const FComponent: FunctionalComponent<{ prop: string }> = (props, context) => (
<DefineRender />
</div>
<Icons />
<div :class="$style.hero" mt-8>
<h1><i>🔌</i> Vite Plugin Webfont DL <i></i></h1>
<h2>Fonts are downloaded directly from Google Fonts</h2>
<p>{{ JSON.stringify({ $style }) }}</p>
</div>
</template>
<style module>
h1 {
font-family: 'Press Start 2P', cursive;
color: #646cff;
}
h2 {
font-family: 'Fira Code', monospace;
background-color: #42b983;
}
.hero {
border: 1px solid #42b983;
}
</style>