Raspberry Pi 4 7inch Laptop

Overview

Parts used

Supplementary explanation:
Because the Raspberry Pi's USB port faces outwards, the keyboard's USB connector needs to be rotated 180 degrees.
(To be honest, it's not very smart. Any good ideas?)
Using the shortest possible USB connector will minimize the protrusion.