Insure Landing Page with SCSS, BEM, CSS Animations, and Vanilla JS
Design comparison
Solution retrospective
This project helped me to experiment with some new ideas about layouts. I've experimented with containers and how to position them correctly, so I can control it from a single place. Another thing that I wanted to accomplish with this project was to add some scroll-reveal animations with JS, I was expecting it to be a lot more complex with Vanilla JS. However, it turned out to be a single API called IntersectionObserver
that will help you to add the stuff. I didn't do anything crazy, but definitely got some practice and had some fun with it. That pretty much was the main goal of this project, and I'm glad how it came out. For the future project, I'll most certainly implement similar things. Moreover, I'll try to come up with more complex animations and how to achieve them with Vanilla JS. Super excited about this feature and how it can help to make the website come alive.
Got some feedback, comment it 👨🏻💻 Cheers 👾
Community feedback
- @pikapikamartPosted almost 3 years ago
Hey, awesome work on this one. The desktop layout looks really great and those animations is really nice and suits well on the design. The site is responsive and the mobile state looks great as well.
Here are some suggestions for the site:
- For the
.intro
selector, I would change the usage ofmin-height: 65vh
into usingrem
unit so that it will be consistent. At my monitor, the hero-section's bottom part is touching theview plans
because my screen is not that tall since I am just using 1366x768. - The
source
from thepicture
doesn't really need to use thearia-hidden
attribute. - For me, the hero-image could be a meaningful element since if you read the hero-text, it is all about the image, meaning it paves way to the image.
FOOTER
- Each of the
a
tag for the social media should be using the social media name as thearia-label
text, currently alla
tag usessocial media
as the value which is ambiguous for user to where this link would take them. - Add an extra
aria-hidden="true"
on thesvg
for each of the social media icon. aria-label="footer"
is much used rather thansecondary
. You want thenav
to be more clearer for what it will serve to the user. Because there arebreadcrumbs
usage ofnav
as well.
MOBILE
- It's just an idea if you want. You could create a trap focus on the navbar when toggled. This way, if I toggle the hamburger, even if I use
tab
again when I am at the last link-item, I would end up on the hamburger again and vice-versa when usingshift + tab
on the hamburger, I would end up on the last link-item, hence focus trapping. This way, user won't go out of place when such pop ups appear.
This is a really nice solution to be honest. Usage are really great^^
Marked as helpful0@kens-visualsPosted almost 3 years agoThank you @pikapikamart, you've got some good suggestions will, follow up with them ✔️
1 - For the
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