There's nothing you need to know about setting up a Raspberry Pi Zero that you can't find in lots of other places on the internet with a quick search, so I won't be telling you how to flash the operating system, and other such mundane matters.
The first attempt at this project was built in a plastic sandwich box, using a cheap wide angle converter lens made by Vivitar. I made a hole in the rear lens cap, and simply glued the camera to it with hot glue.
Sadly, this simple design had a fatal flaw. The front of the converter lens wasn't waterproof, and lovely Welsh rain crept in through the screw thread of the ring holding the front element in, resulting in some really blurred pictures.
I abandoned the Vivitar lens, and decided to use a smaller converter lens, fitted behind glass to keep the rain out. As a bonus, it had a wider angle of view. It's just one of those clip on lenses for your phone camera, and they are surprisingly good, given how inexpensive they are.
I had heard of other people using a fake security camera as a case, and found a suitable one on eBay. You can see where I have attempted to waterproof some of the joins. I made no attempt to seal the place where the cable comes out, as I hope all the rain that will undoubtedly find a way in will drain out before doing too much harm.
The nice case I was using for the Pi Zero made it slightly too big for the fake camera, so I abandoned it. Pi Zeros can be harmed by static, but I've been lucky so far. Things would be much easier if the manufacturers of plugs would make them smaller. The edge of the Pi board is crudely stuck to the case with White Tac, and the cable is knotted to provide strain relief. I'm sure many people can do much better engineered systems, and it will serve me right if this one drowns....
Next, the Python code and HTML for your web page.