Whenever I get in a bout with depression, God always reminds me that I have a choice. It's MY choice to stay in it or to get out of it. You have a choice. You can either stay in it, or you can make a CHOICE to come out of it. Basically, you need to consider the TRUTH. The TRUTH is that life is not over just because a person leaves it. The TRUTH is there is much Joy, Peace, and Love for you to experience. The TRUTH is God does not want any person becoming an idol in your life. If your happiness is dependent on a human---then you are setting yourself up for constant unhappiness. People will let you down. People will leave. People will not feel the same as you. So does life end because of that? NO WAY! Pick yourself up and dust yourself off and tell yourself that you are not allowed to be depressed!
As far as feeling far away from God, there is GOOD NEWS for you. God has not left you! There is a great joy in repentance! As you draw near to God, He will draw near to you. If you are hurt---give God the opportunity to heal you! God is looking forward to taking that number one spot in your life! And He is full of mercy and grace for you. Don't worry if you feel defeated right now----God is good at turning that around. So let Him turn it around for ya! Make the decision that you will be a joyful person today. One of the best ways to be a joyful person is to get your eyes off of you and help someone else.
We all get into situations where we feel we are lost. No worries---there is a great God who knows exactly where you are and knows exactly how to get you out of it!