mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-18 15:36:03 +01:00
feat: add fonts options
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import type { AppProps } from 'next/app'
|
||||
|
||||
import { globalStyles } from '../styles/globals'
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps) {
|
||||
globalStyles()
|
||||
return <Component {...pageProps} />
|
||||
}
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import NextDocument, { Head, Html, Main, NextScript } from 'next/document'
|
||||
|
||||
import { getCssText } from '../styles/stitches.config'
|
||||
import { fonts, getCssText } from '../styles/stitches.config'
|
||||
|
||||
export default class Document extends NextDocument {
|
||||
render() {
|
||||
return (
|
||||
<Html>
|
||||
<Head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
<link href={fonts['baloo'].href} rel="stylesheet" />
|
||||
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssText() }} />
|
||||
</Head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user