A solar panel is a board with many solar cells embedded in it.
The photons that hit the solar cell lose electrons from their atoms, and the whole can be transformed into an electrical circuit with the proper attachment of conductors on the positive and negative sides of a cell.
Electrons flowing through the circuit contribute to the generation of electricity. A solar panel is made up of multiple cells like this, and multiple panels can be paired to form a solar array.