55555-Jyeon / portfolio

portfolio(on progress)
https://portfolio-juyeon-oh.netlify.app/
0 stars 0 forks source link

next/font #2

Open 55555-Jyeon opened 6 months ago

55555-Jyeon commented 6 months ago

⬇️ install

$ npm i @next/font

optimizing fonts β†’ check details from official website select fonts β†’ google fonts


playflair + display

// πŸ“‚ app/layout.tsx
import { Playfair } from "next/font/google";

const inter = Playfair({ subsets: ["latin"] });
55555-Jyeon commented 6 months ago

The @next/font package will be removed in Next.js 14. λ‚΄μž₯ "next/font" μ‚¬μš© ꢌμž₯