From c91216d214f2a9a67eda52f638c7e37e8a678047 Mon Sep 17 00:00:00 2001 From: "Daniel S. Hansen" Date: Wed, 6 Aug 2025 17:10:33 -0700 Subject: [PATCH] Add Volcano view DataList, historical summary, and map --- .../src/components/Canvas/views/Volcano.jsx | 93 +++++++++++-------- 1 file changed, 52 insertions(+), 41 deletions(-) diff --git a/client/src/components/Canvas/views/Volcano.jsx b/client/src/components/Canvas/views/Volcano.jsx index 26303da..985b7e6 100644 --- a/client/src/components/Canvas/views/Volcano.jsx +++ b/client/src/components/Canvas/views/Volcano.jsx @@ -1,4 +1,4 @@ -import { Box, Text, Heading, DataList } from '@chakra-ui/react'; +import { Box, Text, Heading, DataList, HStack } from '@chakra-ui/react'; import React from "react"; import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet"; @@ -12,48 +12,59 @@ export default function Volcano() { { label: "Threat Potential", value: "Very High", helpText: "Threat Potential" }, ] + + const historyText = ` + Mount St. Helens, located in the Cascade Range of Washington State, is one of the most + active and well-known volcanoes in the United States. It famously erupted on May 18, 1980, + in one of the most significant volcanic events in U.S. history, which caused widespread + devastation and loss of life. The eruption reduced the mountain’s summit and created a large + crater. Subsequent dome-building eruptions continued through the 2000s, and the volcano + remains closely monitored today. + `; + return ( - - - Mt. St. Helens - United States CVO + + + Mount St. Helens - United States CVO - - - - - CVO — Home of the volcanoligists - - - - - {stats.map((item) => ( - - {item.label} - {item.value} - - ))} - + + + + + + + CVO — Home of the volcanoligists + + + + + + + + + {stats.map((item) => ( + + + {item.label} + + + {item.value} + + + ))} + + + + + Historical Summary + + { historyText} + + + - // - // - // - // Volcano Canvas coming soon! - // - // - // ); } \ No newline at end of file