Skip to content

Commit

Permalink
lato font
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Nov 2, 2024
1 parent 9b04a8f commit 471ae5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import 'bootstrap/dist/css/bootstrap.min.css'
import '@/styles/globals.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import type { AppProps, NextWebVitalsMetric } from 'next/app'
import { Lato } from 'next/font/google'
import { GoogleAnalytics, event, usePageViews } from 'nextjs-google-analytics'
import { GA_MEASUREMENT_ID } from '../app/lib/gtag'

const lato = Lato({ subsets: ['latin'], weight: ['400', '700'], style: ['normal', 'italic'] })

export function reportWebVitals({
id,
name,
Expand Down Expand Up @@ -40,6 +43,11 @@ function MyApp({ Component, pageProps }: AppProps) {
usePageViews({ gaMeasurementId: GA_MEASUREMENT_ID })

return <>
<style jsx global>{`
html {
font-family: ${lato.style.fontFamily};
}
`}</style>
<GoogleAnalytics gaMeasurementId={GA_MEASUREMENT_ID} />
<Component {...pageProps} />
</>
Expand Down
1 change: 0 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default function XTable() {

<XTableConfigProvider>
<LoadInitialState />

<App />
</XTableConfigProvider>
</>
Expand Down

0 comments on commit 471ae5f

Please sign in to comment.