Design comparison
SolutionDesign
Solution retrospective
Happy coding as always guys and girls! :)
Community feedback
- P@tedikoPosted 11 months ago
Hi @tloxiu!
Congrats on completing your next challenge! A little feedback from me:
.dice-icon
div element should be replaced withbutton
tag. Buttons trigger some action, such as drawing next advice in your case..dice-img
image is purely decorative. You should removealt
text from that image since it doesn't add information to the content of a page. Instead addaria-label="generate next advice"
to your button to inform users that use some form of assistive technology what kind of behaviour they can expect.- Instead of putting image within your
button
, try to use::before
pseudo-element to add this image to button element. - You shouldn't put two images into your HTML and remove one with
display: none
property. It will cause performance issues since both images need to load on each screen size. Instead use<picture>
HTML element for responsive images. This element allow to display identical image content, just larger or smaller depending on the device. This helps to improve performance across different devices. - Don't set explicitly
width
on your.card
container. Let your content decide how much space it need. It will make your container more responsive. Usemax-width
instead to say how big it can grow. Add this to your card:max-width: 33.8rem; width: 100%;
- Now you have to add
padding
to yourbody
since your container want to stretch full screen width. Add something likepadding: 1rem
.
Good luck!
Marked as helpful0@tloxiuPosted 11 months agoThanks for feedback, I will implement the changes! :) @tediko
0@tloxiuPosted 11 months agoI've made changes, I'd love to hear your opinion on the changes @tediko
0P@tedikoPosted 11 months ago@tloxiu
Are you on discord? Would be easier to talk it through.
0@tloxiuPosted 11 months agoYes, I am - "tlox." - I'm at frontend mentor server too @tediko
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