
Solution retrospective
Nothing particular I'd like feedback on, but if you see anything wrong or that can be improved, let me know!
If you can help me out with this console error I'm seeing on the github pages site, that would be great! I updated everything to use Sass and for whatever reason I'm getting this error:
Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
I got tired of looking for a solution and just made a branch for the pre-sass version and I'm using it for the live site. Seems to work fine! Whenever I switch to my master branch, I get that error. After an hour or so of trying to figure out wtf is going on, I gave up and here we are.
Edit: Turns out the error was caused by not having a file type on my css file, which I goofed on when I added Sass.
Thanks for any help!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @pikapikamart
Hey, great work on this one. Layout in desktop seems fine, but the buttons are outside of the container in my screen. I am using 1366x768. Mobile layout seems fine, but
375
is too small for mobile breakpoint. The375
on the design is not the intended breakpoint, it is just design.Some suggestions would be:
- I suggest not styling the
html
element. Place thosebackground
properties on thebody
tag. Usually, thehtml
element will only contain:
html { box-sizing: # value stated; font-size: 100%; }
- Instead of using
height: 100vh
on thebody
tag, usemin-height: 100vh
on it. Usingheight: 100vh
will limit the elements size according to the viewport's height. So even if the element or the website have many element, if it usesheight: 100vh
it won't logically captures them.min-height: 100vh
is much better because it takes 100vh as minimum and it will expand if it needs to. - Adding
padding
to the top and bottom of thebody
tag so that it prevents the content from touching the sides. - In a website, you typically add
main
element. This makes the structure better and it guides screen reader users where they are when navigating on your website. On this one, the.main-container
selector could have been usingmain
element. - The
alt
text on theimg
should have been left empty likealt=""
. When you think an image is just being used as a decoration, you should left thealt
be empty. If you think the image adds to the context? Use a descriptivealt
. Since the image on this one is just a vector decoration, usingalt=""
is better. - The
img
as well of the music icon should have been usingalt=""
. - I would have wrap the
annual-plan
with a heading tag likeh2
. - Do not
position: absolute
thefooter
. Leave it on the flow.
Other than those, great work. But changing the breakpoint will be really good. Also, if you like, starting some projects using mobile first layout:>
Marked as helpful - I suggest not styling the
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