sendou.ink/app/features/map-planner
William Lam c8e707488b
Implemented some dynamic background sizing & positioning calculations for the Map Planner (#1200)
* Implemented a relatively simple dynamic background sizing calculation for the Map Planner

* Moved useWindowsSize() hook usage near the top of Planner() function

* Removed some dead space above the background image

* Adjustments

* Added a *lot* of math to adjust image spawn location based on the background image size & position, which are based on the current window size & position
- Moved the background image stuff to its own React Hook, usePlannerBg()

* Fix Prettier issue

* Added another comment

* Fixed typing for the usePlannerBg hook
- Also improved comments & some variable names to be cleaner/more consistent

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2023-01-08 11:24:44 +02:00
..
components Implemented some dynamic background sizing & positioning calculations for the Map Planner (#1200) 2023-01-08 11:24:44 +02:00
routes Add title/description to couple pages where it was missing 2022-12-22 23:52:39 +02:00
index.ts Map planner to feature folder 2022-12-22 21:33:02 +02:00
plans-types.ts Map Planner: Fancy backgrounds 2022-12-29 21:49:21 +02:00
plans.css Map Planner: Add sub/special weapons 2022-12-22 23:43:19 +02:00