Hello @FengDenny
Great work on the challenge!
To answer your question on why the @font-face
was not working, is probably because you clubbed all the different font weight files under one @font-face
definition.
You need to have separate @font-face
definition for each font weight type
For instance,
@font-face {
font-family: 'Figtree';
src: url('/assets/fonts/static/Figtree-ExtraBold.ttf') format('truetype');
font-weight: 800;
font-display: swap;
}
@font-face {
font-family: 'Figtree';
src: url('/assets/fonts/static/Figtree-SemiBold.ttf) format('truetype');
font-weight: 600;
font-display: swap;
}
and so on
Additionally, you can refer to the line 63 to 82 of this styling file for social proof section challenge
Hope this helps! Let me know if this works.