Skip to content

Commit

Permalink
docs: fix fonts loading
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem authored and asvae committed Jun 19, 2023
1 parent 425eaab commit 68824f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/docs/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ onMounted(() => {
useHead({
link: [
{ href: 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css', rel: 'stylesheet' },
{ href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css', rel: 'stylesheet' },
{ href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css", rel: "stylesheet" },
{ href: 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css', rel: 'preload', as: "style" },
{ href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css', rel: 'preload', prefetch: "style" },
{ href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css", rel: "preload", prefetch: "style" },
],
script: [
{ src: 'https://kit.fontawesome.com/5460c87b2a.js', crossorigin: 'anonymous' },
Expand Down
6 changes: 5 additions & 1 deletion packages/docs/layouts/landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
useHead({
title: 'Vuestic UI — Vue 3 UI framework',
link: [
{ rel: "stylesheet", href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" },
{
rel: "preload",
href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css",
as: "style"
},
]
})
</script>
Expand Down
4 changes: 3 additions & 1 deletion packages/docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export default defineNuxtConfig({

googleFonts: {
preload: true,
swap: true,
prefetch: true,
preconnect: true,
display: 'swap',
families: {
'Source+Sans+Pro': {
wght: [400, 600, 700],
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const isMobileMenuOpen = ref(false)
@import "@/assets/variables.scss";
.landing {
font-family: Source Sans Pro;
font-family: var(--va-font-family);
a {
@include link(2px);
Expand Down

0 comments on commit 68824f9

Please sign in to comment.