-
- Box
- of
- Balloons
-
-
- Welcome!
-
-
- Click on your state below to connect with a local chapter in your
- area!
-
+
+
+
+ Welcome!
+
+
+ Click on your state below to connect with a local chapter in your area!
);
diff --git a/client/src/Landing/LandingMap.tsx b/client/src/Landing/LandingMap.tsx
index e424e7e3..a3c87433 100644
--- a/client/src/Landing/LandingMap.tsx
+++ b/client/src/Landing/LandingMap.tsx
@@ -48,12 +48,23 @@ export default function LandingMap() {
fetchChapters();
}, []);
+ const colors = ['#f28f8a', '#FEE761', '#54c2b9']; // Add your desired colors
+
+ const getAlternatingColor = (state: StateAbbreviation) => {
+ if (!availableStates.has(state)) {
+ return '#eaeaea';
+ }
+ // Calculate the index for the color array based on the state's position
+ const stateIndex = Array.from(availableStates).indexOf(state);
+ return colors[stateIndex % colors.length]; // Cycle through colors
+ };
+
const statesCustomConfig = () => {
const statesConfig: Record
= {};
getStateKeys(STATES).forEach((state) => {
statesConfig[state] = {
- fill: availableStates.has(state) ? '#4EC2BA' : '#D3D3D3',
+ fill: getAlternatingColor(state),
clickHandler: availableStates.has(state)
? async () => {
setChosenState(state);
@@ -77,7 +88,7 @@ export default function LandingMap() {
direction="column"
alignItems="center"
justifyContent="center"
- sx={{ minHeight: '100vh' }}
+ sx={{ minHeight: '80vh' }}
>
@@ -148,10 +159,16 @@ export default function LandingMap() {