I have a 'masonry' like grid on my website, which I display using *ngFor. The grid blocks looks like the follow:
T T T
S A S
T S T
where T - stands for Tall blocks, S - short blocks, A - special section with a tall blocks height.
I'm trying to create a a grid which will be automatically populated using ngFor but using the grid schema.
For example:
T T T
S T S
T S T
and continue following the format ->
T T T
S T S
T S T
T T T
S T S
T S T
T T T
S T S
T S T
and so on, using the first three rows as an example, tall or short blocks specified by class only. So my questions is, which is the best way to check all this conditions in order to display them in the following format?