@visualdenniss
Posted
Hey there,
very nice work! The card itself looks pretty good, however some suggestions:
It looks like you used some workaround to center the whole card, but the usual way is to give the body following rules:
- min-height: 100vh;
- display: grid;
- place-items: center;
But with your current setup, it'll cause some issues at first, this is because you've made the individual parts of the summary component (left and right) direct children of the body. Instead there should be a main tag (as the report says also) so you can freely apply these to the body, and main tag should wrap the left and right columns of the component, it gives you more freedom. So use a wrapper element (main) first and refactor the code as necessary. (Example, transfer your current code for the body to main, - remove the margin, then apply the rules above with min-height etc to the body afterwards.)
- Additionally, you should be using cursor: pointer; to the buttons to indicate interactivity, as well as background-color change would be ideal.
Hope you find this feedback helpful!
Marked as helpful
@Sahorri
Posted
@visualdenniss thank you for your kind advices :)