From 300858e5bc71936ed815ceead5caea364e630d8f Mon Sep 17 00:00:00 2001 From: Salim Djerbouh <13698160+CaddyDz@users.noreply.github.com> Date: Wed, 5 Jul 2023 22:17:24 +0100 Subject: [PATCH] Changed font (#467) Signed-off-by: Salim Djerbouh <13698160+CaddyDz@users.noreply.github.com> --- frontend/assets/variables.scss | 18 - .../components/layout/AppBarComponent.vue | 3 + frontend/components/layout/TopBar.vue | 55 + frontend/config/seo.js | 16 +- frontend/layouts/default.vue | 48 +- frontend/nuxt.config.js | 1 - frontend/package-lock.json | 1130 ++++++----------- frontend/package.json | 10 +- frontend/static/css/main.css | 25 +- .../static/fonts/evogria/Evogria Italic.woff | Bin 29012 -> 0 bytes frontend/static/fonts/evogria/Evogria.woff | Bin 27320 -> 0 bytes frontend/static/fonts/evogria/style.css | 14 - public/fonts/evogria/Evogria Italic.woff | Bin 29012 -> 0 bytes public/fonts/evogria/Evogria.woff | Bin 27320 -> 0 bytes public/fonts/evogria/style.css | 14 - resources/css/theme.css | 2 +- resources/views/vendor/nova/layout.blade.php | 4 +- 17 files changed, 495 insertions(+), 845 deletions(-) delete mode 100644 frontend/assets/variables.scss create mode 100644 frontend/components/layout/TopBar.vue delete mode 100644 frontend/static/fonts/evogria/Evogria Italic.woff delete mode 100644 frontend/static/fonts/evogria/Evogria.woff delete mode 100644 frontend/static/fonts/evogria/style.css delete mode 100644 public/fonts/evogria/Evogria Italic.woff delete mode 100644 public/fonts/evogria/Evogria.woff delete mode 100644 public/fonts/evogria/style.css diff --git a/frontend/assets/variables.scss b/frontend/assets/variables.scss deleted file mode 100644 index c2074250..00000000 --- a/frontend/assets/variables.scss +++ /dev/null @@ -1,18 +0,0 @@ -// Ref: https://github.com/nuxt-community/vuetify-module#customvariables -// -// The variables you want to modify -// $font-size-root: 20px; -$body-font-family: 'Evogria', -sans-serif !default; -$heading-font-family: 'Evogria' !default; - -.v-application { - font-family: $body-font-family, sans-serif !important; - - .title { - // To pin point specific classes of some components - font-family: $body-font-family, sans-serif !important; - } -} - -$dialog-max-height: 120% !default; diff --git a/frontend/components/layout/AppBarComponent.vue b/frontend/components/layout/AppBarComponent.vue index 472ee51e..b1a20b32 100644 --- a/frontend/components/layout/AppBarComponent.vue +++ b/frontend/components/layout/AppBarComponent.vue @@ -85,4 +85,7 @@ export default { top: 0; left: 0; } +.v-tab { + font-size: 16px; +} diff --git a/frontend/components/layout/TopBar.vue b/frontend/components/layout/TopBar.vue new file mode 100644 index 00000000..965f5a53 --- /dev/null +++ b/frontend/components/layout/TopBar.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/frontend/config/seo.js b/frontend/config/seo.js index 722df12f..6706f313 100644 --- a/frontend/config/seo.js +++ b/frontend/config/seo.js @@ -22,7 +22,7 @@ export default { }, { name: "author", - content: "Zidweb" + content: "Salim Djerbouh" }, ], link: [{ @@ -30,14 +30,20 @@ export default { type: "image/x-icon", href: "/favicon.ico" }, + { + rel: 'preconnect', + href: 'https://fonts.googleapis.com', + }, + { + rel: 'preconnect', + href: 'https://fonts.gstatic.com', + crossorigin: true, + }, { rel: 'stylesheet', - href: '/fonts/evogria/style.css' + href: 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap' }, ], - script: [{ - // src: '//code.tidio.co/bytmjjusa3gkjkwwkmqjbag7x3lzanqk.js' - }], noscript: [{ innerHTML: 'This website requires JavaScript.' }] diff --git a/frontend/layouts/default.vue b/frontend/layouts/default.vue index 906b3c15..d5523934 100644 --- a/frontend/layouts/default.vue +++ b/frontend/layouts/default.vue @@ -1,18 +1,7 @@