Procedural Ramp/Slope Creation

For my game, Im creating procedural modular blocks which I will then be using to create my level.

Following this tutorial

From the first section of that tutorial, I have successfully created a procedural corridor with left and right detours, but further on developing I have bumped into an problem where Im trying to
create a sloping for each block to form a ramp.

I have added description in each of the screenshots.