First time making use of custom properties to speed up my workflow. I also used grid template areas to structure the desktop layout of the cards.
What challenges did you encounter, and how did you overcome them?I didn't know how to structure the desktop. At first, I used grid and transform: translateY()
to position the middle cards, and that worked well but I wanted another solution. I then learnt more about grid-template-areas
to position elements in the grid, and this worked well too.
My second challenge was the colors above the cards. At first I made 4 underlays for the four cards and positioned them behind each card, then I used transform: translateY()
to position them slightly higher. It worked well, but this was a convoluted solution. After overthinking for another solution I then figured out that I could simply use border-top
to style the cards. Wow.
What improvements can I make to my approach in this challenge? I also struggled with spacing the top and bottom of the page on different screen sizes (especially small screen sizes), is there a better more robust way to do this all in the body of the page?