svrjs-nextjs-website/pages/_app.tsx

27 lines
642 B
TypeScript
Raw Permalink Normal View History

2024-06-25 20:47:24 +02:00
import { Poppins } from "next/font/google";
import "./globals.css";
2024-06-25 21:03:15 +02:00
import { AppProps } from "next/app";
2024-09-08 14:34:54 +02:00
import Analytics from "@/components/shared/providers/Analytics";
2024-06-25 20:47:24 +02:00
const poppins = Poppins({
weight: ["400", "600", "700", "900"],
subsets: ["latin"]
2024-06-25 20:47:24 +02:00
});
2024-06-25 21:03:15 +02:00
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<style jsx global>{`
html {
font-family: ${poppins.style.fontFamily};
}
`}</style>
<div className={`antialiased ${poppins.className}`}>
<Component {...pageProps} />
<Analytics pagesRouter={true} />
</div>
</>
);
2024-06-25 20:47:24 +02:00
}
export default MyApp;