Aws route 53/cloudfront/s3

I am for the first time trying to use aws services. I purchased my domain, set up my buckets and set up cloudfront. But when you go to my page it only shows my code and does not load. I tested the code on codepen and on code beautify and while not perfect it worked. Am i missing something simple?