Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive CSS Grid

@wickedWango

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Is the structuring of the files is good enough?

What can I improve up on?

Community feedback

@pikapikamart

Posted

Hey, awesome work on this one. Site in general looks great and it is responsive as well.

argel omnes already gave great feedback on this one, just going to add some suggestions as well:

  • Don't use height: 100% on the html and body as they are relative to the viewport which caps their height. Use always min-height: 100vh.
  • On the body tag, your image-path on the background is wrong. Use this instead url("../images/pattern-background-desktop.svg")
  • Instead of using role="main" on the .content selector, just simply use main tag instead of div.
  • The illustration is on a decorative image. Decorative images should be hidden for screen-reader at all times by using alt="" and aria-hidden="true" to the img tag or only aria-hidden="true" if the image is using svg.
  • The music-icon as well is only decoration so hide it using method above.
  • annual plan could use a heading tag since it gives overview on what the section would contain. An h2 would be great.
  • Do not remove the outline styling. If you did, always include a visual-indicator on the :focus-visible for those interactive elements like the button a tag and others.

Aside from those, great job again on this one.

Marked as helpful

2

@wickedWango

Posted

@pikamart Hey Raymart, Thanks for taking your time to review my code. These points are awesome.

I was not aware of the fact that we should hide the svgs for screen reader.

I forgot to update the changes in css image paths as I moved those files into a css folder moments ago.

I will keep these points in mind. Thanks for the detailed explanation about them.

As I am new to this CSS world, I am figuring out all the good design practices. I am feeling that I have learnt new things from your feedback.

Edit :- I have changed the code based on your feedback.

1
argel omnes 1,800

@argelomnes

Posted

Hey Ashish,

Yes, your structuring of the files is good. One suggestion is to group stylesheets in one folder if you have 2 or more. I sometimes don't do this if one of my stylesheets is the source and the other is the output. In your case you referenced each in the HTML, so I highly recommend it.

HTML is also neat. Putting icon-music.svg inside a div is optional. A minor thing you may consider is putting footer at the bottom of your stylesheet. Just above the media query. So it follows the structure of your HTML as well. Reading it is easy this way.

Overall, good job!

Marked as helpful

1

@wickedWango

Posted

@argelomnes Hey Argel, Thanks for taking your time and review my code. I am glad that you liked my code. I will try to incorporate those principles in my next projects.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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