A seaside promenade has been given a new lease of life thanks to people carrying out unpaid work as part of their court sentences.