Design comparison
Solution retrospective
I'm proud of successfully completing this project without any errors within just one hour, achieving both the UI and functionality goals. I used a simple fetch API without any JavaScript frameworks, which helped me grasp the fundamentals better.
Next time, I would like to use a JavaScript framework, such as React or Vue.js, and incorporate Axios for making HTTP requests. This approach will not only streamline the development process but also enhance the project's scalability and maintainability.
What challenges did you encounter, and how did you overcome them? What challenges did you encounter, and how did you overcome them?During the project, I faced challenges with implementing a hover effect on the button and aligning it to the bottom of the card using absolute positioning. To tackle these issues:
-
Hover Effect on Button: Initially, I struggled to achieve a smooth hover effect on the button that would highlight it when users interacted with it. Through experimentation with CSS
:hover
pseudo-class and transitions, I managed to create a subtle glow effect usingbox-shadow
. This made the button more visually engaging and intuitive to use. -
Aligning Button with Absolute Positioning: Aligning the button precisely to the bottom of the card using absolute positioning posed another challenge. I adjusted the parent container's positioning context and used
bottom: 0
along withposition: absolute
on the button itself. This ensured the button stayed fixed at the bottom of the card regardless of the card's content or size.
These challenges taught me valuable lessons in CSS positioning and interactivity, enhancing both my problem-solving skills and understanding of front-end development techniques.
What specific areas of your project would you like help with?-
Performance Optimization: Improving load times and efficiency, perhaps by optimizing images, scripts, or CSS.
-
Code Refactoring: Streamlining your code, improving readability, and adhering to best practices.
Community feedback
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