Heartbroken

My best friend just told me that she's pregnant. It was a total accident. I am so excited for her, as she will be a wonderful mother but I'm crushed because I feel like I'm doing everything I can to get pregnant and so far nothing has happened. How do I deal and move on?