The currently on-going conflict between Ukraine and Russia seems to stem from Ukraine's desire to join NATO and Russia's desire to keep NATO away from its borders (and therefore away from Ukraine).
It seems that both Ukraine and NATO have refused the demands Russia have made regarding this. In response, Russia seem to want to take matters into their own hands and start a war against Ukraine. A war Ukraine would lose, since it is far weaker than Russia and NATO obviously aren't going to join in directly, although they may support Ukraine indirectly via sanctions and international condemnation (for whatever that's worth).
So ... what exactly have Ukraine gained from this? They are nowhere CLOSE to joining NATO, will NOT receive direct military support from NATO, and have only managed to anger Russia and threathen the stability and safety of their own country.
They've gone from a situation of being somewhat neutral between NATO and Russia, to a situation where they've opposed Russia but still won't get any support from NATO. So is there something I am missing, or how exactly do Ukraine gain in any way from their recent actions? They seem to only have made their situation worse.