Fig. 1: Schematic illustration of the membranes fabrication.

a Casting mixed monomer solution on ITO substrate in the pre-assembly step to obtain pristine membrane at 60 °C, subsequently heating the pristine membrane at 145 °C in the assembly step to fabricate COF membranes. b Chemical structure of the two COF membranes.