Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ import NoisePollutionTracker from "./components/NoisePollutionTracker";
import OceanAcidificationMonitor from "./components/OceanAcidificationMonitor";

import HealthImpactDashboard from "./components/HealthImpactDashboard";
import DataExportDashboard from "./components/DataExportDashboard";
import CityComparisonReport from "./components/CityComparisonReport";
import ExposureTimelineTracker from "./components/ExposureTimelineTracker";

const AqiMissionGame = lazy(() => import("./components/AqiMissionGame"));
const HotspotScoutGame = lazy(() => import("./components/HotspotScoutGame"));
Expand Down Expand Up @@ -363,6 +366,9 @@ export function SectionNav({ activeSection, onSectionChange }) {
{ id: "smart-alerts", label: "Smart Alerts" },
{ id: "ocean-acid", label: "Ocean Acidification" },
{ id: "health-impact", label: "Health Impact" },
{ id: "data-export", label: "Data Export" },
{ id: "city-comparison-report", label: "City Compare Report" },
{ id: "exposure-timeline", label: "Exposure Timeline" },
];
const [isMenuOpen, setIsMenuOpen] = useState(false);
const menuRef = useRef(null);
Expand Down Expand Up @@ -1284,6 +1290,56 @@ function AppContent() {
{activeSection === "ocean-acid" && <OceanAcidificationMonitor />}

{activeSection === "health-impact" && <HealthImpactDashboard />}
{activeSection === "data-export" && (
<div
className="content-grid data-export-layout"
style={{
maxWidth: "1200px",
margin: "2rem auto",
width: "100%",
display: "block",
}}
>
<DataExportDashboard
trend={trend}
current={current}
cityName={position.cityName}
position={position}
/>
</div>
)}
{activeSection === "city-comparison-report" && (
<div
className="content-grid city-comparison-report-layout"
style={{
maxWidth: "1200px",
margin: "2rem auto",
width: "100%",
display: "block",
}}
>
<CityComparisonReport
savedLocations={savedLocations}
cityName={position.cityName}
/>
</div>
)}
{activeSection === "exposure-timeline" && (
<div
className="content-grid exposure-timeline-layout"
style={{
maxWidth: "1200px",
margin: "2rem auto",
width: "100%",
display: "block",
}}
>
<ExposureTimelineTracker
current={current}
cityName={position.cityName}
/>
</div>
)}
{activeSection === "CarbonCalculator" && (
<div
className="content-grid carbon-calculator-layout"
Expand Down
Loading