Design comparison
Solution retrospective
Hey, I would really appretiate some feedback on how you see I can improve or optimize my code!
I would love to know also how can I solve the issue that I currently have with the background quotes image when hovering on the first testimonial on the Desktop view.
Thanks!
Community feedback
- @t0ntinPosted almost 2 years ago
Hello. Delete the background img from your html file, then add this to your css code:
.t1 { background-color: hsl(263, 55%, 52%); background-image: url(/images/bg-pattern-quotation.svg); background-size: 110px; background-position: top 5px right 30px; background-repeat: no-repeat; }
That will fix the background. Also delete the code under .quotes-img...
I like how you did it all with flexbox.
Marked as helpful2@SebasAran16Posted almost 2 years ago@t0ntin Thank you very much Andres!
Really helpful, did not think about making it a
background-image
. Already did my reasearch about the attributes. 💯0 - @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- Your **HTML should have ** a
main
element that will assist in identifying the main content of your site.
More Info:📚
- The profile images alt tags need to be improved. It should state the following; “Headshot of -person’s full name-“
More Info:📚
- The only headings in this component are the names of each individual; “Daniel Clifford”, “Jonathan Walters”, “Jeanette Harmon”, “Patrick Abrams” and “Kira Whittle”. Everything else should be wrapped in a
paragraph
element.
- The
article
element is not the best choice for wrapping these testimonials. In order to use thearticle
element the component needs to be able to make sense on its own and be independently distributable (can be used in on another site). These testimonials cannot do neither.
More Info:📚
- To improve the semantics of your component, you will want to wrap each individual testimonial component in a
figure
element, the individuals information should be wrapped in afigcaption
element and lastly, the testimonial itself should be wrapped in ablockquote
element.
Code:
<figure> <figcaption></figcaption> <blockquote></blockquote> </figure>
More Info:📚
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding!🎄🎁
Marked as helpful1@SebasAran16Posted almost 2 years ago@vcarames Thank you very much!
Love how you structured your reply and gave me the resources, it was really helpful. Already applied those changes. I had read the MDN Docs but still had the doubt about how to use the <article>, really appretiate it, now I know how and that there is the <figure> I can use!
0 - Your **HTML should have ** a
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