Proof (projection map is continuous)
Given some open set $U$ in $X$, $$ \begin{align*} \pi_X\inv(U) = U\times Y, \end{align*} $$ which is open in the product topology. Hence $\pi_X$ is open. Similar for $\pi_Y$.
Given some open set $U$ in $X$, $$ \begin{align*} \pi_X\inv(U) = U\times Y, \end{align*} $$ which is open in the product topology. Hence $\pi_X$ is open. Similar for $\pi_Y$.