Flatland nanophotonics: A study of quantum-confined excitons in 2D materials