I've advocated for years that copying other websites is the best way to learn web design. Copying is a very common and established way to learn almost any creative discipline including (but not limited to): Painting, Drawing, Writing, Music, Wood Working, Lutherie, Design, and Programming. To demonstrate this I've been doing copies of websites to learn Tailwind.
Here's the ones I've done so far
You can view this code at my git repository. The copies can be found in pages/copy and the tool I use to generate the pages is one I wrote called ssgod.