8/2/2023 Wednesday
Basic Features: Font Optimization | Next.js
- I am learning from the above resource and i don’t like it, nothing is clear or …!!
- Started learning about font in next.js, I was able to change the font of the whole text in the _app/js file but this is not what we wanted, we want to add the font to the components!
- tomorrow I will work on it in the morning!
- It works! I am able to pass {
${font.className}
} in the div’s className after importing oswald from google fonts and adding a variable named oswald:
import { Oswald } from '@next/font/google'
const oswald = Oswald({ weight: '700', subsets: ['latin'] });
9/2/2023 Thursday
- Added the fonts to Front-EndV2 and pushed the code.
10/2/2023 Friday
11/2/2022 Saturday
- Learned about APIs in Next:
API Routes: Introduction | Next.js