AntAlmanac
AntAlmanac copied to clipboard
Auto-update the Logo Based on Season/Holiday
Summary
Wrote out a Logo component that consolidates the logic previously used for the logo (such as should it be mobile version) and returns the appropriate logo based on the current date. To add a new seasonal logo, simply create a new Logo object in the Logos array.
Not code related, but the windows I used for the logos can be widened/updated if appropriate. Not sure how long the winter one should extend to, for example. Would love thoughts on that.
Test Plan
- View the logo as-is. Since we are not in a particular event range it should be default
- Confirm that it still switches to mobile when window is resized
- Edit the "current date" object to be any other possible date. The logo should reflect the season of that date
Issues
Closes #973 to follow up #974 and similar
Future Followup
Do we have more designs? The default logo as-is will display for 8 contiguous months.