The launcher can open in offline mode. On the launcher window, go up to the top right and click on your name there. It will show your status and if you’re offline or not.
If you are online and still seeing this issue, I’d recommend restarting the system and logging in again.