Code Monkey home page Code Monkey logo

Comments (6)

nickytonline avatar nickytonline commented on July 20, 2024 2

For including the Inter font in a way that Next.js doesn't give warnings, you can do the same thing we did in the app repo. open-sauced/app#2071

from landing-page.

shamimbinnur avatar shamimbinnur commented on July 20, 2024

Hey @Sunny-unik, this is a quick fix. If you would like to take it, feel free to do that.
Here is a link to the context https://nextjs.org/docs/messages/no-stylesheets-in-head-component

from landing-page.

Sunny-unik avatar Sunny-unik commented on July 20, 2024

Sure, this is a quick fix but should I remove the linkhref props from the SEO component because it is not in use

from landing-page.

shamimbinnur avatar shamimbinnur commented on July 20, 2024

Hey @Sunny-unik

The SEO component is being reused throughout the whole site. And the linkref props is required. Don't remove this.
Just take away the value "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700;800&display=swap" from there and place it into this component.

This should resolve the issue :)

from landing-page.

Sunny-unik avatar Sunny-unik commented on July 20, 2024

Fine, you can assign this to me.

from landing-page.

Sunny-unik avatar Sunny-unik commented on July 20, 2024

Hey @Sunny-unik

The SEO component is being reused throughout the whole site. And the linkref props is required. Don't remove this. Just take away the value "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700;800&display=swap" from there and place it into this component.

This should resolve the issue :)

Remove only font link should not resolve this issue we also need to remove rel='stylesheet'

from landing-page.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.