diff --git a/src/pages/overview.tsx b/src/pages/overview.tsx index f1fae10..977c38a 100644 --- a/src/pages/overview.tsx +++ b/src/pages/overview.tsx @@ -1,11 +1,13 @@ -import { ReactElement } from 'react' +import { ReactElement, useState } from 'react' export default function Overview(): ReactElement { + const [isHovered, setIsHovered] = useState(false) return ( <>

Overview

+ {/* Real-Time summary */}

@@ -77,6 +79,43 @@ export default function Overview(): ReactElement {

+ + {/* Carbon Footprint */} +
+
+

+ Carbon Footprint +

+
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + > + + {isHovered && ( +
+

+ A carbon footprint is a measurement of the various + greenhouse gases, such as carbon dioxide (CO2), methane + (CH4), nitrous oxide (N2O), and others, caused by energy + consumption. These gasses are combined into a common unit + called carbon dioxide equivalent (CO2e), based on their + global warming potential. The value for the carbon footprint + is measured by: kW * 1h * 0.5kg CO2/kWh +

+
+ )} +
+

+ Total Carbon Footprint +

+

+ 1kg CO2e +

+
+
)