To do this I can create all the HTML project containers (7 of them) and then give them values with textContent but that would mean I have to recreate the same 10 rows 7 times and if I add more projects I would have to write the HTML again.
Thanks @miku86 , @jenovs and @Marmiz for the solutions. I remember reading about Web Components a while ago so that’s what I was looking for but since there’s compatibility issues, I will go with Template Literals. I will add the code here once I implement it.
The thing is I really wanted to do this project without installing anything that I don’t necessarily need. I’m doing it in HTML, SASS and TypeScript (changed from js to test my limited knowledge). But that polyfill is great and I’ll make sure to use that together with Web Components in my next project.