
Design comparison
Solution retrospective
I tried to implement a new way of thinking in both my css and js especially with separating styling concerns with css (i.e separating the base styles with adaptive styles) and also, I learnt how to add interactivity with javascript.
What specific areas of your project would you like help with?I was not able to completely figure out the interactivity so there are a lot of bugs with the button especially on different screen sizes, it still works but the button can go missing in some cases which will require you to refresh the browser...I had to create another media query for 1501px and upwards but to no avail, I have done my best and I sincerely hope someone can help me point out the errors I made and or solutions to the bugs the current website has...overall, this was a very good project and I am happy I made it this far (P.s, the bug mostly shows on larger screens, on mobile, there is no issue unless you switch to landscape mode)
Community feedback
- @Ayako-YokoePosted about 2 months ago
Great work! Your design is precise and well-executed.
I noticed that when clicking the button on mobile, the height of the footer changes. I struggled with this issue as well. You could try setting a minimum height for the footer to prevent this from happening.
Additionally, the tooltip on desktop is displayed outside the card. Adjusting its position might help keep it fully within the card.
Marked as helpful0@opeoluwa7Posted about 1 month ago@Ayako-Yokoe I’ve been able to make some adjustments
What do you think of it now?
1@Ayako-YokoePosted about 1 month ago@opeoluwa7 Yes, this looks great! I like how you change the background color with JavaScript.
If you're interested, you could add a triangle below the tooltip. My approach might not be the best practice since it uses position: absolute, but you can create a triangular shape with borders like this:
border-width: 15px;
border-style: solid;
border-color: #555 transparent transparent transparent;
Marked as helpful0
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