svrjs-nextjs-website/pages/_app.tsx

25 lines
536 B
TypeScript
Raw 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-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} />
</div>
</>
);
2024-06-25 20:47:24 +02:00
}
export default MyApp;