Design comparison
Solution retrospective
I’m most proud of creating a user-friendly time tracker that effectively logs and displays time entries. Next time, I’d enhance the project by integrating more advanced features like data persistence with local storage or a backend database, and improving the design for better user experience.
What challenges did you encounter, and how did you overcome them?I faced challenges with accurately calculating and displaying time intervals and ensuring the UI was responsive across devices. I overcame these by thoroughly debugging my JavaScript code and using CSS media queries for responsive design. Testing across different browsers also helped refine the final result.
What specific areas of your project would you like help with?I’d like help with optimizing the JavaScript code for time calculations to ensure accuracy and performance. Additionally, feedback on enhancing the CSS for better responsiveness and visual appeal across various devices would be valuable. Any tips on integrating local storage to persist data would also be appreciated.
Community feedback
- @TedJenklerPosted 3 months ago
Hi @najahaja,
Nice project! To add an item to local storage, you can use localStorage.setItem("itemname", value), and to retrieve it, you can use localStorage.getItem("itemname"). Your site is fully responsive, and it doesn’t have any breakpoints—great job!
Hope this feedback was helpful.
Best, Teodor
Marked as helpful0 - @MikDra1Posted 3 months ago
To make your layout truly responsive I advice you to use this technique:
.container { width: min(1440px, 90%) }
This ensures that the layout won’t get bigger then 1440px but on smaller screens it will be 90% of the viewport . The min() functions takes the smaller number.
It is the same as:
.container { width: 90%; max-width: 1440px; }
Hope you found this comment helpful ❤️
Good job and keep going 😁😃😉
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