The thylakoid membrane is composed of a phospholipid bilayer (color phospholipid "B" light blue) and the photosystem I and photosystem II.
the electron leaves photosystem IIwhen they excited by light, the enter the electron transport chain and is passed through a series of proteins, PQ,b6-f, PC.
This process pumps protons across the membrane against their concentration gradient.
Lights also hit photosystem I where electrons are passed to the protein ferredoxin. As the electron is passed down that chain, NADPH is produced.