A woman who wrote a children's book about coping with grief after her husband's death has been sentenced to life without parole for his murder.