My SolarYou application is a single-page application, though the bottom of the screen changes layout based on whether or not you would like to convert from a single planet to all other planets vs a single planet to another single planet.
Upon initialization, the app is in "Show All" mode, so it shows every planet's name and icon. Upon entering an age on your home planet, your age on all of the other planets will be displayed, live-updating without any need to press a button. You can change your home planet using the upper dropdown list. You can change your output planet using the second dropdown list, and choosing any option besides "Show All" will put you back into single planet mode. This will show your age in both years and days on the output planet, and display a field for you to enter your weight to be converted from your home planet to the output planet. If either weight or age is not filled in, it will not be displayed.
Comments