Why is this not working?

I have been fiddling around with the codes for my component layout for a while now and I just can't seem to get it to work. I've used starter sets found in this community but when I try them myself, I usually only get half the stuff right.

I don't know if I should post the entire code here, so please would someone be kind enough as to have a look-see and tell me where I've gone wrong? Then I will post the codes.