Social proof page - css grid & flexbox - responsive mode activated ๐
Design comparison
Solution retrospective
Hello,
I had a lot a fun doing this one !
In the newbie section, I think this one is good practice because it covers a bunch of the components seen previously.
If you have any suggestions, I'd be happy to hear it / them out ๐ค
Thanks !
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @Aatypic, Congratulations on completing this challenge!
Great code and great solution! Iโve few suggestions for you that you can consider adding to your code:
1.You did a really good work here putting everything together, something you can improve its your code html markup and semantics. You can replace the
<div>
that wraps each card with<article>
you can wrap the paragraph with the quote with the tag<blockquote>
this way you'll wrap each block of element with the best tag in this situation. Pay attention that<div>
is only a block element without meaning.2.Its really nice that youโve used some animation and effects! Something to improve the accessibility its to add a media query reducing the motion.The prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of non-essential motion it uses. Hereโs the code for that:
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ @media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
โ๏ธ I hope this helps you and happy coding!
1@AatypicPosted about 2 years ago@correlucas Hi thanks for your feedback
-I will look into the semantic.
-The css resets with the prefers-reduced-motion is already in my code ๐
1@correlucasPosted about 2 years ago@Aatypic Oh! I didnt saw that, maybe I was with another repository opened and I made some confusion. So you're fine, by the way, nice animations you've add. =)
0
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