@pikapikamart
Posted
Hey, nice work on this one. The overall layout of the site looks nice.
Sönke Martens already gave really great feedback on this one, just going to add some suggestions as well:
- It would be great to have a base styling of this:
html {
box-sizing: border-box;
font-size: 100%;
}
*,
*::before,
*::after {
box-sizing: inherit
}
This way, handling an element specially its size will be easier because of the box-sizing
- Avoid using
height: 100vh
on a large container like thebody
as this makes the element's height capped based on the viewport/screen's height. Instead usemin-height: 100vh
so that the element will expand if it needs to. - Also, if you zoom out of the page, you will notice that the wave-background is not occupying the full width of the site. You could add
background-size: 100%
on thebody
tag so that it will fill those gap up. - Always have a
main
element to wrap the main content of the site. For this usemain
tag on the.container
selector. - Use
footer
on the.attribution
selector so that it will be its own landmark. - Remember that a single
h1
is needed for every page on the site. For this one, you could useh1
on theorder summary
for now, but if you insist on usingh2
on it, then make theh1
a screen-reader onlyh1
. Have a look at Vanza's solution on this same challenge inspect the layout and see the usage of theh1
as well the stylings applied to it. - For the music icon to appear, you should use
src="./images/icon-music.svg"
on theimg
tag. Currently it is using backward-slash\
and remember that root path doesn't work at github so avoid using/
. annual plan
could use a heading tag since it gives information on what the section would contain, hence the pricing plan.- Lastly for the interactive components. On this one, if you think that this component is acting like a
form
then usingbutton
on those components will be great. But if you think that it doesn't act likeform
, then usinga
tag will be better.
Aside from those, great job again on this one.
Marked as helpful
@Suprefuner
Posted
@pikapikamart Hey~ thanks for your feedback! So many new things that I haven't thought about, great appreciated! Please see if I get them right,
- font-size: 100%, make sure every elements will using the browser default font size?
- Would it work differently if I place
box-sizing: border-box;
fromhtml
to*
? - Always using
div
is my bad habbit. Will use more semantic on next project. - Vanza's solution is good!
- I'm always confused when to use
button
ora
tag, thanks to clarfy!
@pikapikamart
Posted
@Suprefuner Hey, glad that you find my review useful:>
For some of your queries:
- Adding the
font-size: 100%
on thehtml
will make sure that your basefont-size
will match the user's browser settings. Because user may want to change their defaultfont-size
on their browser, sofont-size: 100%
will make sure that your site-content text will respond or match that user's preference. - It will do the same if you just put the
box-sizing: border-box
on the*
selector, but I kind of used to setting it on thehtml
selector as well, just making sure everything will be using it:>
Again, great job on this one and if you have any queries, just let me know^^
Marked as helpful