Design comparison
Community feedback
- @purnimakumarrPosted over 2 years ago
Hi Akash, your card component looks pretty close to the design. I see you have only used the bg-pattern-top for the background. But what would be more accurate to the design is that you use both bg-pattern-top and bg-pattern-bottom. You can specify them as two seperate images using the
img
tag and then position them as specified in the design usingposition: fixed
orposition: absolute
along withtop
,bottom
,left
andright
to define the position.And you can replace the
width: 25vw
withmax-width: 25vw
. Right now, the card component expands in width but the content doesn't and thus it doesn't look good on bigger screens.Also, I think you can improve the
alt-text
for the images used for header and avatar.alt-text
hepls users who use screen readers to know about an image, soalt-text
should be descriptive. Here, the header image is used only for decorative purposes so you can usealt-text=""
. As the header image doesn't contribute anything to the actual content of the website we can set an emptyalt-text
, in this way screen readers will consider it as a decorative image and ignore it. And for the avatar, you can use something like thisalt-text="Victor Crest wearing a white shirt and a black jacket"
This makes your code more accessible.Marked as helpful1@nandi1514Posted over 2 years ago@purnimakumarr Thankyou for your help. Honestly I could not figure out the background so your tip will be really helpful to me
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