Rotate points along curve tangent

In my project, I'm trying to make a tiled roof. I'd like the tiles to follow a curve. Here's what I've tried and what worked.

Curve tangent

I tried to convert the curve tangent into some rotation angle to rotate each cylinder. However, I'm probably misunsing Rotate Euler.

The cylinders do not follow the curve.

Curve to points

Eventually I found the answer in this post: all I had to use was the Curve to points node. It exposes a rotation attribute.

End result

And here's my Korean style roof: