Skip to content

Commit

Permalink
Fix font
Browse files Browse the repository at this point in the history
Squash and merge the following commits into develop:
* fix: resolve disappearance Manrope font
  • Loading branch information
mateusriff authored Feb 17, 2024
1 parent 21b5cdd commit 7cbf2ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ interface LayoutProps {

const Layout = ({ children }: LayoutProps) => {
return (
<div className={manrope.className}>
<main className={manrope.className}>
<Navbar />
{children}
</div>
</main>
)
}

Expand Down
11 changes: 11 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type { AppProps } from 'next/app'
import Head from 'next/head'
import Layout from './Layout'
import { Manrope } from 'next/font/google'

const manrope = Manrope({
subsets: ['latin'],
weight: ['200', '300', '400', '500', '600', '700', '800'],
})

import GlobalStyle from '@/styles/GlobalStyle'

Expand All @@ -24,6 +30,11 @@ export default function App({ Component, pageProps }: AppProps) {
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css"
/> */}
</Head>
<style jsx global>{`
html {
font-family: ${manrope.style.fontFamily};
}
`}</style>
<Layout>
<Component {...pageProps} />
</Layout>
Expand Down

0 comments on commit 7cbf2ec

Please sign in to comment.