A 7.8 magnitude earthquake near the border between Turkey and Syria has left a path of destruction and more than 3,000 dead.