Design comparison
Solution retrospective
I have problems with getting the image overlay the correct shade/color. Feedback on how to improve that image is very welcome!
Thanks!
Community feedback
- @stfnpczkPosted over 2 years ago
Hi Louise,
one way to get the image closer to the color of the design is to put the properties
mix-blend-mode: multiply
andopacity:0.79
on the image and use a div with the purple background-color as specified in the style guide.Marked as helpful0 - @PhoenixDev22Posted over 2 years ago
Hello @louisenorrsen ,
I have some suggestions regarding your solution :
-
You can use
footer
for the attribution.<Footer>
should be outside the<main >
. -
You can use an ordered list
<ul>
for thestats
. Numbers don't make sense as h2s. -
The number and word have to be read together to make sense so need to be in the same meaningful element. so only a
span
or maybestrong
tag needs to wrap the numbers. the words likecompanies
should not be in paragraph tags. They don't need to be wrapped in anything as they are already inside a meaningful element (list item). -
Height 100vh
on this is causes the content to be cut off on mobile. Change tomin-height
. This also allows the body to to grow taller if the content outgrows the visible page. -
width: 327px;
an explicit width is not a good way . Remove the width from the main component and change it tomax width
instead. That will let it shrink a little when it needs to. -
Also you would never want to set the
height
of the element. Let the content inside the card element dictate the height of it . -
You should use
em
andrem
units .Bothem
andrem
are flexible, Usingpx
won't allow the user to control the font size based on their needs. Also , Don't usepx
for font size. -
In
line-height: 32px ;
, use unitless value for theline-height
, this is the preferred way to set line-height and avoid unexpected results due to inheritance.Read more in MDN. -
General point , try to put classes directly on anything you want to style. Never Style on ID'S.
Check the responsiveness again .
Overall , your solution is good, Hopefully this feedback helps.
1@vanzasetiaPosted over 2 years ago@PhoenixDev22 I guess you might mean,
footer
should NOT be in themain
.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