Latest solutions
Online multiplayer rock-paper -scissor game using React
#accessibility#react-router#redux-toolkit#styled-components#animationSubmitted almost 2 years ago
Latest comments
- @LizzietrustSubmitted over 2 years ago@iprinceroyyPosted over 2 years ago
Hey @Lizzietrust, I would recommend seeing my solution to get an idea to structure the folder and files so that you can have your image.
0 - @sarvothamgowdaSubmitted over 2 years ago@iprinceroyyPosted over 2 years ago
Hey @sarvothamgowda, to avoid accessibility issues I would suggest some points here:
- Wrap the contents inside the main tag like this
<body> <main> Your content.... </main> </body>
- There should be one level heading h1, and if there's no requirement for the h1 element then set its font size to 0.
- HTML
CSS
h1{ font-size:0 }
I hope it adds to your learning, happy coding :)
Marked as helpful1 - @Alex6pcSubmitted over 2 years ago@iprinceroyyPosted over 2 years ago
Great work @Alex6pc, I would suggest some points here :
- Use kabeb-case for the class name.
- Wrap the contents inside the main tag
<body> <main>Your contents..</main> </body
- Always use the relative unit rem.
- You can use CSS latest functions min(), max(), and clamp() for responsive fonts, margin, padding, and width.
- There should be the level one heading tag h1 if there's no requirement then set the font size to 0 to avoid accessibility issues.
I hope it adds to your learning, happy coding :)
Marked as helpful1 - @manishdevelopsSubmitted over 2 years ago@iprinceroyyPosted over 2 years ago
Congrats @Manish-d-art, on completing this solution 👏 I would suggest some points here to center the component:-
main{ min-height:100vh; align-items: center; } remove container style block, it's unnecessary as justify-content of the main tag will handle it.
After the updates, click on the generate screenshot button.
- I hope it adds to your learning. Happy coding :)
Marked as helpful0 - @elahemirzaeeSubmitted over 2 years ago@iprinceroyyPosted over 2 years ago
Hey @elahemirzaee, you did excellent work. Congrats!
You can prefer clamp property for h1 to make a responsive font for different devices & to match the design. You forgot to add the shadow property to the form element.
Instead of using the main class, you can use the main tag to avoid accessibility issues.
Hope it adds to your learning. Happy coding :)
Marked as helpful0 - @vanjuraSubmitted over 2 years ago@iprinceroyyPosted over 2 years ago
Hey @vanjura, you did great work. I would suggest some points here:
- Hover state is not working. You should add some HTML markup & CSS rules for it. You can prefer my solution for reference.
- img tag must have alt attributes for the people with disabilities.
- Always use relative units instead of px for better scalability. 1rem = 16px
I hope you find it helpful & it adds to your learning. Happy coding :)
0