Described herein are electrochemical cells that include composite gel positioned between the first electrode and second electrode, wherein the composite gel comprises an electrolyte, a polyaryl amine, and an oxidant. The composite gels described herein are easy to produce at a low-cost, which makes them suitable in a number of different applications electrochromic devices, supercapacitors, solar cells, and hybrid photoactive supercapacitors.Energy Engineering