diff --git a/frontend/src/components/molecules/SidePanelPercentageModal.tsx b/frontend/src/components/molecules/SidePanelPercentageModal.tsx index 1fefc46..20c28b7 100644 --- a/frontend/src/components/molecules/SidePanelPercentageModal.tsx +++ b/frontend/src/components/molecules/SidePanelPercentageModal.tsx @@ -64,8 +64,8 @@ const SidePanelPercentageModal: React.FC = ({ > = ({ > = ({ ( - - + + - -) +); const Slide: React.FC = ({ name, @@ -43,7 +51,7 @@ const Slide: React.FC = ({ // Handles when releasing the slider const handleSliderCommit = ( _: React.SyntheticEvent | Event, - newValue: number | number[] + newValue: number | number[], ) => { if (typeof newValue === "number") { setSliderVal(newValue); // Update local state @@ -59,12 +67,22 @@ const Slide: React.FC = ({ }; return ( - + = ({ textDecoration: "none", }} > - - {" "} - {name} + {name} - + = ({ onChangeCommitted={handleSliderCommit} //Call once finished dragging slider valueLabelDisplay="auto" sx={{ - '& .MuiSlider-thumb': { - color: '#065143', + "& .MuiSlider-thumb": { + color: "#065143", }, - '& .MuiSlider-track': { - color: '#065143', + "& .MuiSlider-track": { + color: "#065143", + }, + "& .MuiSlider-rail": { + color: "#8F8F8F", // Lighter red for the rail }, - '& .MuiSlider-rail': { - color: '#8F8F8F', // Lighter red for the rail - } }} /> - + { { /> { /> { /> { left={ { right={ { left={ = ({ yearOptions }) => { entityType: string, entityID: number, categoryType: LayerType | null, - selectedYear: number + selectedYear: number, ) => { try { const response = await fetch( - `${backendUrl}/cell/${entityType}/${entityID}/${categoryType}/${selectedYear}` + `${backendUrl}/cell/${entityType}/${entityID}/${categoryType}/${selectedYear}`, ); console.log( - `${backendUrl}/cell/${entityType}/${entityID}/${categoryType}/${selectedYear}` + `${backendUrl}/cell/${entityType}/${entityID}/${categoryType}/${selectedYear}`, ); const response_json = await response.json(); const percentages = [ @@ -116,7 +116,7 @@ const SidePanel: React.FC = ({ yearOptions }) => { const loadEntityLivestock = async (entityType: string, entityID: number) => { try { const response = await fetch( - `${backendUrl}/${entityType}/${entityID}/${selectedYear}/livestock` + `${backendUrl}/${entityType}/${entityID}/${selectedYear}/livestock`, ); const response_json = await response.json(); const livestock_data = { @@ -174,7 +174,7 @@ const SidePanel: React.FC = ({ yearOptions }) => { "province", selectedProvince, selectedLayerType, - selectedYear + selectedYear, ), loadEntityLivestock("province", selectedProvince), ]); @@ -194,7 +194,7 @@ const SidePanel: React.FC = ({ yearOptions }) => { "county", selectedCounty, selectedLayerType, - selectedYear + selectedYear, ), loadEntityLivestock("county", selectedCounty), ]); @@ -398,19 +398,21 @@ const SidePanel: React.FC = ({ yearOptions }) => { open={isPanelOpen ?? false} onClose={handlePanelToggle} variant="persistent" - PaperProps={{ - sx: { - width: isMobile ? "100%" : "35vw", - height: isMobile ? "75vh" : "calc(100% - 70px)", - maxWidth: isMobile ? "100%" : "400px", - boxSizing: "border-box", - p: 2, - paddingTop: "10px", - display: "flex", - flexDirection: "column", - marginTop: isMobile ? 0 : "78px", - borderTopLeftRadius: isMobile ? "12px" : 0, - borderTopRightRadius: isMobile ? "12px" : 0, + slotProps={{ + paper: { + sx: { + width: isMobile ? "100%" : "35vw", + height: isMobile ? "75vh" : "calc(100% - 70px)", + maxWidth: isMobile ? "100%" : "400px", + boxSizing: "border-box", + p: 2, + paddingTop: "10px", + display: "flex", + flexDirection: "column", + marginTop: isMobile ? 0 : "78px", + borderTopLeftRadius: isMobile ? "12px" : 0, + borderTopRightRadius: isMobile ? "12px" : 0, + }, }, }} sx={{ @@ -434,8 +436,8 @@ const SidePanel: React.FC = ({ yearOptions }) => {
= ({ yearOptions }) => { {ts("instruction")} @@ -493,8 +495,8 @@ const SidePanel: React.FC = ({ yearOptions }) => {
= ({ yearOptions }) => { = ({ yearOptions }) => { mb: 3, }} > - + Map Guide setShowGuide(false)}>
- + Summary - + hey there delilah, how is it like in new york city? - + Usage YO diff --git a/frontend/src/pages/about.tsx b/frontend/src/pages/about.tsx index 51adabf..5942c95 100644 --- a/frontend/src/pages/about.tsx +++ b/frontend/src/pages/about.tsx @@ -44,9 +44,8 @@ const About = () => { { > { }} > - + Methodologies - + About our data @@ -57,7 +57,7 @@ const Methodology = () => {
- + Additional Information @@ -91,15 +91,13 @@ const Methodology = () => { Nov. 20, 2024 Article Title @@ -157,15 +155,13 @@ const Methodology = () => { Nov. 20, 2024 Article Title @@ -222,15 +218,13 @@ const Methodology = () => { Nov. 20, 2024 Article Title