QR-Card using Media queries

Solution retrospective
What I'm Most Proud Of: I’m proud of successfully completing my first responsive web design project and deploying it live using GitHub Pages. It felt great to see the design come to life, especially after figuring out how to center elements and make the card look visually appealing on both mobile and desktop devices. I also enjoyed learning the workflow of using GitHub for version control and deployment, which was completely new to me.
What I Would Do Differently Next Time: Next time, I would:
- Organize my project files better by using a dedicated folder for images and assets right from the beginning.
- Write a README file with clear details about the project to make it more professional.
- Optimize the image for faster loading on the live site.
- Test the site more thoroughly to ensure all elements work as expected after deployment.
- Use a CSS preprocessor or modular approach to manage styles more effectively as the project grows.
Challenges:
-
Image Not Displaying on the Deployed Site: Initially, the QR code image wasn’t showing on my live website, even though it worked perfectly in my local preview. I realized it was due to incorrect file paths, but fixing them while keeping the project organized was confusing for me.
-
GitHub Workflow: As a beginner, I struggled with understanding how to manage commits, repositories, and file organization during deployment. At one point, I deleted the repository and had to restore it, which added more complexity.
-
File Organization: When trying to move the image file into a separate folder (e.g., images/), the website stopped working because I hadn’t updated the path correctly in my HTML file.
How I Overcame Them:
- I referred to GitHub documentation and followed step-by-step tutorials to learn about deployment using GitHub Pages. Restoring the deleted repository taught me a lot about handling such situations.
- To resolve the image issue, I placed the image in the same folder as index.html for simplicity during deployment, ensuring it worked. In the future, I’ll pay more attention to organizing my files from the start.
Improving File Organization for Deployment:
-
I’d like guidance on how to properly structure my project files (e.g., keeping images in a folder) while ensuring everything works smoothly during deployment.
-
Understanding GitHub Pages Deployment: Although I managed to deploy my project, I’m still unsure about some steps in the workflow, like handling uncommitted changes and ensuring all necessary files are included.
-
Optimizing HTML and CSS Code: I’d appreciate feedback on whether my HTML and CSS are structured efficiently and follow best practices, especially for responsive design.
-
Debugging Issues with Missing Resources: Help with understanding why resources like images sometimes fail to load after deployment and how to prevent this issue in the future.
-
Exploring Advanced Styling Techniques: Suggestions for enhancing the design and learning advanced CSS techniques to make the project more visually appealing.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Aalphakeem-Adroit
I've gone through your code. You've done well. Keep it up 👌✨🎊
Add
.card {border-radius: 20px; padding: 15px;}
to your card and see the difference. - @hannibal1631
Well Pooja first of all congrats on completing your first project here. Now i read your whole story that you put here and i would like to tell you we all faced similar problems when we started.
Now as per keeping your files, you don't have to move anything anywhere because the main folder that you download is already well structured(as you'll notice later on). The only files you need to create are html, css and js(for js projects).
As of the readme file, it's already there so you don't have to create one, but you can if you want to.
You faced the image bug because you tried to place the image elsewhere. just give it a correct directory and you won't face this problem.
If you want to learn about github and how to use github properly, we can connect via discord and i can explain everything. So let me know if you would like to connect.
Overall you did a great job. The styling could be better, and you should always make a separate css file to write styles, it's not a good practice to put them inside html.
Happy Coding!!!
Join 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