created card layout for news posts