There were several decisions I made that I had doubts about being the best practice, so I will explain my thought process, and if you see how I can improve please let me know:
I used flexbox in the body, and grid only in the wrapper which contains the 4 cards. I needed just a one-directional vertical alignment to stack my and
. Inside my element, I have an
which contains my and
. I didn't see any need to include those in and complicate the grid.
I do wonder if this is good use of the element. I thought since there is no navigation here,
wouldn't be correct.
For the cards I used and
for each card. Is this the right situation for use a list for cards, and if so, when is it correct to add the attribute role="list"
?
Implementation of the grid itself. It was easy to get the layout here, but it could have been done also using `grid-template-areas'. I like using the shorthand:
.card-1 {
grid-area: 2 / 1 / 4 / 2;
}
But if this is not recommended then I want to correct my ways.
Thank you!