Design comparison
Solution retrospective
I followed the font sizes and styling in the Figma file. However, I got different results. Any idea why?
Community feedback
- @hadreemustaffaPosted about 1 year ago
Hi @yosephwinata.
You said you got different results. Is it the font colors and line heights? These are the only two things I noticed that's different from the design.
In the style.guide.md file, it is stated that, for font colors:
- "Verified Graduate" has the same color as the person's name with 50% opacity
- Review paragraphs inside the quotations have the same color as well, but are at 70% opacity
You can achieve these by using
hsla()
function in CSS.For example, if the person's name color is
hsl(217, 19%, 35%)
,- then, Verified Graduate is
hsla(217, 19%, 35%, 0.5)
- and the paragraph for that card is
hsla(217, 19%, 35%, 0.7)
.
The last number in
hsla()
function sets the opacity value (0.0 - 1.0) for the color.For line-height, maybe set
line-height: 1.25
to <h1>.That's all I guess. Please correct me if I'm wrong.
Marked as helpful0@yosephwinataPosted about 1 year ago@hadreemustaffa Got it. Thank you for your feedback!
1
Please log in to post a comment
Log in with GitHubJoin 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