diff --git a/assets/css/global.css b/assets/css/global.css index 917a5ec..76921e7 100644 --- a/assets/css/global.css +++ b/assets/css/global.css @@ -7,7 +7,7 @@ font-style: normal; font-weight: 200; font-display: swap; - src: url(./../fonts/Inter-ExtraLight.woff2); + src: url(./../fonts/Inter-ExtraLight.woff2) format("woff2"); } @font-face { @@ -15,7 +15,7 @@ font-style: normal; font-weight: 400; font-display: swap; - src: url(./../fonts/Inter-Regular.woff2); + src: url(./../fonts/Inter-Regular.woff2) format("woff2"); } @font-face { @@ -23,7 +23,7 @@ font-style: normal; font-weight: 500; font-display: swap; - src: url(./../fonts/Inter-Medium.woff2); + src: url(./../fonts/Inter-Medium.woff2) format("woff2"); } @font-face { @@ -31,7 +31,7 @@ font-style: normal; font-weight: 600; font-display: swap; - src: url(./../fonts/Inter-SemiBold.woff2); + src: url(./../fonts/Inter-SemiBold.woff2) format("woff2"); } @font-face { @@ -39,7 +39,7 @@ font-style: normal; font-weight: 700; font-display: swap; - src: url(./../fonts/Inter-Bold.woff2); + src: url(./../fonts/Inter-Bold.woff2) format("woff2"); } @font-face { @@ -47,7 +47,7 @@ font-style: normal; font-weight: 400; font-display: swap; - src: url(./../fonts/Source-codePro.woff2); + src: url(./../fonts/Source-codePro.woff2) format("woff2"); } @font-face { @@ -55,7 +55,7 @@ font-style: normal; font-weight: 400; font-display: swap; - src: url(./../fonts/Poppins-Regular.woff2); + src: url(./../fonts/Poppins-Regular.woff2) format("woff2"); } @font-face { @@ -63,7 +63,7 @@ font-style: normal; font-weight: 500; font-display: swap; - src: url(./../fonts/Poppins-Medium.woff2); + src: url(./../fonts/Poppins-Medium.woff2) format("woff2"); } @font-face { @@ -71,7 +71,7 @@ font-style: normal; font-weight: 300; font-display: swap; - src: url(./../fonts/Comme-Light.woff2); + src: url(./../fonts/Comme-Light.woff2) format("woff2"); } @font-face { @@ -79,7 +79,7 @@ font-style: normal; font-weight: 400; font-display: swap; - src: url(./../fonts/Comme-Regular.woff2); + src: url(./../fonts/Comme-Regular.woff2) format("woff2"); } @font-face { @@ -87,7 +87,7 @@ font-style: normal; font-weight: 500; font-display: swap; - src: url(./../fonts/Comme-Medium.woff2); + src: url(./../fonts/Comme-Medium.woff2) format("woff2"); } @font-face { @@ -95,7 +95,7 @@ font-style: normal; font-weight: 600; font-display: swap; - src: url(./../fonts/Comme-SemiBold.woff2); + src: url(./../fonts/Comme-SemiBold.woff2) format("woff2"); } input:-webkit-autofill, diff --git a/components/partials/header.js b/components/partials/header.js index c4c0d3d..83ccea0 100644 --- a/components/partials/header.js +++ b/components/partials/header.js @@ -68,6 +68,7 @@ export default function Header({ mixpanel }) { src={Logo} className="mt-1 w-[205px] h-[38.5px]" alt="canopas-logo" + loading="eager" /> diff --git a/package.json b/package.json index ebe1c59..9089d0c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dependencies": { "@google-cloud/recaptcha-enterprise": "^3.4.1", "@headlessui/react": "^1.7.4", + "@next/font": "^13.4.19", "@tailwindcss/line-clamp": "^0.4.2", "axios": "^1.2.2", "highlight.js": "^11.7.0", diff --git a/pages/_document.js b/pages/_document.js index fcb2249..32479b3 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -10,6 +10,76 @@ class MyDocument extends Document { content="width=device-width, initial-scale=1.0" /> + + + + + + + + + +