
Design comparison
SolutionDesign
Solution retrospective
Need help getting @font-face to work with Github Pages! Works locally but won't work when hosted!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @pertrai1
The code I looked at looks great. I did look and see that there is a 404 for the font location. Maybe changing
src: url(/assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
tosrc: url(assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
where/assets
becomesassets
without the leading/
?Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord