Easybank landing page(React JS + Scss + Pixel Perfect + Framer Motion)
Design comparison
Solution retrospective
๐ง Hello, I'm Daniel this is my solution for this challenge.
๐ Features:
Achieved +96% in Lighthouse score for performance, accessibility, best practices, and SEO. ๐
Animations with Framer motion๐ฌ
๐ช๐ต๐ฎ๐ ๐ถ ๐๐๐ฒ๐ฑ ๐ป:
React JS.๐
Scss.๐จ
ESLint. ๐ฆ
Framer-motion. ๐ฌ
I really liked accomplishing this project, additionally, I have added the framer motion. Hope you like my solution to this task!
If you have any suggestions on how I can improve my code then I will be very happy.
Community feedback
- @VCaramesPosted 6 months ago
Hey there @Daniel-Bilodid! ๐ Here are some suggestions to help improve your code:
I'm sorry to tell you but this "Achieved +96% in Lighthouse score for performance, accessibility, best practices, and SEO." means very little... because you have a lot accessibility and best practice errors in your code... so don't place all your faith in it.
- You
class="nav"
should be aheader
element.
- The text "logo" is not an appropriate
alt
text; it should always state the company's name. In this case it should state, "Easybank".
- The "nav-list" an "nav__button" should be wrapped inside a
nav
element.
- The
nav
toggle should always be abutton
โ ๏ธ. Adiv
is a non-interactive element, which means that keyboards and accessibility tools cannot interact with it.
- The
nav
toggle should also have anaria-label
,aria-expanded
andaria-control
and you will use JS to change the nav state usingaria-expanded
.
- There is no need to create two separate nav menus; just create one and use
CSS
to style it for different breakpoints.
- If you have the "mobile nav" and change the screen to a larger one the
overflow: hidden
does not get removed which prevents users scrolling, use JS to remove it a certain breakpoint.
- The
main
element should only wrap your page's main content, which does not include theheader
; so move theheader
outside themain
.
There is still a lot more that needs fixing but this should be enough for now...
Happy Coding! ๐พ
0 - You
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