How can I feel better after gaining weight?

I recently put on 20 pounds and went from thinking myself very pretty to feeling like no attractive guy will ever look at me again. All of my clothes are tight, I don't want to wear my favorite things, and I've lost confidence, and all of this is causing me a lot of depression and anxiety. I am eating better and going to the gym now, but the weight is taking a long time to come off. In the mean time how can I stop hating myself so much? I'm really down on myself right now and need some good positive advice, thanks.
How can I feel better after gaining weight?
Post Opinion