Latest solutions
Latest comments
- @dxiDavidSubmitted about 2 years ago@hesam-fattahiPosted about 2 years ago
Hey there!👋 Good job on finishing the challenge .
Here are some tips to improve your code:
-
Your component should be wrapped with
main
element. -
And for other elements like headings and paragraphs, there is no need to wrap them around div.
-
You can use
picture
andsource
for you image, which doesn't need a media query in CSS for changing images. More info on MDN. -
For accessibility reasons, the
img
alt text shouldn't be empty. It should describe the image. -
You might wanna add to the media query's viewport since there are many phones with viewports larger than 375px, therefore the
flex-direction
doesn't change to column and the component won't look good on phones with bigger screens.
If you need further clarification l, I would be happy to help.
Happy coding :)
Marked as helpful0 -
- @isamardzijaSubmitted over 2 years ago@hesam-fattahiPosted over 2 years ago
Hey there👋 Good job!
- For background patterns, Instead of using keyword values for your
background-position
, you can use percentages for the X and Y coordinates. Play with the numbers to get as close as possible to the design. More info on MDN.
- You should also add
background-repeat
and set it tono-repeat
.
- The profile picture, due to accessibility reasons, should have
alt
attribute. It should describe what the image is. More info on W3.
Good luck.
0 - For background patterns, Instead of using keyword values for your
- @kleeblattdevSubmitted over 2 years ago@hesam-fattahiPosted over 2 years ago
Hey there!👋
- For the
border-radius
to work, you must addoverflow: hidden;
to yourarticle
.
Good luck on your future projects.
Marked as helpful0 - For the
- @hesam-fattahiSubmitted over 2 years ago@hesam-fattahiPosted over 2 years ago
There is a problem when I test it on my phone. The "container" seems to have 0 padding on the right. Does anybody else have this problem?
When I inspect it on the laptop, even with smaller viewports, there is no problem.
0 - @gomes-leonardoSubmitted over 2 years ago@hesam-fattahiPosted over 2 years ago
Hey there 👋 Nice work!
-
For the circles on the background, you can put the two
img
elements outside the card component and use absolute positioning. -
Also, the card component should be a
main
element. Usingdiv
is bad practice.
Happy coding :)
0 -
- @mteusbarbosaSubmitted over 2 years ago@hesam-fattahiPosted over 2 years ago
Hello there!👋 Congratulations on finishing this challenge.
- You can make your component responsive only by using grid or flexbox and avoid using media queries.
Using
flex-wrap
andflex
, If you want to use flex. More info: flex-wrap.Using
auto-fit
andminmax()
, If you want to use grid. More info: responsive-grid.- Also in
picture
element, you can usesource
so that you don't have to write anything on CSS and adding media query to change the image.
More info on MDN.
If you need further clarification, feel free to reach out to me.
Keep up the good work.
Marked as helpful1