How to replicate curve deform modifer in geometry nodes?

I am trying to deform a generated grid that is length of a curve, also subdivided based on length of the curve. but I am not able to make the grid deform along the curve. Currently one solution I am using is to add curve deform modifer after the geometry nodes modifier. However after deforming i want to use geo nodes again, that means i have to make another geo node modifier after curve modifier. Is there a way we can implement the curve deform in the geo node itself, so that it is not required to make multiple modifiers?
Here is a bare minimum working blend file.
Thank you so much for looking into it!
curve-deform.blend (517.2 KB)

Found this amazing node group by @higgsas . How to deform a mesh along a curve in a geometry node? - #2 by higgsas