diff --git a/client/public/logo.png b/client/public/logo.png new file mode 100644 index 00000000..2f23cfae Binary files /dev/null and b/client/public/logo.png differ diff --git a/client/src/Landing/Landing.tsx b/client/src/Landing/Landing.tsx index 01f62000..00b31539 100644 --- a/client/src/Landing/Landing.tsx +++ b/client/src/Landing/Landing.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { Button } from '@mui/material'; -import { StateAbbreviation, StateConfig } from '../util/types/map'; import LandingMap from './LandingMap'; import LandingHeader from './LandingHeader'; @@ -8,9 +7,22 @@ export default function Landing() { return (
- +
+ +
); diff --git a/client/src/Landing/LandingHeader.tsx b/client/src/Landing/LandingHeader.tsx index a0a735c9..32b0830e 100644 --- a/client/src/Landing/LandingHeader.tsx +++ b/client/src/Landing/LandingHeader.tsx @@ -2,40 +2,24 @@ import React from 'react'; export default function LandingHeader() { return ( -
-
-
- Box - of - Balloons -
-

- Welcome! -

-

- Click on your state below to connect with a local chapter in your - area! -

+
+ logo +
+ 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() {