Preparing the UI of the chat area
Because real-time chat is an important part of our social network, we will create a separate page for it. As we did in the previous chapters, we will start with a new link in the main navigation, as follows:
<nav> <ul> <li><a on-click="goto:home">Home</a></li> {{#if !isLogged }} <li><a on-click="goto:register">Register</a></li> <li><a on-click="goto:login">Login</a></li> {{else}} <li class="right"><a on-click="goto:logout">Logout</a></li> <li class="right"><a on-click="goto:profile">Profile</a></li> <li class="right"><a on-click="goto:find-friends">Find friends</a></li> <li class="right"><a on-click="goto:pages">Pages</a></li> <li class="right"><a on-click="goto:chat">Chat</a></li> {{...