Design comparison
Solution retrospective
i was able to make the html and CSS quite easily and felt like I did a good job with the responsiveness. Next time I will try to make the scroller infinite less buggy and more smooth.
What challenges did you encounter, and how did you overcome them?The infinite scrolling was giving me trouble. I was able to use chat gpt to help me out but it is still buggy.
What specific areas of your project would you like help with?How can I write cleaner code. Any redundancies? any tips on the infinite scrolling? mine is buggy
Community feedback
- @brunomoletaPosted 5 months ago
Hello Jrey,
Overall, the first thing I did was to split the code into smaller chunks so it's easier to read. You will see multiple CSS and JS files.
I also installed the Prettier dependency so that when you run
npm format
it will format the whole project.There's a few HTML tags that you may adjust such as the project's list using
<div> <img/> </div>
You can make it more semantic with an unordered list
<ul>[...]</ul>
Also, it's better to use different heading levels such as
<h3>
, not only one<h1>
and multiple<h2>
tags as happened in the services file. You could make the section headingsh2
and the highlighted items inside ith3
.In the CSS code, you hard-coded the values inside the grid.
You may define the
height
andwidth
only for the parent element. The children will have the space defined at thegrid-template-areas
, I made a few tweaks, so please check theservices.css
file. Also, this reference around CSS Grid is sound.Also, the media query should use
rem
notpx
. For one, I use a font size twice as big compared to the default user, and it often happens that the layout does not fit properly on my screen even on websites like Linkedin. To learn more about the topic, please check Josh Comeau's blog.If you find this review useful, please give it a "helpful" vote.
Keep up the hustle, Joseph :)
Best regards from 🇧🇷
0
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