Procedural Ramp/Slope Creation

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

Following this tutorial https://www.youtube.com/watch?v=mI7eYXMJ5eI

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.