The AND gate is similar to this curcuit.
The OR gate is similar to this curcuit.