Fylo landing page with two column layout using pure CSS.
Design comparison
Solution retrospective
Here is my solution to this Challenge, Please have a look. Your little suggestion or tip can help me improve as a newbie in the front-end.
Community feedback
- @dwhensonPosted almost 3 years ago
Hey @Rohitgour03 - nice job here!! π
Here's a few small comments for you to consider:
-
I'd add
curser: pointer
to your buttons - this seems to be a common convention and what most people expect. -
Do you have a label associated with your
input
elements? You should have, but the FEM accessibility linter isn't picking it up as an error. Here's a nice article that gives a good explanation of why this is: https://css-tricks.com/html-inputs-and-labels-a-love-story/ (you can always hide the label using CSS if you don't want people to see it) -
I noted that you sent
outline: none
on everything. If you remove outline styles then it is important to add back in your own custom outline styles as otherwise it can make it very hard for keyboard users to navigate the page.
If you donβt like the default styles I have found the advice in this article very useful, and use it in pretty much all my projects: https://css-tricks.com/the-focus-visible-trick/
Here's the code I usually add:
/* Add styled focus states on tab not hover */ :focus-visible { outline: 3px dotted currentColor; outline-offset: 0.25rem; } :focus:not(:focus-visible) { outline: transparent; }
-
Lastly, I think the links in your social icons also need an accessible name - if you don't want to add text adding
aria-label: Facebook
or whatever to the link itself should solve this problem and get rid of those errors. -
Lastly I noted the logo in the footer's color wasn't changing. To do this you either need to inline the svg and change the fill setting, or make a copy of the file and change the fill setting. I find svgs super tricky, so this might not work but it's what I would try!
Great work and keep going!!
Cheers π
Dave
Marked as helpful2@Rohitgour03Posted almost 3 years agoThanks, @dwhenson. π I will work on all the points that you have mentioned. How to work with SVGs? I have no idea about that. Any good resources to learn about them? and I have to learn about Accessibility.
Thank you for giving your valuable time in giving feedback.
1@Rohitgour03Posted almost 3 years agoHow to set font sizes for different media queries? and Are you on Twitter?
0@dwhensonPosted almost 3 years ago@Rohitgour03 as I said, I really struggle with svgs. Sara Soudain has great series on them, but it's quite in-depth, but worth a look.
I'm not on Twitter. As for font-sizes in media queries, you set them the same as any other property, it should work.
Marked as helpful1 -
- @MichalTrubiniPosted almost 3 years ago
Hello there,
I suggest using this tool to change color of svg files. It works perfectly.
https://codepen.io/sosuke/pen/Pjoqqp
Marked as helpful1
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