An employment tribunal has awarded a new mum £17,500 after her employer advertised her job and sacked her while she was pregnant.