Skip to content

Commit

Permalink
Transpile GSAP; move self-hosted fonts to scss
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerby Keith Aquino committed Feb 3, 2023
1 parent 75e7ba8 commit 3aac2fc
Show file tree
Hide file tree
Showing 7 changed files with 893 additions and 930 deletions.
14 changes: 12 additions & 2 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@

@import "@fontsource/inter/400";
@import "@fontsource/inter/600";
@import "@fontsource/inter/700";
@import "@fontsource/inter/800";
@import "@fontsource/inter/900";
@import "@fontsource/open-sans/400";
@import "@fontsource/open-sans/400-italic";
@import "@fontsource/open-sans/600";
@import "@fontsource/open-sans/600-italic";
@import "@fontsource/open-sans/800";
@import "@fontsource/open-sans/800-italic";

@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;
2 changes: 1 addition & 1 deletion components/Navbar/UserLoggedIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
>
<span class="sr-only">Profile</span>
<img
src="https://res.cloudinary.com/skepfusky-dookie/image/upload/q_75/projects/misc/ozzy-fp-banner.png"
src="https://res.cloudinary.com/kuroji-fusky-s3/image/upload/q_75/projects/misc/ozzy-fp-banner.png"
alt="Profile"
/>
</button>
Expand Down
2 changes: 1 addition & 1 deletion components/TheBaseNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="flex items-center gap-x-6">
<NuxtLink to="/" class="flex items-center gap-x-2.5 logo-wordmark">
<span class="sr-only">MyFursona</span>
<IconMono class="w-[3.25rem] h-[3.25rem] text-purple-500"/>
<IconMono class="w-[3.25rem] h-[3.25rem] text-purple-500" />
<span>MyFursona</span>
</NuxtLink>
<NavbarSearchBox />
Expand Down
41 changes: 17 additions & 24 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,6 @@ export default defineNuxtConfig({
},
],
],
css: [
"@fontsource/inter/400.css",
"@fontsource/inter/600.css",
"@fontsource/inter/700.css",
"@fontsource/inter/800.css",
"@fontsource/inter/900.css",
"@fontsource/open-sans/400.css",
"@fontsource/open-sans/400-italic.css",
"@fontsource/open-sans/600.css",
"@fontsource/open-sans/600-italic.css",
"@fontsource/open-sans/800.css",
"@fontsource/open-sans/800-italic.css",
"~/assets/css/main.scss",
],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
typescript: {
shim: false,
strict: true,
},
app: {
head: {
link: [
Expand All @@ -47,4 +23,21 @@ export default defineNuxtConfig({
],
},
},
build: {
transpile: ["gsap"],
},
css: ["~/assets/css/main.scss"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
webpack: {
optimizeCSS: true,
},
typescript: {
shim: false,
strict: true,
},
})
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
},
"devDependencies": {
"@fontsource/inter": "^4.5.14",
"@fontsource/open-sans": "^4.5.13",
"@fontsource/open-sans": "^4.5.14",
"@iconify-prerendered/vue-fa6-brands": "^0.18.1662097805",
"@nuxtjs/color-mode": "^3.2.0",
"@pinia/nuxt": "^0.4.6",
"autoprefixer": "^10.4.13",
"gsap": "^3.11.4",
"nuxt": "3.0.0",
"nuxt": "^3.0.0",
"pinia": "^2.0.29",
"postcss": "^8.4.20",
"sass": "^1.57.1",
"tailwindcss": "^3.2.4"
}
}
}
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module.exports = {
theme: {
extend: {
fontFamily: {
inter: ["Inter"],
"open-sans": ["Open Sans"],
inter: ["Inter", 'sans-serif'],
"open-sans": ["Open Sans", 'sans-serif'],
},
},
},
Expand Down
Loading

0 comments on commit 3aac2fc

Please sign in to comment.