Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

adding font in nextjs

import Document, { Html, Head, Main, NextScript } from 'next/document'

//
class MyDocument extends Document {
   render() {
      console.log(Document)
      return (
         <Html lang='en'>
            <Head>
               <link rel='preconnect' href='https://fonts.gstatic.com'/>
               <link
                  href='https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap'
                  rel='stylesheet'
               />
            </Head>
            <body>
               <Main />
               <NextScript />
            </body>
         </Html>
      )
   }
}
export default MyDocument
Comment

adding font in nextjs

import Document, { Html, Head, Main, NextScript } from 'next/document'

//
class MyDocument extends Document {
   render() {
      console.log(Document)
      return (
         <Html lang='en'>
            <Head>
               <link rel='preconnect' href='https://fonts.gstatic.com'/>
               <link
                  href='https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap'
                  rel='stylesheet'
               />
            </Head>
            <body>
               <Main />
               <NextScript />
            </body>
         </Html>
      )
   }
}
export default MyDocument
Comment

PREVIOUS NEXT
Code Example
Typescript :: generator typescript 
Typescript :: testing techniques 
Typescript :: use of value_counts in python 
Typescript :: babel typescript 
Typescript :: mongodb find documents where two fields are equal 
Typescript :: typescript typeof interface property 
Typescript :: Create 2 set A and B of size n1 and n2 . Print sets A and B. 
Typescript :: nest js joi usage 
Typescript :: typescript ingerit 
Typescript :: IM DEAD 
Typescript :: Custom _App with getInitialProps typescript example 
Typescript :: dwayne johnson maui 
Typescript :: puts with details ruby 
Typescript :: porque la ejecución de scripts está deshabilitada en este sistema 
Typescript :: how to get the sheets no in excel package workbook in c# 
Typescript :: two main types of mixtures 
Typescript :: subplots in for loop python (no dynamic) 
Typescript :: how to use typescript map 
Typescript :: typescript find non matching objects in two arrays 
Typescript :: typeorm versioncolumn 
Typescript :: enum to number typescript 
Typescript :: how do you check ewhich version of typescript you are using 
Typescript :: cannot find name describe jasmine 
Typescript :: Show that the speed of the spacecraft in its orbit is 3.7 × 103ms –1. 
Typescript :: how to put typescript on continuous build on save 
Typescript :: Define a function sum_two_gr with three arguments returning the sum of the greatest two python 
Typescript :: Tailwin navbar structure 
Typescript :: use curly brackets in latex 
Typescript :: Restrict users to see only his own contacts odoo 
Typescript :: marine traffic embeeded map in basic html 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =