If you only want it on the front page, then frontpage.php is fine. You can put it in a separate file and include it in frontpage.php too, if you might want to use it on other pages. But there’s no harm in adding it there. Go for it.