Design comparison
Solution retrospective
Hi everyone, this my first challenge for a while as I changed jobs and things got hectic! I made a few changes to the buttons as I felt the cancel button was harder to see in the original design - which may count as a dark pattern :o
I'm still looking at the background image, any advice on how to get this to cover larger screens without moving the position?
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. The site looks great in general and it scales well in small width-devices.
Some suggestions would be:
- For the background, use
background-size: 100%
so that it will fill all x and y axis of the screen. - It would be great to have a base styling with these properties
html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; }
This way, handling an element's size will be lot easier because of the
box-sizing: border-box
. You can search up some more of how this works.- On this one, the
.card
should be using themain
instead so that the element that has content are inside a main-landmark element. - Vector image should be hidden since it is only decoration. Decorative image must be hidden at all times by using
alt=""
and extraaria-hidden="true"
attribute on theimg
tag. - Same goes for the music-icon, hide it since it is only decorative.
- I think for the last 2
button
tags, you don't need to usearia-label
since the text is descriptive enough to inform a user what those should do, though for the firstbutton
I can agree with you usingaria-label
to it or maybe sr-only text inside.
Just those only. Again, great work and hope the new job works well.
Marked as helpful1@costelloewardPosted about 3 years ago@pikamart Thanks very much! Lots to think about - I'll try some of these out!
1 - For the background, use
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