Instance is chosen when theres no subcategories for what the user selected
As an example of that when someone first goes to the site they get shown the 10 main categories (technology, gaming, sports, etc.). If they select technology they are then shown the technology subcategories (programming, android, radio, general). if they select general technology that has no subcategories so they are randomly sent to one of the three general technology instances (discuss.tchncs.de, lemmy.sdf.org, or infosec.pub)
A lot of the categories only have one site it sends to but thats fine for now since it still is distributing people to the different sites based on categories
Im not looking at location data at all but in the everything/other category theres countries that can be selected to send the user to country instances
For the background I used tsParticles for the particles, and the gradient behind that uses framer motion to change colors by moving a linear gradient back and forth