Contact form in index page

I want to put the contact form in index page because I want my application to be a single page website but I do not know where to start. I’m new to yii, if possible please give me a step by step tutorial on how to do this.