Designer quantum states on a fractal substrate: Compact localization, flat bands and the edge modes