How to stop living in the past?

So basically I’m depressed now because my crush went back to his home country and I lost my job

So I feel so lonely and I want to cry
I watch old photos:videos when I was happy all the time and visualise myself being in the past

What should I do
How to stop living in the past?
Post Opinion